Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. If you need help on learning HTML then check http://www.w3schools.com out.
  2. [quote author=ober link=topic=100181.msg395157#msg395157 date=1152627529] Each board in that PHP Discussions area has a description saying where they are synchronized from. [/quote] This may be a stupid question, but I don't know where that is. Could it e.g. be http://groups.google.com/group/alt.comp.lang.php ???
  3. Attach the magic.mime so we can see if it's a correct file (click on 'Additional Options...' when posting).
  4. If you still wan't to use an image as a button then change this line:[code]echo "<p><input type=\"image\" src=\"image.jpg\" height=\"16\" width=\"24\" border=\"0\" ALT=\"hello\" name=\"submit\"></p>";[/code] to this line:[code]echo "<p><button type='submit' style='border: 0px; padding: 0px;' name='submit' alt='hello'><img src='image.jpg' height='16' width='24' border='0'></button></p>";[/code]
  5. Now that Web 2.0/AJAX has been so popular, you could use AJAX to do it. Or you could just use the Javascript function 'settimer' (I think it's called that) to set a timer and then go to another page where the PHP script will be run.
  6. [quote author=yana link=topic=100191.msg395151#msg395151 date=1152627093] And neither Live or Test server appears to use a dynamic IP address.....because I've tested it now a few times and every time I get the exact same value for IP Address on Live and Test server. [/quote] I meant you, but see above for the explanation.
  7. Did you set the correct path? Try replacing the backslashes with forward slashes and see if it helps.
  8. [quote author=yana link=topic=100191.msg395148#msg395148 date=1152626924] [quote author=Daniel0 link=topic=100191.msg395144#msg395144 date=1152626744] [quote author=yana link=topic=100191.msg395140#msg395140 date=1152626512] The test server returns one IP address for me (10.243.102.136) while the Live Server returns a different IP address (216.191.52.74)... [/quote] Do you have a dynamic IP. I've read that at some ISPs the IP change at every request. [quote author=yana link=topic=100191.msg395140#msg395140 date=1152626512] Yeah apparently the Live Server has an older version of PHP (3 or so) and the Test Server uses the newer version 4... [/quote] If it's your server I would upgrade PHP to version 4 (or 5 if you wish). The reason why you need to use $HTTP_SERVER_VARS instead of $_SERVER is that $_SERVER was first implemented in PHP4. [/quote] It's not my server - it's the company's. [/quote] Tell them to upgrade, it's an old version. [quote author=thorpe link=topic=100191.msg395146#msg395146 date=1152626878] 10.243.102.136 appears to be your internal NIC address, while the other is your public IP. [/quote] Ah, yes of course, he will see his internal IP address when he runs the script on localhost.
  9. This is only needed if you use Linux or your server is running Linux. You could use SSH to chmod them too, like this: [code]chmod the_value the_file[/code] e.g. [code]chmod 777 uploads[/code] If you wan't to use cmgmyr's approach you can use the [url=http://php.net/chmod]chmod[/url] function. I found this page by [url=http://www.google.com/search?q=chmod]searching Google for 'chmod'[/url] (first result): http://catcode.com/teachmod/ In that way you might learn about chmod
  10. [quote author=yana link=topic=100191.msg395140#msg395140 date=1152626512] The test server returns one IP address for me (10.243.102.136) while the Live Server returns a different IP address (216.191.52.74)... [/quote] Do you have a dynamic IP. I've read that at some ISPs the IP change at every request. [quote author=yana link=topic=100191.msg395140#msg395140 date=1152626512] Yeah apparently the Live Server has an older version of PHP (3 or so) and the Test Server uses the newer version 4... [/quote] If it's your server I would upgrade PHP to version 4 (or 5 if you wish). The reason why you need to use $HTTP_SERVER_VARS instead of $_SERVER is that $_SERVER was first implemented in PHP4.
  11. Try putting [code]ini_set('display_errors',true); error_reporting(E_ALL);[/code] in the top of the script and see if any errors are returned.
  12. [quote author=kenrbnsn link=topic=100190.msg395097#msg395097 date=1152623923]Using a double $ indicates that it is a variable variable.[/quote] Heh, didn't knew they were called that... quite a funny name
  13. Are you using different versions of PHP?
  14. [quote author=redarrow link=topic=100105.msg394792#msg394792 date=1152569986] <? $date=getdate(); $today_date=$date[weekday]; echo $today_date; if ($today_date =="Tuesday") { //add code } ?> [/quote] You need to enclose weekday in single or double quotes, else it's a constant. Like [code]$today_date=$date['weekday'][/code]
  15. If you wan't to store more than one thing from the previous forms, you might wan't to look into [url=http://php.net/serialize]serialize[/url].
  16. [quote author=ober link=topic=100181.msg395082#msg395082 date=1152622694] I think you're missing the fact that 99% of the posts in "PHP Discussions" are not from our members.  Those questions are syncronized from another forum.  I believe most of our members post in PHP Help.  It was even worse when we had PHP Newbie Help as well. And as for "admins and mods doing their job"... I apologize that not all the topics are moved instantly.  We have tried to keep a wide array of mods in different parts of the world and varying time zones, with both the maturity and knowledge required of the position.  However, some posts still slip through the cracks, and you must keep in mind that it is of the discretion of the moderator whether a post should be moved or not. One way you can help us is using the "Report to moderator" link found in each post if you think a thread is in the wrong area.  That emails the entire moderator team and posts will be moved within minutes 95% of the time.  If you make a valuable contribution to this community over time, we may consider you for a mod someday.  Just keep that in mind.  I was in your position at one point as well, complaining about mis-placed posts.  Now I'm an admin.  [/quote] I'm sorry if it sounded offending the way I said you should use more time moving topics, but I just find it annoying the the [i]users[/i] can't post in the correct forums, and since you guys are the only ones with the powers to move the topics, I probably let my irritation off on you, which obviously was wrong. I have noticed that many topics are by guests, so perhaps an idea was to disable guest-posting? I weren't quite aware that the 'PHP Discussion'-posts were from another forum... what forum is that?
  17. Programming it yourself shouldn't be very hard for you to do. You might wan't to look into [url=http://dev.mysql.com/doc/refman/4.1/en/fulltext-search.html]full-text searching[/url] which phpfreak has made a tutorial about here: http://www.phpfreaks.com/tutorials/129/0.php
  18. I think you need to state more precisely what a specific forum is for. As an example many people post in the forums under the 'PHP Discussion' category when they need help for some code that is not working. As far as I understand by reading that category name, those forums are for discussion of PHP, split up in certain forums, e.g. 'PHP SQL' and 'PHP General'. Some people even post in the 'Miscellaneous' for help with their scripts. Additionally I think the moderators and administrators should give more work in moving topics to the correct forums, as it is cluttering up the forums with topics you weren't expecting to see when viewing the forum, which makes it harder to find topics in the subject that you wan't to read.
  19. Get an editor with auto indention :P
  20. Trust me, you'll learn to use the command line (not the super-advanced stuff) very quickly as in the start you may be messing around with it in curiosity and because you find it easier and quicker once you've learned a few commands. If there is a command you are unsure how to use, you can most likely get some information by typing [code]command --help[/code] or [code]man command[/code]
  21. I'd recommend [url=http://ubuntu.com]Ubuntu[/url] which I currently use myself. It comes by default with GNOME, but their projects Xubuntu and Kubuntu comes with Xfce and KDE, respectively. Ubuntu is Debian based and really easy to use. It comes in two varieties, Desktop and Server where the Server by default do not come with a window handler. It has a comprehensive package repository which is easily used with apt-get/aptitude or a GUI application (providing you have a window handler of course). It is the most popular/highest ranked distro at [url=http://distrowatch.com]DistroWatch[/url].
  22. Remove the part that checks if the file exists and load the content of the file into the script by using fopen() along with fread() or file_get_contents() and echo it between the textarea tags.
  23. 1. Use accesskeys 2. Use tabindexes
  24. [quote author=designationlocutus link=topic=100058.msg394458#msg394458 date=1152543082] [quote author=Daniel0 link=topic=100058.msg394452#msg394452 date=1152542894] In my opinion [url=http://php.net/preg_match]preg_match[/url] is better. [/quote] Hmm what are a major advantages over each? [/quote] I find preg_match faster and ereg is not binary-safe.
  25. In my opinion [url=http://php.net/preg_match]preg_match[/url] is better.
×
×
  • 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.