First  |  Prev |  Next  |  Last
Pages: 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
Variable number of parameters
Is it possible to grab a variable number of parameters and send the appropriate amount to another function? <?php // Some class $this->db->prepare("SELECT * FROM `table` WHERE (`id`=?)"); $this->db->bind('ii', $id1); $this->db->prepare("SELECT * FROM `table` WHERE (`id`=? AND `other_id`=?)"); $this->db-... 8 Aug 2008 10:59
Regular Expression by Exception
Fellows: If I use ereg_replace($params, $string) I can replace the char that match with $params in the $string. BUT, how I can replace ALL chars EXCEPT the chars in $params. Something like !$params, I think ... 5 Aug 2008 01:57
RPM
Hello All, Does any body create installable RPM's for reinstalling their PHP based websites? Is it possible....???? If yes could you please share your experience. Oh yes you could tar it but that's a primitive method. My quest is to make all my websites installable on any given server using 2 or 3 commands ... 5 Aug 2008 10:07
PHP querying mysql db for data limited to the last month
So I have this code I'm working with (pasted below) that queries a mysql db table called timetracking. The goal of the page is to search the db for all data based on a certain engineer, sorted by product and it takes pre-defined values based on actions performed, sums them based on product and display's the per... 5 Aug 2008 14:15
mail script not working
I have been trying to get this mail script to send an html message and it just sends the html in plain text with all the html code showing. Could somebody tell my way this will not work. When it does send it takes a long time to go through but when I send a plan text message it goes through right away $plain_t... 4 Aug 2008 12:36
Not found regex
Hello All, I have to create the regular expression to allow all the file extensions except the specified extension. Suppose I want to allow extensions with php, so the regex is: ^.+\.php$ But here i need the regex which allows all the extensions except php. I will appreciate any help. Best Regards, Man... 4 Aug 2008 15:41
SoapClient and arrays
Hello, I'm calling a webservice that is described by a WSDL-URL using the PHP-builtin Soap client. This works fine in general. But although the response is received correct, the variable type is wrong. According to the WSDL file, the response is defined like this: <s:element name="SaveResponse"> <s:com... 5 Aug 2008 06:02
Store database password outside of public_html folder
Hi All, I've been reading on the internet that is most secure to store your database details outside of the public accessible folder. I am a bit stuck on how to do this. I've got a folder "db_details" that contains the file "dbdetails" which contains the database login info. I normally include this file in an... 4 Aug 2008 09:30
How to jump into and loop through XML element
PHP newbie coming over from Perl. Been trying to convert some of my Perl scripts over to PHP5. I am making a request to Amazon and receiving the following response. How can I jump down to the <Item> element and loop through all the ones that exist. I have been trying to do this with XML Simple, but with no succ... 4 Aug 2008 08:28
PDO prepared statements and LIKE escaping
Hi folks. I am trying to figure out the best way to handle an interesting issue in PDO prepared statements. Consider: $search = 'mystring'; $stmt = $dbh->prepare("SELECT * FROM mytable WHERE myfield LIKE :myfield"); $stmt->execute(array(':myfield' => $search . '%')); The above will search for any record w... 5 Aug 2008 11:09
First  |  Prev |  Next  |  Last
Pages: 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91