[PHP] Deleting Array elements
I'm looking for some code that will enable me to remove a line from a file. I have .htaccess which is being filled by a subscription processor, I need to know how to remove a user from this file once the subscription has either been cancelled or subscription term complete. Any help appreciated. Thanks Jonno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Random Row From Database
Hi, I'm trying to pull a random row from my database and display the contents. I know that the code: SELECT * FROM TABLENAME WHERE RAND() LIMIT 1 should work. However, there are 19 rows in the database and only the first row ever shows up. Is there a way to do this to ensure uniqueness? The code I am using at the moment also filters so that rows are pulled from the database given certain other criteria such as: SELECT * FROM TABLENAME WHERE PayerID=$id AND RAND() LIMIT 1 All of the rows in the database contain the same PayerID and this column is not the Primary Key. Any help much appreciated. Jonathan S Hardiman President/CEO Hardiman Enterprises Worldwide -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] URL Headers - Retrieval
I currently have a script which gathers information from a site, adds a new variable and then resubmits it as a post back to the originating script. I need to gather the header information from the final response to categorise the errors received. At the moment the error I get is not consistant with the information that has been sent. My hosting server, w/ Apache/1.3.19 PHP 4.0.6 and Linux does not have the CURL lib installed. Any help much appreciated. Jonathan S Hardiman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]