|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
php command line
I posted here once, a while ago about running a php script on the command line. I was then informed that any and all code will run just the same on the command line as it would though the browser. However I have encounterd a problem.
I have everything working in the script except for the mysql commands. A simple query test PHP Code:
If anyone could offer me some help on the situation or some suggestions it would be greatly appreciated. |
|
#2
|
|||
|
|||
|
Quote:
Are you getting errors (or error messages)?
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#3
|
|||
|
|||
|
no, no errors at all. Just simply no record added to the table.
|
|
#4
|
|||
|
|||
|
what about when you do a select ???? do you get results ???
|
|
#5
|
|||
|
|||
|
nope. the file errors out. it doesn't display any errors it just doesn't run through the rest of the script. any mysql_* command makes the script stop in execution.
|
|
#6
|
|||
|
|||
|
it might be a permission error ... which user is running the script... that might be the issue...
|
|
#7
|
|||
|
|||
|
What version of PHP are you using? You might want to check the PHP Bug archives for something like this. I tested it on the latest CVS snapshot version, and it worked fine.
It may also have something to do with the connection class....have you tried using the commands on their own, away from the class? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > php command line |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|