[PHP-DB] Re: server performance
I think that's entirely dependent on the server's OS. If the OS has a problem, then yes, obviously, otherwise I don't see a reason (unless there is a bug) for significant speed loss. Eat Pasta Type Fasta [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Not exactly a PHP question, but you guys will know, is there a significant performance difference in how long does it take a server to find files as the directories become more nested, eg. 1. file index.php uses images from directory DIR vs. 2. file index.php uses images from directory images/DIR vs. 3. file index.php uses images from directory files/images/DIR Thanks in advance, R --__-__-__ eat pasta type fasta -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: how can this be? GET instead of POST - db error
The person could have been trying to break into the DB. Andy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi everybody, I am just trying to find out how some db errors happened during a user was browsing my web app. This is out of the Apache log: GET /subapp_profiles/act_upload_image.php HTTP/1.1 200 160 POST /subapp_profiles/act_upload_image.php HTTP/1.1 302 5 I do not have a clue where this GET request could come from. This has caused a empty sql statement and therefore a db error. How can could this be achieved? By clicking back in the browser window? I dont think so since the same user was on another site before. Has anybody a idea on that? Andy -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] File Update
I want to be able to update a file on my server (which can be accessed through FTP). My question is how do I go about accessing it? Do I have to use the ftp_connect(); functions or can I just go about with something like this: --- // This doesn't work: $Location = ftp://;. $Find-USER .:. $Find-PASS .mysite.com/files/. $Find-BRANCH ..txt; if (!$fp = fopen($Location, a)) { Error(Error: 0001. File ($Location) could not be found.); } else { if (!fwrite($fp, $Find-Line)) // line is an HTML tag/link { Error(Error: 0002. Information was not written.); } if (!fclose($fp)) { Error(Error: 0003. File close error.); } } - I cannot figure out how to access the file and update it (which is just /file/*.txt from where I'll be accesing it). By update I mean append. I tried to access it with the complete. So, what file path do I use to update (append) a file on the same Windows (2k) server as my web server (/files/*.txt is the location of the file relative to the PHP code). -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php