[PHP] checking multiple URL parameters

2004-09-15 Thread Dustin Krysak
Hi there, I am currently using the following code to display content based on the URL parameters HTML CONTENT else { ?> OTHER HTML CONTENT ?> now what I need to do is modify the code so that the script che

[PHP] How I can create....

2004-09-15 Thread Yusdaniel Rodriguez Espinosa
Hello to everyone. I want to clean a field from my Data Base in MySQL from a button. But I don't know how i can create a button in PHP, the funtion of button is TRUNCATE TABLE(Table). I have a form in HTML but hi don't work because when I press the button he don't do anything, but when i press

Re: [PHP] checking multiple URL parameters

2004-09-15 Thread Jason Davidson
same way, if i understand your questoin... if your url looks like this sometestpage.php?mov=something&year=1999 - the queries are seperated by the '&' char.. then $_REQUEST will have both mov and year elements in it so just as $_REQUEST['mov'] worked, so would $_REQUEST['year'] Jason Dusti

[PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Jeff Oien
Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How I can create....

2004-09-15 Thread Jason Davidson
the reason it doesnt work, is becuase you have muddied the requests for the client and the server. PHP is completely server side, so putting a php function name in onclick, which will execute client side code doesnt work. the solution would be to have you button reload the page, or submit to an

Re: [PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Marek Kilimajer
Jeff Oien wrote: Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. Jeff $string = preg_replace('/[^a-z0-9]/i', '', $string); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread John Holmes
Jeff Oien wrote: Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks. $fixed = preg_replace('/[^a-zA-Z0-9]/','',$text); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E

Re: [PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Jason Davidson
i think with perl regs.. as preg_replace is, you can just use a shortcut command.. \w is any word char, \d is any digit.. im not sure it will improve this solution any, but its something else :P Jason Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > Jeff Oien wrote: > > Is there an easy way to

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > So now are you fully convinced it's your firewall that's the root of your > problem? No, not really. At the moment I am assuming it is a bug in something somewhere. The versions of php and MySQL that I am using are not

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
"Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Yeah, seeing how we don't have physical access to your system that's > all you will get is guesses and suggestions. If you want definative > answers, hire a consultant, bring them to your pc, and pay them to fix > it.

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> > Now that you have figured out, that it is possible its your firewall, > which, many, and i think you claimed before was impossible, what > exactly makes you sure i said anything invalid. It is my understanding that

[PHP] Coding Blues - Parse Error

2004-09-15 Thread Yusuf
Hello. I am writing some code, but though everything seems ok, I get the same error: "parse error, unexpected T_VARIABLE on line 23" . Here is the code: var $connection; var $db; var $query; var $record; var $tlist; } Function fl_SQL($server, $user, $pass, $db = NULL) { $thi

RE: [PHP] Coding Blues - Parse Error

2004-09-15 Thread Dan Joseph
Hi, You don't have a ; at the end of the line. You have $this->db = $db and you should have $db;. -Dan Joseph -Original Message- From: Yusuf [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 11:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Coding Blues - Parse Error

[PHP] Re: php/MYSQL remove duplicate records

2004-09-15 Thread Sam Hobbs
I do that a lot using Microsoft Access. I just finished on a project where I had to eliminate duplicates from each of three or more queries, a couple of which have three keys. However I am not much more experienced han you are; Microsoft Access generates SQL for us so I am not sure what the SQL

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread raditha dissanayake
me thinks it's time to look very closely at http://www.postgresql.org Not just you sam, all of us. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP apple

Re: [PHP] Coding Blues - Parse Error

2004-09-15 Thread John Holmes
Dan Joseph wrote: You don't have a ; at the end of the line. You have $this->db = $db and you should have $db;. Also, this: > Function doquery($query, $db = $this->db){ is causing your error. The default value must be a constant expression, not a variable, function, method, etc... -- ---John

[PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread Michael Mao
Anyone know how I can split a number into individual digits? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread John Holmes
Michael Mao wrote: Anyone know how I can split a number into individual digits? http://us2.php.net/manual/en/function.preg-split.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mail

Re: [PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread Michael Mao
Thanks John. Found what I'm looking for: Function str_split() On Wed, 15 Sep 2004 23:48:33 -0400, John Holmes <[EMAIL PROTECTED]> wrote: Michael Mao wrote: Anyone know how I can split a number into individual digits? http://us2.php.net/manual/en/function.preg-split.php -- PHP General Mailing Lis

[PHP] Re: Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread Greg Beaver
Michael Mao wrote: Anyone know how I can split a number into individual digits? If you want to be funky, you can try Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session theory

2004-09-15 Thread Dennis Gearon
At one time, I thought that I read about a problem with PHP4 sessions involving the recognitioni of the session expiration in the session engine. The problem was that the session variables were read into the scipt BEFORE the expiration time was checked. Anyone remember this? So, I'm asking if the

Re: [PHP] PHP include before or after Apache SSI?

2004-09-15 Thread David Robley
On Thu, 16 Sep 2004 04:51, Andrew W wrote: > > On 13 Sep 2004, at 19:11, Ed Lazor wrote: > >> Why use SSI? PHP's include directive allows you to bring separate >> pages >> together for creating an overall page. You can include .html files. >> Also, >> PHP programming isn't *required* in a file

Re: [PHP] Session theory

2004-09-15 Thread Chris Shiflett
--- Dennis Gearon <[EMAIL PROTECTED]> wrote: > At one time, I thought that I read about a problem with PHP4 > sessions involving the recognitioni of the session expiration in > the session engine. > > The problem was that the session variables were read into the > scipt BEFORE the expiration time

RE: [PHP] iguanahost - anyone else being plagued?

2004-09-15 Thread David Robley
On Thu, 16 Sep 2004 04:14, Trevor Gryffyn wrote: > It appears to be a "user not found" type error..'desintione non > existente' looks a lot like "destination doesn't exist". The guys that > manage the PHP-General list need to be made aware so they can remove the > offending email address. Th

[PHP] auto converting a $string to ALL Upper Case.

2004-09-15 Thread Louie Miranda
Is there a PHP syntax that can convert a $string result to all UPPER CASE? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Coding Blues - Parse Error

2004-09-15 Thread Oliver Kurz
Hello Yusuf, > Class fl_SQL > { > var $server; > var $user; > var $pass; > > var $connection; > var $db; > > var $query; > var $record; > var $tlist; > } The bracket is wrong. Your class only has properties but no methods. > Function fl_SQL($server, $user, $pass, $db = NULL) { > $

Re: [PHP] auto converting a $string to ALL Upper Case.

2004-09-15 Thread - Edwin -
On Thursday 16 September 2004 15:36, Louie Miranda wrote: > Is there a PHP syntax that can convert a $string result to > all UPPER CASE? php.net -> manual -> strings -> strtoupper ? -- - E - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] download pdf using php script

2004-09-15 Thread adwinwijaya
Hello PHP Users, I have files (that protected from direct download) and I put it outside public_html/ directory (outside web server directory). and the people from outside could access the file by typing: www.myweb.com/download.php?filename=xzy.pdf can someone give me hint how to do this ? than

[PHP] problem compailing php-4.3.6 please help !!!!! CAn someone PLEA SE HELP !!!!

2004-09-15 Thread Juan Fernandez
Hi, I am installing php-4.3.6 on Fedora, When I am compiling I receive the following error : [EMAIL PROTECTED] php-4.3.6]# make install Installing PHP SAPI module: apache2handler /www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp4.la /www/modules /www/buil

<    1   2