Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. If nothing is displayed, then $rssticker->recent-post->subject does not return a value. It is an object method. You cannot print it in that manner.
  2. I've used many dynamic signatures and none of them have cut off url parameters, If it's not an image it simply would not load. You can assign a mock up ID: username=Username..type=2 exploding the obvious on server, the forum software would not know the difference. [ot]Do I know you from somewhere? :-\[/ot] Well, on sites similar to what I'm trying to create they have been able to create a script, where it becomes .png at the end, thus being able to use them on forums. (www.rsbandb.com is just one example). [ot]Where do you think you know me from?[/ot] Do you want the end result in a png? Then parse png files as PHP, or create an on-request generation to serve it as a transparent png file. Use the AddType directive in a .htaccess document and you can do whatever you wish there, mod_rewrite is a useful tool.
  3. Albeit the 1/4 of US traffic being facebook, Not even a marginally productive fraction of them are "quality" traffic for advertising.
  4. I've used many dynamic signatures and none of them have cut off url parameters, If it's not an image it simply would not load. You can assign a mock up ID: username=Username..type=2 exploding the obvious on server, the forum software would not know the difference. [ot]Do I know you from somewhere? :-\[/ot]
  5. Run: print var_dump($rssticker->recent-post->subject); and see what it returns, it is most likely an object and not what you can display in a string like you are trying to do, that is why you get the parse error.
  6. "$rssticker->recent-post->subject" doesn't return anything that can be plugged into a string.
  7. <?php echo "var pausecontent=new Array()"; echo "pausecontent[0]='". $rssticker->recent-post->subject . "'"; echo "pausecontent[1]='<a href='#'>New Divisions Launched</a> - <i>7 Hours Ago</i>'"; echo "pausecontent[2]='<a href='#'>Welcome New Leaders</a> - <i>20 Hours Ago</i>'"; ?> Doesn't JS need a semicolon thought? You only end the line in a single quote it seems. Make sure $rssticker->recent-post->subject is a string.
  8. What on earth do you need that file for? If you are unable to know which modules are installed (by simply calling phpinfo then you should not really be programming.
  9. Look at glob and foreach, It can't get that much harder from there. $array = null; foreach (glob("/Music_library/*.mp3") as $filename) { $array[$filename] = $filename; $array[$filename]['filesize'] = filesize($filename) } Well, don't quote me on that working, but it is that simple.
  10. Quite a few ISPs may block by default port 80 unless routed, That is why services such as no-ip exist. If you cannot physically reach your server via the router, then it is most likely a problem on the ISP/NAT's end.
  11. What if someone uploaded image.EXE? Then we'd be messed. Using something such as stristr or strtolower on the extension is good practise, as regardless of case that is all you're needing to work with, the letters not the case.
  12. I personally have scripted tasks which I disliked when working with a few VPSs, If you need help just ask.
  13. Other than some minor grammar errors, It looks to be alright. Although trusting sanitizing to filter_var isn't standard practise, It should hold as long as it strips/slashes quotes.
  14. http://php.net/manual/en/function.fopen.php - $0.00
  15. It seems you do not recognize the steps it does setting up FASTCGI on your platform, I'd recommend you start from fresh following the documentation and make sure FASTCGI is the latest version.
  16. What do you think of this design? I'm not finished with it just yet of course but what do you think so far? http://test.media-script.com/index.php It's a warm design, but I just don't get the value of coming back to that site, It's like a mix of a thousand different things. The sections showing the different features are fairly nice if they're updated regularily, But the 'new members' section seems to take the main content below the fold, It's unappealing just seeing new display picture after display picture at the top, Maybe minifying the sizes with a name beside them (in case there are multiple members who join in one day, for example) can be displayed nicely.
  17. It was just ironic how you quote about XSS injection when you are giving him a key to the door for it.
  18. I plugged it into my IDE and it doesn't even say there are 70 lines, Maybe he modified it?
  19. Heh, thats probably my favorite considering how many times I've accidently done an infinite repeat. I was attempting roughly 20,000,000 looped benchmarks on code I was testing, safe to say a lot of the untested code resulted in my CPU fan going loud until I fixed it.
  20. Why do you condone the use of $_REQUEST instead of $_POST when it is that much more suseptable to XSS injection itself?
  21. Please learn a programming style and maybe you will see the obvious flaw there.
  22. Bleh, you can create a character generation engine and have 40,000+ images of different apparel, and include absolute positioning with a GD library function adding the appropriate images to a specific point (IE a hat) and give the finished figure an ID, so you can view it via <img src="chargen.php?ID=xxxxx.."/>
  23. Why are you using a confusing array of $_REQUEST and $_POSTs? You should choose one or the other, $_REQUEST will find any value in POST/GET/COOKIE superglobals.
  24. You can look at a PEAR library for alike http://pear.php.net/package/Console_ProgressBar/ But you'd need AJAX for any kind of talk between PHP and the progress bar, If you wanted to do it yourself, You can estimate zipping time based on the size of the file, Javascript cannot handle uploads, only contain them, You'd need to use Java or Flash to create a working upload meter.
  25. No problem, I've typod functions atleast 2 times today.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.