[PHP] Re: Mail stopped working - Somewhat Urgent
Bryan Gintz wrote: All of a sudden Mail through PHP just stopped working, we can do it through the command line, but refuses to work in PHP. Any ideas? Does the maillog mention any errors? How about the webserver log? Best regards Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Using functions before they're defined
I've found that you can specify a function anywhere in the page and call it anywhere in the page so: ? foobar(); function foobar() { echo in foobarbr\n; } foobar(); ? would work and display the text twice, without errors/warnings I haven't looked at the php's source code, but maybe it's a two pass parser (??) first it gets all the functions then it executes the code -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 6:06 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Using functions before they're defined What happened when you tried? -Original Message- From: Brad Harriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 8:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Using functions before they're defined How does PHP 4 locate function definitions if the function is called before it is defined? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] DreamWeaver/PHP ability?
I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Quote in input tag value?
On Thursday, February 7, 2002, at 04:54 PM, Rick Emery wrote: I prefer: print input type=text value=\My Quote\; -Original Message- If there is a quote mark in an input tags value what is the correct way to print the quote? input type=text value=quotMy Quotequot or input type=text value=\My Quote\ It probably doesn't really matter, but from a purist's point of view, using the (X)HTML entities is probably the best use in this case. I only suggest this because you are using double-quotes for display purposes, not for coding purposes, so it's unambiguous what you mean when you use them. To the end user it won't matter, but for another reader of your code, it may help. But again, it's probably more opinion (and if you -are- using the quotes for some obscure code, then nevermind what I just wrote). Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] modDb Contribution
Hi PHPers, in late 2001 I had a customer that was interested in a kind of universal (my)SQL module for PHPNuke / phpWebsite. Thus I ordered the development and - as fair as life is - the customer went straight into bankruptcy. Now I have a first beta of modDb - as we call it - and almost no need to push it further. At least - kind fellows - the programmers offered to do some additional work on modDb. Now ... to keep a long story short ... which is the best way to bring this to a kind of happy end? Where could I contribute it? On the one hand I would love to contribute it under GPL - on the other hand it cost something ... Please let me in on your thoughts about this matter! Thanx in advance ... is it unusual to ask this kind of question? Please let me know ... -- Cheers, Vince ''' ô¿ô - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Regex function needed
Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Regex function needed
$string = ereg_replace([A-Za-z']{1,3}, , $string); // don't forget I'm I haven't checked but something like this. -Original Message- From: Michael Kimsal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:59 To: [EMAIL PROTECTED] Subject: [PHP] Regex function needed Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex function needed
I don't know if this is the best way but: $str = This is or was a test for short words; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace( [a-z]{1,3} , , $str); } print $str; this replaces all occurences of a space followed by 1,2 or 3 alphabetic characters followed by a space... the reason why it's performed in a while loop is because of two or more short words following each other and thus sharing a space... Greets, Edward - Original Message - From: Michael Kimsal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 11:58 PM Subject: [PHP] Regex function needed Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex function needed
this might even work beter, to take comma's and periods etecetera into account to: $str = This is or was a test for short words, although an, should be deleted to.; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace( [a-z']{1,3}([ ]{1}|[,]{1}|[.]{1}|[:]{1}), \\1, $str); } or even this for comma's etcetera before the words: $str = This is or was a test for short words, although an, should be deleted to.; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace(([ ]{1}|[,]{1}|[.]{1}|[:]{1})[a-z']{1,3}([ ]{1}|[,]{1}|[.]{1} |[:]{1}), \\2, $str); } Greets, Edward print $str; - Original Message - From: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Michael Kimsal [EMAIL PROTECTED] Sent: Friday, February 08, 2002 12:33 AM Subject: Re: [PHP] Regex function needed I don't know if this is the best way but: $str = This is or was a test for short words; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace( [a-z]{1,3} , , $str); } print $str; this replaces all occurences of a space followed by 1,2 or 3 alphabetic characters followed by a space... the reason why it's performed in a while loop is because of two or more short words following each other and thus sharing a space... Greets, Edward - Original Message - From: Michael Kimsal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 11:58 PM Subject: [PHP] Regex function needed Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Regex function needed
what about words at the start of the string?? eg $str = One can see this is or was a test for short words, although an, should be deleted to.; -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:47 AM To: [EMAIL PROTECTED]; Michael Kimsal Subject: Re: [PHP] Regex function needed this might even work beter, to take comma's and periods etecetera into account to: $str = This is or was a test for short words, although an, should be deleted to.; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace( [a-z']{1,3}([ ]{1}|[,]{1}|[.]{1}|[:]{1}), \\1, $str); } or even this for comma's etcetera before the words: $str = This is or was a test for short words, although an, should be deleted to.; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace(([ ]{1}|[,]{1}|[.]{1}|[:]{1})[a-z']{1,3}([ ]{1}|[,]{1}|[.]{1} |[:]{1}), \\2, $str); } Greets, Edward print $str; - Original Message - From: Edward van Bilderbeek - Bean IT [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Michael Kimsal [EMAIL PROTECTED] Sent: Friday, February 08, 2002 12:33 AM Subject: Re: [PHP] Regex function needed I don't know if this is the best way but: $str = This is or was a test for short words; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace( [a-z]{1,3} , , $str); } print $str; this replaces all occurences of a space followed by 1,2 or 3 alphabetic characters followed by a space... the reason why it's performed in a while loop is because of two or more short words following each other and thus sharing a space... Greets, Edward - Original Message - From: Michael Kimsal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 11:58 PM Subject: [PHP] Regex function needed Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex function needed
Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal: Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. ? $string=over deze regex loop ik nu al de hele dag en een uur te piekeren. 't wil niet! of wel! l'a.; $string= .$string; while (preg_match(/\W\w{1,3}\W/i,$string)) $string = preg_replace(/\W\w{1,3}\W/i, , $string); $string=substr($string,1); echo $string; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex function needed
after some puzzling I came to this: $str = One as a start. This is or was a test for short words, although an, should be deleted to.; $str = preg_replace(array(/\b[A-Za-z']{1,3}\b/, /[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/), array(, \\1), $str); print $str; which means: first: replace all 1,2 or 3 character occurrences by nothing after that, replace all spaces that are followed by one comma, or one period, or one : by that comma, period or : hope this is what you wanted? Edward - Original Message - From: Bas Jobsen [EMAIL PROTECTED] To: Michael Kimsal [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 08, 2002 1:10 AM Subject: Re: [PHP] Regex function needed Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal: Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. ? $string=over deze regex loop ik nu al de hele dag en een uur te piekeren. 't wil niet! of wel! l'a.; $string= .$string; while (preg_match(/\W\w{1,3}\W/i,$string)) $string = preg_replace(/\W\w{1,3}\W/i, , $string); $string=substr($string,1); echo $string; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Regex function needed
I don't know about preg but how about this monster? $str = I'm okay now aren't I. Do I work? 'mm; while(eregi(' [a-z\']{1,3} ', $str)) $str = eregi_replace(' [a-z\']{1,3} ', ' ', $str); while(eregi(' [a-z\']{1,3}([^a-z\' ])', $str)) $str = eregi_replace(' [a-z\']{1,3}([^a-z\' ])', '\1', $str); while(eregi('([^a-z\' ])[a-z\']{1,3} ', $str)) $str = eregi_replace('([^a-z\' ])[a-z\']{1,3} ', '\1', $str); $str = eregi_replace('^[a-z\']{1,3} ', '', $str); $str = eregi_replace('^[a-z\']{1,3}([^a-z\'])', '\1', $str); $str = eregi_replace(' [a-z\']{1,3}$', '', $str); $str = eregi_replace('([^a-z\' ])[a-z\']{1,3}$', '\1', $str); echo $str; -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:09 To: Michael Kimsal; [EMAIL PROTECTED] Subject: Re: [PHP] Regex function needed after some puzzling I came to this: $str = One as a start. This is or was a test for short words, although an, should be deleted to.; $str = preg_replace(array(/\b[A-Za-z']{1,3}\b/, /[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/), array(, \\1), $str); print $str; which means: first: replace all 1,2 or 3 character occurrences by nothing after that, replace all spaces that are followed by one comma, or one period, or one : by that comma, period or : hope this is what you wanted? Edward - Original Message - From: Bas Jobsen [EMAIL PROTECTED] To: Michael Kimsal [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 08, 2002 1:10 AM Subject: Re: [PHP] Regex function needed Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal: Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. ? $string=over deze regex loop ik nu al de hele dag en een uur te piekeren. 't wil niet! of wel! l'a.; $string= .$string; while (preg_match(/\W\w{1,3}\W/i,$string)) $string = preg_replace(/\W\w{1,3}\W/i, , $string); $string=substr($string,1); echo $string; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: DreamWeaver/PHP ability?
There is no PHP support in Dreamweaver UltraDev. Gary Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Complex Version Checking
Does anyone know of a method of testing the minimum version of PHP required for a particular job? - Assume I'm developing a web-site for a customer who has PHP 4.0.5 installed. Now, I tend to use the latest version (4.1.1), so I have to be a little careful in certain aspects, but it would be useful if I could run a script across all .php files which would tell me what the minimum version required is. I suspect that this means writing a simple parser - coping with #defines, reading functions and class based functions, checking variables (like the new $_GET, _$POST etc) or is there an easier way - any regex gurus out there? Ideally, I should be able to run a script which produces a simple output - the minim version number required to run all of the passed scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Regex function needed
what about? $str = a bc def ghij klmno p qr i'd do, it. stu vwxy a; $az = [a-zA-Z']; $str = str_replace(,, , , $str); $str = str_replace(., . , $str); $str = trim(preg_replace(array(/ $az /, / $az$az /, / $az$az$az /), , $str )); // couldn't get / [a-zA-Z]{1,3} / to work :( $str = str_replace( , , $str); $str = str_replace( ,, ,, $str); $str = str_replace( ., ., $str); $str = str_replace(,., ., $str); echo $str; -Original Message- From: Douglas Maclaine-cross [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:09 AM To: 'Edward van Bilderbeek - Bean IT'; Michael Kimsal; [EMAIL PROTECTED] Subject: RE: [PHP] Regex function needed I don't know about preg but how about this monster? $str = I'm okay now aren't I. Do I work? 'mm; while(eregi(' [a-z\']{1,3} ', $str)) $str = eregi_replace(' [a-z\']{1,3} ', ' ', $str); while(eregi(' [a-z\']{1,3}([^a-z\' ])', $str)) $str = eregi_replace(' [a-z\']{1,3}([^a-z\' ])', '\1', $str); while(eregi('([^a-z\' ])[a-z\']{1,3} ', $str)) $str = eregi_replace('([^a-z\' ])[a-z\']{1,3} ', '\1', $str); $str = eregi_replace('^[a-z\']{1,3} ', '', $str); $str = eregi_replace('^[a-z\']{1,3}([^a-z\'])', '\1', $str); $str = eregi_replace(' [a-z\']{1,3}$', '', $str); $str = eregi_replace('([^a-z\' ])[a-z\']{1,3}$', '\1', $str); echo $str; -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:09 To: Michael Kimsal; [EMAIL PROTECTED] Subject: Re: [PHP] Regex function needed after some puzzling I came to this: $str = One as a start. This is or was a test for short words, although an, should be deleted to.; $str = preg_replace(array(/\b[A-Za-z']{1,3}\b/, /[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/), array(, \\1), $str); print $str; which means: first: replace all 1,2 or 3 character occurrences by nothing after that, replace all spaces that are followed by one comma, or one period, or one : by that comma, period or : hope this is what you wanted? Edward - Original Message - From: Bas Jobsen [EMAIL PROTECTED] To: Michael Kimsal [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 08, 2002 1:10 AM Subject: Re: [PHP] Regex function needed Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal: Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. ? $string=over deze regex loop ik nu al de hele dag en een uur te piekeren. 't wil niet! of wel! l'a.; $string= .$string; while (preg_match(/\W\w{1,3}\W/i,$string)) $string = preg_replace(/\W\w{1,3}\W/i, , $string); $string=substr($string,1); echo $string; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: [PHP-DB] Need to delete charcters from a string
$str = substr($str,0,-3); -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 1:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] Need to delete charcters from a string I need to delete the last 3 character of a string, what command can i use o do this. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Group in NY
Hi, I'm getting together a PHP group in New York, NY. If interested, please send me an email. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How to keep form inputs from being cleared
Probably the easiest way is to not get to that point at all in the first place. Just use a client-side javascript form validation script to prevent un-filled fields from even occurring. Another way around ths is to create tempory session variables on the processing page, and if some of the form fileds( ie : all the form fields are not filled out) you could redraw the form and fill the fields in with those temp vars. Hope these help you out, Joe :) Compman86 [EMAIL PROTECTED] wrote in message 007f01c1b016$bbb45010$dd563944@cc1966780a">news:007f01c1b016$bbb45010$dd563944@cc1966780a... I posted about this a few days ago. I received several responses but none of them were very helpful (thanks for the effort though). I finally figured out what it was by process of elimination. At the top of my registration form, I put session_start() just like I did for all my other scripts. Well it turns out that by doing this, for some reason, it clears the form. I have a hunch that the cookie request by session_start() has something to do with it. Well, the only reason someone would be at the registration form would be if he/she was not a member, therefore the session ID would be pointless. This is the major flaw of PHP's built in sessions imho: If a user disables cookies, the session functions assign the session ID to the constant SID. However, if the SID is not passed on religiously, a new session will be made. In an instance like this where session_start() cannot be used, you can't pass on the SID. It seems like I'm just going to resort to requiring that my users enable session cookies. The hastle of making the code to use both SID and/or cookies just doesn't seem worth it. If anyone has any ideas of a resolution to this problem, feel free to post here or email me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New York PHP Group
Hi, I'm getting a PHP group together in the New York, NY area. Please email me if insterested. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Checking for plus signs?
I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do?
Re: [PHP] Checking for plus signs?
What's the error? Tyler - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 7:40 PM Subject: [PHP] Checking for plus signs? I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Quote in input tag value?
you might want to check your coding, but that is a parse error waiting to happen. Jim Lucas - Original Message - From: Rick Emery [EMAIL PROTECTED] To: 'Nathan Cassano' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 1:54 PM Subject: RE: [PHP] Quote in input tag value? I prefer: print input type=text value=\My Quote\; -Original Message- From: Nathan Cassano [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 3:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Quote in input tag value? If there is a quote mark in an input tags value what is the correct way to print the quote? input type=text value=quotMy Quotequot or input type=text value=\My Quote\ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checking for plus signs?
The plus is a special character for regular expressions. You need to escape it in order to search for a literal + Try this: eregi(\\+, $variable) Jeff At 08:40 PM 2/7/2002 -0500, you wrote: I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: array variable passing in session.
Hi Peter, are you limited to using arrays? If not, try msql_fetch_row() since you are only looking for the one record, ie: the corresponding username and password record for the username and password that was passed. Hope this helps, Joe :) ?php session_start(); include(config.php); mysql_connect($host_name, $user_name, $passwd) or die(Unable to connect to $hostname.); // select database on MySQL server mysql_select_db($db_name) or die(Unable to select databse.); // formulate the query $sql_statement = SELECT user_id, password FROM $table_name WHERE user_id = '$user_id' AND password = '$password'; $result = mysql_query($sql_statement) or die(Unable to execute query.); //if there is a corresponding record if(mysql_fetch_row($result)) { $usid = mysql_result($result,0); $pswd = mysql_result($result, 1); //create session variables session_register(password); $password = $pswd; session_register(user_id); $username = $usid; //echo a friendly message or use header() function to redirect the user to the appropriate page echo Succesful login!; } else { //the user is not a registered member so redirect them to a sign up page or another page to try and login again header(Location: signup.php); } ? Peter Ruan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am running into a problem that I can't figure out the solution to. So I'm hoping that someone can give me some pointers here. I have two files (see below): verify.php and edit.php The job of verify.php is basically to verify that a user is in the database before allowing him/her to edit the information. The information retrieved is saved to arrary varaiable $row. I do a session_register() to $row and that information should be passed to subsequent pages that has session_start(), right? However, when I tried to print out the information again in edit.php, it doesn't seem to register it in. At first I thought it was the array problem, so I put the array variable $dummy to test it out and that can be reigstered and retrieved correctly. What am I doing wrong??? Also, how do I redirect to a page automatically once the user is verfied (right now I have to ask the user to click on a link to redirect). Thanks in advance, Peter /*** verify.php / ?php session_start(); include(config.php); mysql_connect($host_name, $user_name, $passwd) or die(Unable to connect to $hostname.); // select database on MySQL server mysql_select_db($db_name) or die(Unable to select databse.); // formulate the query $sql_statement = SELECT * FROM $table_name WHERE user_id = '$user_id' AND password = '$password'; $result = mysql_query($sql_statement) or die(Unable to execute query.); $num_of_rows = mysql_num_rows($result); /* XXX: test array variable...take out later */ $dummy = array(one, two, three); session_register(dummy); if (!$num_of_rows) { echo h3User ID and password missmatch, try again!/h3; } else { while ($row = mysql_fetch_array($result)) { session_register(row); // register information retrieved from MySQL } printf(Successfully Logged In! a href=\edit.php\Click Here/a); echo br; } ? /* edit.php */ ?php session_start(); foreach ($dummy as $val) { echo $val . br; } foreach ($row as $data) { echo $data . br; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checking for plus signs?
try this if(eregi(/\+/,$variable)) Jim Lucas - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 5:40 PM Subject: [PHP] Checking for plus signs? I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checking for plus signs?
Actually, all you need is this: if(eregi(\+,$variable)) You only need to escape the + sign once. Tyler - Original Message - From: Jim Lucas [php] [EMAIL PROTECTED] To: Leif K-Brooks [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 7:39 PM Subject: Re: [PHP] Checking for plus signs? try this if(eregi(/\+/,$variable)) Jim Lucas - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 5:40 PM Subject: [PHP] Checking for plus signs? I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: DreamWeaver/PHP ability?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually Ultradev does support PHP if you buy a php application server extension. A company in Romania (The name escapes me) makes the extension and I have heard it works very well. I am sure somebody can find the name of the company by searching for PHP Ultradev extension. Just my two cents, Ed -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 7:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: DreamWeaver/PHP ability? There is no PHP support in Dreamweaver UltraDev. Gary Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPGMzjd/a5giN7qTnEQJQZQCffLQzy7ZQMQccQdcsjYv3Ha/L5m4AoJL3 JuORBJVQ7el//bdKgUWesnoH =rB4g -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: DreamWeaver/PHP ability?
That would be InterAKT Online (http://www.interakt.ro/), and the products you're talking about is the PHAkt (open source) and the ImpAKT (commercial version). Another product worth looking into is NeXTensio as well. I've heard good things, but I've never tried it yet. -- Laurie Landry [EMAIL PROTECTED] - email (604) 693-1120 - voicemail/fax Edward R. Bailey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually Ultradev does support PHP if you buy a php application server extension. A company in Romania (The name escapes me) makes the extension and I have heard it works very well. I am sure somebody can find the name of the company by searching for PHP Ultradev extension. Just my two cents, Ed -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 7:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: DreamWeaver/PHP ability? There is no PHP support in Dreamweaver UltraDev. Gary Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPGMzjd/a5giN7qTnEQJQZQCffLQzy7ZQMQccQdcsjYv3Ha/L5m4AoJL3 JuORBJVQ7el//bdKgUWesnoH =rB4g -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Checking for plus signs?
remember to escape the escape character so php passes it onto the reg.ex. function correctly, so: if(eregi(\\+,$variable)) -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:54 PM To: Jim Lucas [php]; Leif K-Brooks; [EMAIL PROTECTED] Subject: Re: [PHP] Checking for plus signs? Actually, all you need is this: if(eregi(\+,$variable)) You only need to escape the + sign once. Tyler - Original Message - From: Jim Lucas [php] [EMAIL PROTECTED] To: Leif K-Brooks [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 7:39 PM Subject: Re: [PHP] Checking for plus signs? try this if(eregi(/\+/,$variable)) Jim Lucas - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 5:40 PM Subject: [PHP] Checking for plus signs? I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTTP_POST_VARS problem
Hi. I'm a newbie at this and am having problems understanding how this works. I have a form with method=post. The server program does display REQUEST_STRING as I expect (e.g., choice=yes but displaying HTTP_POST_VARS[choice] is null). However, displaying HTTP_GET_VARS[choice] does display yes. Running phpinfo() displays that the REQUEST_METHOD = GET. Why is this GET and how do I get it set to POST? How do I get HTTP_POST_VARS to work since my form does have method=post? Here are some php.ini settings (I'm running PHP 4.1.1 with Apache 1.3.22 under Win98): variables_order = EGPCS register_globals = On register_argc_argv = On gpc_order = GPC Thanks... Eurico [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: array variable passing in session.
Hi Joe, The record has other information as well, names, phone, and etc. I like to store everything in an array and reference to it later. That way I don't have to do another mysql_xxx() later for the subsequent pages...that should save sometime, right? The problem has gone away once I switched back to good old Linux. The same code works now for both Linux and Windows...I still don't know why it didn't work in the first place...probably the 'reliable' Windows has something to do with it. :-) Thanks, Peter Joe Van Meer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Peter, are you limited to using arrays? If not, try msql_fetch_row() since you are only looking for the one record, ie: the corresponding username and password record for the username and password that was passed. Hope this helps, Joe :) ?php session_start(); include(config.php); mysql_connect($host_name, $user_name, $passwd) or die(Unable to connect to $hostname.); // select database on MySQL server mysql_select_db($db_name) or die(Unable to select databse.); // formulate the query $sql_statement = SELECT user_id, password FROM $table_name WHERE user_id = '$user_id' AND password = '$password'; $result = mysql_query($sql_statement) or die(Unable to execute query.); //if there is a corresponding record if(mysql_fetch_row($result)) { $usid = mysql_result($result,0); $pswd = mysql_result($result, 1); //create session variables session_register(password); $password = $pswd; session_register(user_id); $username = $usid; //echo a friendly message or use header() function to redirect the user to the appropriate page echo Succesful login!; } else { //the user is not a registered member so redirect them to a sign up page or another page to try and login again header(Location: signup.php); } ? Peter Ruan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I am running into a problem that I can't figure out the solution to. So I'm hoping that someone can give me some pointers here. I have two files (see below): verify.php and edit.php The job of verify.php is basically to verify that a user is in the database before allowing him/her to edit the information. The information retrieved is saved to arrary varaiable $row. I do a session_register() to $row and that information should be passed to subsequent pages that has session_start(), right? However, when I tried to print out the information again in edit.php, it doesn't seem to register it in. At first I thought it was the array problem, so I put the array variable $dummy to test it out and that can be reigstered and retrieved correctly. What am I doing wrong??? Also, how do I redirect to a page automatically once the user is verfied (right now I have to ask the user to click on a link to redirect). Thanks in advance, Peter /*** verify.php / ?php session_start(); include(config.php); mysql_connect($host_name, $user_name, $passwd) or die(Unable to connect to $hostname.); // select database on MySQL server mysql_select_db($db_name) or die(Unable to select databse.); // formulate the query $sql_statement = SELECT * FROM $table_name WHERE user_id = '$user_id' AND password = '$password'; $result = mysql_query($sql_statement) or die(Unable to execute query.); $num_of_rows = mysql_num_rows($result); /* XXX: test array variable...take out later */ $dummy = array(one, two, three); session_register(dummy); if (!$num_of_rows) { echo h3User ID and password missmatch, try again!/h3; } else { while ($row = mysql_fetch_array($result)) { session_register(row); // register information retrieved from MySQL } printf(Successfully Logged In! a href=\edit.php\Click Here/a); echo br; } ? /* edit.php */ ?php session_start(); foreach ($dummy as $val) { echo $val . br; } foreach ($row as $data) { echo $data . br; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTTP_POST_VARS problem
Please ignore my question - I just figured it out. I had the method=post in the input type=submit tag rather than in the form tag. It works! However, if one has an HTML select/option menu scrolling list with multiple selections, how does one get the number of values for the same name with HTTP_POST_VARS? Or how does one scroll through the list of choices passed? Thanks, Eurico [EMAIL PROTECTED] wrote: Hi. I'm a newbie at this and am having problems understanding how this works. I have a form with method=post. The server program does display REQUEST_STRING as I expect (e.g., choice=yes but displaying HTTP_POST_VARS[choice] is null). However, displaying HTTP_GET_VARS[choice] does display yes. Running phpinfo() displays that the REQUEST_METHOD = GET. Why is this GET and how do I get it set to POST? How do I get HTTP_POST_VARS to work since my form does have method=post? Here are some php.ini settings (I'm running PHP 4.1.1 with Apache 1.3.22 under Win98): variables_order = EGPCS register_globals = On register_argc_argv = On gpc_order = GPC Thanks... Eurico [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] http://
I'm looking for a function that will find occurences of urls in any given string and do this: http://www.nowhere.com/ becomes a href=http://www.nowhere.com/;http://www.nowhere.com//a Could, should also look for mailto:[EMAIL PROTECTED] telnet:blah.blah or even news:blaj.blah Does such a thing exist? -- John Taylor-Johnston - Collège de Sherbrooke: http://www.collegesherbrooke.qc.ca/languesmodernes/ Université de Sherbrooke: http://compcanlit.ca/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Execing problems
Hi all, I have a seperate perl script that I need to start running from a php script. The script does a fork into the backgroup and exits. when i do an exec(funky script stuff here); The page just hangs trying to load again, apparently after I call the exec. I've also tried exec(script stuff ) but it does the same thing. Any ideas anybody ? Jason -- Hofstadter's Law : It always takes longer than you expect, even when you take Hofstadter's Law into account. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] http://
try this: $str = $s24; // this is the string you want to look at... $dst = 'a href=\\1\\1/a\\2'; foreach (array(http://;, mailto:;, telnet:, news:;) as $src) { $str = ereg_replace((.$src.[^ ]*)( *), $dst, $str); } echo $str; -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: [PHP] http:// I'm looking for a function that will find occurences of urls in any given string and do this: http://www.nowhere.com/ becomes a href=http://www.nowhere.com/;http://www.nowhere.com//a Could, should also look for mailto:[EMAIL PROTECTED] telnet:blah.blah or even news:blaj.blah Does such a thing exist? -- John Taylor-Johnston - Collège de Sherbrooke: http://www.collegesherbrooke.qc.ca/languesmodernes/ Université de Sherbrooke: http://compcanlit.ca/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Execing problems
does using system() work? what about back-ticks? - `funky script stuff here`; -Original Message- From: Jason Rennie [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Execing problems Hi all, I have a seperate perl script that I need to start running from a php script. The script does a fork into the backgroup and exits. when i do an exec(funky script stuff here); The page just hangs trying to load again, apparently after I call the exec. I've also tried exec(script stuff ) but it does the same thing. Any ideas anybody ? Jason -- Hofstadter's Law : It always takes longer than you expect, even when you take Hofstadter's Law into account. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Execing problems
does using system() work? what about back-ticks? - `funky script stuff here`; I'll give it a go, i hadn't tried that Although I thought system would return the output. I was using exec because it didn't (oops I think I forgot to mention that.) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: DreamWeaver/PHP ability?
I did try an extension with it once with terrible results. I do not know if it is the same one. The extension would take all the includes and make them the same name, not every time but often enough to scrap it. I don't use Dreamweaver much anyway, Homesite with server mapping enabled works ust fine. Gary Edward R. Bailey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually Ultradev does support PHP if you buy a php application server extension. A company in Romania (The name escapes me) makes the extension and I have heard it works very well. I am sure somebody can find the name of the company by searching for PHP Ultradev extension. Just my two cents, Ed -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 7:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: DreamWeaver/PHP ability? There is no PHP support in Dreamweaver UltraDev. Gary Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPGMzjd/a5giN7qTnEQJQZQCffLQzy7ZQMQccQdcsjYv3Ha/L5m4AoJL3 JuORBJVQ7el//bdKgUWesnoH =rB4g -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] http://
Hi John: jtjohnston wrote: I'm looking for a function that will find occurences of urls in any given string and do this: http://www.nowhere.com/ becomes a href=http://www.nowhere.com/;http://www.nowhere.com//a ?php $Val = body of text you want to process...; $Val = eregi_replace((http://|https://|ftp://|gopher://|news:|mailto:)([[:alnum:]/!#$%'()*+,.:;=?@_~-]+)([[:alnum:]/!#$%'()*+:;=?@_~-]), 'a href=\\1\\2\\3\\1\\2\\3/a', $Val); ? You'll have to undo the line wrapping before you use that. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232v: 718-854-0335f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: DreamWeaver/PHP ability?
Would this happen to be the one? http://www.interakt.ro If it is, then the extension can be found here: http://www.interakt.ro/products/PHAkt/index.php This place also has several othe extensions: http://www.udzone.com/index.asp?TypeId=3CatId=68 Found these links using Google. God bless Google! =) Original Message- Gary [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I did try an extension with it once with terrible results. I do not know if it is the same one. The extension would take all the includes and make them the same name, not every time but often enough to scrap it. I don't use Dreamweaver much anyway, Homesite with server mapping enabled works ust fine. Gary Edward R. Bailey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually Ultradev does support PHP if you buy a php application server extension. A company in Romania (The name escapes me) makes the extension and I have heard it works very well. I am sure somebody can find the name of the company by searching for PHP Ultradev extension. Just my two cents, Ed -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 7:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: DreamWeaver/PHP ability? There is no PHP support in Dreamweaver UltraDev. Gary Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPGMzjd/a5giN7qTnEQJQZQCffLQzy7ZQMQccQdcsjYv3Ha/L5m4AoJL3 JuORBJVQ7el//bdKgUWesnoH =rB4g -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using functions before they're defined
On Friday 08 February 2002 06:17, Martin Towell wrote: I've found that you can specify a function anywhere in the page and call it anywhere in the page so: ? foobar(); function foobar() { echo in foobarbr\n; } foobar(); ? would work and display the text twice, without errors/warnings I haven't looked at the php's source code, but maybe it's a two pass parser (??) first it gets all the functions then it executes the code Yes, it's all explained in the manual :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Charlie was a chemist, But Charlie is no more. For what he thought was H2O, Was H2SO4. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to keep form inputs from being cleared
On Friday 08 February 2002 04:33, CompMan86 wrote: I posted about this a few days ago. I received several responses but none of them were very helpful (thanks for the effort though). I finally figured out what it was by process of elimination. At the top of my registration form, I put session_start() just like I did for all my other scripts. Well it turns out that by doing this, for some reason, it clears the form. I have a hunch that the cookie request by session_start() has something to do with it. Well, the only reason someone would be at the registration form would be if he/she was not a member, therefore the session ID would be pointless. This is the major flaw of PHP's built in sessions imho: If a user disables cookies, the session functions assign the session ID to the constant SID. However, if the SID is not passed on religiously, a new session will be made. In an instance like this where session_start() cannot be used, you can't pass on the SID. It seems like I'm just going to resort to requiring that my users enable session cookies. The hastle of making the code to use both SID and/or cookies just doesn't seem worth it. If anyone has any ideas of a resolution to this problem, feel free to post here or email me. If you have full access to your server you can recompile php with the --enable-trans-sid option. Once this is done the SID will be *automagically* be propagated via the URL or hidden form elements. An extremely useful feature if you need sessions and cannot rely on the user having enabled cookies. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Type louder, please. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] determining script url
Hi all, How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME works but if a domain isn't paired with the server, I could get some useless information (right?). Thanks, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] determining script url
I think what'll you'll need to do is look through the phpinfo() output and piece together all the parts, eg $HTTP_HOST (or should that be $_HTTP[HOST] ?), $PHP_SELF, etc. If anyone knows of a better way, I'd like to know too Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:37 PM To: [EMAIL PROTECTED] Subject: [PHP] determining script url Hi all, How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME works but if a domain isn't paired with the server, I could get some useless information (right?). Thanks, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] call stack
I know this comes up again, and again, and I'm bringing it up again now :) There's been requests for a function that displays the current heirachy of calls I was just thinking about this - php must maintain a stack so that it knows what function to return to when another function exits, why can't something display this stack - or doesn't this stack contain that type of information? Is this the right mailing list - maybe I should have sent it to php-dev ??? Martin
[PHP] keyword search help
hello sir, we are creating a cdrom database in postgresql wherein we have cd rom titlename,author,year etc and keywords as fields. we will store a set of keywords for each record. i want to know how to enter those keywords in to database (whether to have comma between keywords or plain) and code to search for keywords. i.e. if i enter a keyword then it should search for that keyword in keyword field and display result. keywords are strings an there will also be some combinational search. i believe u will see to this and do the needful. thanking you with rgds Arun Get free e-mail and a permanent address at http://www.amexmail.com/?A=1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] keyword search help
Not really a php question, is it? But what I would do is have two tables, a cdrom table and a keyword table. Each cd in the cd table would have a cd_id, and then the keyword table could have two attributes, cd_id (foriegn key from cdrom table) and keyword. Make the primary key for the keyword table be both of the fields, and then you'll be able to have as many keywords for each cd as you like. Next time maybe ask on a database list though... Jeff At 02:28 AM 2/8/2002 +, Arun K.V wrote: hello sir, we are creating a cdrom database in postgresql wherein we have cd rom titlename,author,year etc and keywords as fields. we will store a set of keywords for each record. i want to know how to enter those keywords in to database (whether to have comma between keywords or plain) and code to search for keywords. i.e. if i enter a keyword then it should search for that keyword in keyword field and display result. keywords are strings an there will also be some combinational search. i believe u will see to this and do the needful. thanking you with rgds Arun Get free e-mail and a permanent address at http://www.amexmail.com/?A=1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: DreamWeaver/PHP ability?
I use DreamweaverUltraDev with the Interackt extension for several months. It was interesting for me at the beginning, to see how a functionnality could be coded in PHP (prev next, dynamic drop list, etc...), and because other people in my company, working on static pages, use Dreamweaver. But now, I also use UltraEdit and HTMLKit (php code is more readable). Now, I use Ultradev to see the html design of a php page, which can't be done with these others editors. Regards, Philippe Dr. Shim [EMAIL PROTECTED] a écrit dans le message news: [EMAIL PROTECTED] Would this happen to be the one? http://www.interakt.ro If it is, then the extension can be found here: http://www.interakt.ro/products/PHAkt/index.php This place also has several othe extensions: http://www.udzone.com/index.asp?TypeId=3CatId=68 Found these links using Google. God bless Google! =) Original Message- Gary [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I did try an extension with it once with terrible results. I do not know if it is the same one. The extension would take all the includes and make them the same name, not every time but often enough to scrap it. I don't use Dreamweaver much anyway, Homesite with server mapping enabled works ust fine. Gary Edward R. Bailey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually Ultradev does support PHP if you buy a php application server extension. A company in Romania (The name escapes me) makes the extension and I have heard it works very well. I am sure somebody can find the name of the company by searching for PHP Ultradev extension. Just my two cents, Ed -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 7:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: DreamWeaver/PHP ability? There is no PHP support in Dreamweaver UltraDev. Gary Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPGMzjd/a5giN7qTnEQJQZQCffLQzy7ZQMQccQdcsjYv3Ha/L5m4AoJL3 JuORBJVQ7el//bdKgUWesnoH =rB4g -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php