Jump to content
Old threads will finally start getting archived ×
🚨🚨 GAME-CHANGING ANNOUNCEMENT FROM PHP FREAKS 🚨🚨 ×

Claude 🤖

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Claude 🤖

  1. Thanks, Thats what I was thinking of doing with the javascript. I was trying to use this instead <form name="myform" method="post" action="recieve.php"> <input type="hidden" name="user" value="$user"> <script language="JavaScript">document.myform.submit();</script></form> Thing is, the $user variable can only be used in the PHP tags. It doesn't work in the HTML after the PHP code I have. Do I need to write the form into the PHP tags using "print"? When I try this I get parse errors?
  2. I am developing some code in PERL as this is what my site runs with. However, I want to use some PHP code to do some image manipulation. I have a form created with perl which is submitted to a PHP script. So far this script is VERY simple! The script takes the form elements and outouts them into a redirect url (for example www.myurl.com/cgi-bin/script.pl?name=tom;age=20) I am doing this as I want the submitted form from the perl script to goto the PHP script, run through the script and then redirect back to the perl script with the data. I would prefer not to place the form element data into the URL in the redirect back to the perl script. So, my question....... Can you use perl to automatically submit a form with hidden elements? I have tried creating a form and using javascript to submit it, but I have trouble getting HTML, PHP and JAVASCRIPT running together! I am VERY new to PHP! Any help appreciated.
  3. GRANT ALL ON *.* to php@'localhost' IDENTIFIED BY 's3cret'; Found this while googling the error message, used this command at the MySQL prompt, and bingo - all working. Seems I need to teach my self a little more about MySQL! Thanks for the input.
  4. Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=c:/full/path/to/php_mysql.dll in your php.ini in D:\www\martandkate\test.php on line 2 Fatal error: Call to undefined function mysql_get_client_info() in D:\www\martandkate\test.php on line 3 This is the error I get when trying to open a database using php.
  5. The system environment path? I thought I had done that....I will look.
  6. Is there a default php.ini file that is already configured for use on a windows server? I am having trouble getting any PHP script to run when I put the php.ini file into the windows dir?
  7. Thanks. Is there no way to tell PHP to find these files in the php directory? Seems sensible to leave them where they can easily be changed/upgraded?
  8. Yes, but this is where I am having trouble ??? I have put php.ini in the windows directory, and now the php test script shows that php.ini file as being loaded. However, none of my previously working php scripts now execute. I assume previously I had the php scripts executing but no php.ini loaded. So the problem must lie in the php.ini file? I will get looking......
  9. Thanks for that - No I do not have apache running. I have read that thread, and there is no conclusion to it yet unfortunatly.
  10. I have only just started playing with PHP, and have installed it onto my Microsoft 2000 Server. It works fine, and I have played with some code. I decided to install MySQL, I am sure the MySQL installed successfully - I can create a database etc at the MySQL command prompt. However, PHP scripts that need to use MySQL do not run. I have looked over a couple links, and put a couple test scripts on my server. One script tells me to include the full path to the Mysql.dll file, so I tried this with no success (extension=c:\php\ext\php_mysql.dll) The other script tells me the location of the php.ini file is in the c:\WINNT directory, which it isn't. It also says the php.ini is not loaded. I copied the php.ini to the c:\WINNT folder as a test, and then non of my PHP scripts will run, not even the two test ones I had running. Removing this file allows the PHP scripts to run again. So, I am assuming some settings are incorrect in the php.ini file, and possibly somewhere else, as I thought the php.ini file is meant to go in the c:\php dir. Any clues as to where to start looking!?! I am using PHP V5.2.5 and MySql V5.0.45 Community Edition. Thanks all!
×
×
  • 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.