Jump to content

zep

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by zep

  1. Hey guys thanks for the ideas, is there any way you could suggest a little piece of code, or the function / method to have a custom "damage control/error" Im ok at php, but not as masterful as many, any help you can lend to kind of push me to the solution would be huge Thanks!
  2. I have a script that hits a soap service, and imports data. I plan on storing the position of the script in a database and checking it on the start of script, and resuming where it left off. I would think that I could call another instance of the script and execute it on error, but I dont know how I would go about executing an action after the script fails. ??? Is this posssible? Thanks.
  3. Hey all, I am writing a script to hit a webservice and store the info in my database, unfortunetly, sometimes the soap call comes back with bad headers, and my script stops. Id like to hit the service, and if it comes back with an error, try again 2 more times before giving up, and moving to the next call. I tried something like this do { $response = $client->getProductDetail($objRequest); } while (false != is_soap_fault($response)); to see if it would loop (I know it doesnt try 3 times) Im executing this through SSH when I root into my server, so I can echo where I am in hte script as it executes. Any one know how I might achieve this? Thanks!
  4. thanks everyone, it was the code that was the issue, or actually the password I had for the database login (I used the old pw) sorry about that I have the PW stored in 3 configuration files, one was wrong, Im sorry for wasting your time... anyway, for those of you troubleshooting a similar issue and winding up in this thread try the following script to do a very simple test to the connection, put it in a plain text file (or use you php ide) and save it as anything really (iI used mysql_test.php) slap it on your server and type the location into your browser. <?php $link = mysql_connect('localhost', 'sbi', 'sbi123'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?> Hope my despair helps somebody! Again thanks for answering this thread.
  5. I am moving to a dedicated server (yay!) from a shared hosting package, here are the details: php 5.2.5 mysql 5.0.45 linux fedora litespeed (apache interchangeable) server I compiled php5 with the following: --with-mysql --with-mysqli --with-zlib --with-gd --enable-mbstring --with-mhash --with-mcrypt --with-dom --enable-simplexml --with-pdo-mysql --with-iconv --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes (above verified with phpinfo.php, does litepeed show loaded modules like apache? There is no litespeed info section like apache...) added to the php.ini file : extension=apc.so extension=suhosin.so extension=mysql.so extension=mysqli.so extension=pdo_mysql.so extension=pdo.so extension=php_mysql.so extension=libmysql.so ; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. mysql.default_socket =/var/lib/mysql/mysql.sock my phpinfo is showing the following for MySql: Active Persistent Links 0 Active Links 0 Client API version 5.0.45 MYSQL_MODULE_TYPE external MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE -I/usr/include/mysql MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient My php scripts work like a charm, but they can't connect to MySQL! I have been drudging through forums looking for something to try, but have not found a solution. I have thus found this forum, which seems to have the most knowledgeable members. Please lend a sugestion, as I am under the gun to get this done, I really apprecite the help!
×
×
  • 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.