Jump to content

obyno

Members
  • Posts

    10
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

obyno's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks once again Wildteen. I applied your config to my current setup i.e. Apache 2.2.8 and php 5.2.5 still under cgi-binary mode and installation went to completion but on pointing to my phpinfo() function page I got a 404 error "The requested URL /php/php-cgi.exe/phptest.php was not found on this server." I checked the error logs and could discern that dynamic libraries were not loading even though I checked and made sure that all the extensions dlls were in the extensions folder. An example of an error message: [Tue Jan 29 20:37:41 2008] [error] [client 127.0.0.1] in Unknown on line 0 [Tue Jan 29 20:37:41 2008] [error] [client 127.0.0.1] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\PHP\\ext\\php_ifx.dll' - The specified module could not be found.\r Can you tell why this might be happening?
  2. unfortunately so wild teen, I have to install as a cgi-binary. Can it not be done on Apache 2.2.x. If I knew this to be definitively so, then I can move forward in all good conscience. All the same thanks dude.
  3. Hello, I am running Windows XP, SP2 and running php 5.2.5 on a new installation of Apache 2.2.8 as a CGI Binary. Installation goes well and ends successfully with the php but when I try to test for php using the function phpinfo(); I get a variety of errors from a 400 bad request to recently a 404 "The requested URL /PHP/php-cgi.exe/phptest.php was not found on this server." I have edited httpd.conf the way install.txt insists it should be done. Is php 5.2.5 even compatible with Apache 2.2.8 in this mode? Can somebody please help and suggest to me what I need to do to have this up? Thanks in advance.
  4. Hey thanks very much treenode, wish you a glass of the fiery stuff. It worked and just about solves my problem
  5. I know what you mean. A code snippet I have always used to not worry about sessions this way is to do this: if(session_id() == "") { session_start(); } before the start of any page where there is a need for session info. That way I knda have both ends of the bargain neatly covered.
  6. I am writing an application where one of the requirements is that email accounts be opened on the server for anyone who successfully registers as a member of the website. I have chosen to use socket functions writing to cpanel page-handlers to do this. But even though I have gotten the script to at least execute completely without declaring errors or notices the email accounts still don't get created. Below is the code I am using: $sAuth = base64_encode("$cpaneluser:$cpanelpassword"); $sHTTP = "GET /frontend/$cpaneltheme/mail/doaddpop.html?email=$emailaddress&domain=$domain&password=$password&quota=$quota\r\n HTTP/1.0\r\nAuthorization: Basic $sAuth\r\n"; $hSocket = fsockopen("domainname", 2082); $put = fputs($hSocket, $sHTTP); Please could someone inspect it and see if they can detect some error in what I have written. Thanks in advance.
  7. I am hosted on a public server where I have no access to the php.ini. I dont think the Administrators would take kindly to any such requests from me. Thanks though.
  8. I am trying to read the contents of a forty megabyte text file that was saved as a Tab delimited file from MS Excel. The intention is to insert the columns within into a MySQL table. The trouble is that the maximum times in minutes which a file can be executed before php gives up is not long enough to compare with the lenth of time thi is taking. Can somebody please suggest to me how I might accomplish this? Thanks in advance
  9. trying to insert from three text files of 1000 tab delimited lines into db lets me go only as far as 255 rows and no further each time.And then of these a select query comes up blank via an html form page.Please what could be the prob.Anyone help? I need to have the insertions done like - have the first element of the phonenumber.txt file inserted under phonenumber column, then have the first element of the name.txt file go into the name column of db, then the address column go in after it;then have this repeated row row for the three files until all the data has been inserted.When I do it all in one insert statement nested in foreach statements i receivemultiples of each elment for...really hope you can help.Thanks for caring <? include \"db.php\"; $nu = @fopen(\"phonenumber.txt\", \"r\") or die(\"<br>Failed to open file: <i>phonenumber.txt</i>.\"); $array = file(\"phonenumber.txt\"); $nu = @fopen(\"userlist.txt\", \"r\") or die(\"<br>Failed to open file: <i>userlist.txt</i>.\"); $array1 = file(\"userlist.txt\"); $nu = @fopen(\"password.txt\", \"r\") or die(\"<br>Failed to open file: <i>password.txt</i>.\"); $array2 = file(\"password.txt\"); for ($i=0; $i<count($array); $i++) { $myquery = \"INSERT into totalled (phoneNumber, user, password) VALUEs (\'$array[$i]\', \'$array1[$i]\', \'$array2[$i]\')\"; $result = mysql_query($myquery, $ok); if (!$result) { echo \"Nothing\"; } } ?>
×
×
  • 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.