[PHP] Best way to get mysql table metadata

2004-05-06 Thread daniel
Hi there, I am trying to upgrade my db class, so I can tell if what table type of the table being queried is. More specifically i need to work out if the table is an innodb transaction table, if so I would like to start the transaction and commit and rollback when needed. Let me know. -- PHP Gen

[PHP] setting php_admin_value 2

2004-05-06 Thread Tim Traver
David and all, I apologize for not posting properly. I did not realize that headers were keeping track of the threads of this mailing list. I will make sure I don't do it again. I am actually simply using the Host header to make a dynamic path to its data location in my apache module. Unfortu

Re: [PHP] Socket

2004-05-06 Thread Petr U.
On Fri, 7 May 2004 00:59:03 -0300 (ART) "Juan Pablo Herrera" <[EMAIL PROTECTED]> wrote: > Please, i need a tutorial about socket. I read php.net but the examples is > lost. I think you should check it again ;) http://www.php.net/manual/en/ref.sockets.php -- Petr U. -- PHP General Mailing Li

[PHP] PHP Research

2004-05-06 Thread Trevor Nesbit
Hi I am in the process of conducting a research project that is looking at what PHP skills we should be teaching to our students. If you would be prepared to complete this questionnaire, please reply to this email and I will send you the questionnaire Kind regards Trevor Nesbit Trevor Nes

[PHP] Socket

2004-05-06 Thread Juan Pablo Herrera
Hi! Please, i need a tutorial about socket. I read php.net but the examples is lost. Regards, Juan Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [Newbie Guide] For the benefit of new members

2004-05-06 Thread Ma Siva Kumar
=== This message is for the benefit of new subscribers and those new to PHP.  Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en firs

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Paul Chvostek
On Thu, May 06, 2004 at 07:11:55PM +, Curt Zirzow wrote: > > > > $text="one ", "",$text); > > Because your missing a - > $text="one two\n"; /me applies mallet to head % php -r '$text="one two\n"; print ereg_replace("", "",$text);' one two whee, it works! :) -- Paul Chvostek

Re: [PHP] Returning an object

2004-05-06 Thread John W. Holmes
Aidan Lister wrote: Please don't reply if you really, really don't know what you are talking about. Okay, I won't reply. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List

Re: [PHP] Looking for Advanced PHP Developers

2004-05-06 Thread Curt Zirzow
* Thus wrote Stephen Allen ([EMAIL PROTECTED]): > On Thu, May 06, 2004 at 01:15:17AM +0200 or thereabouts, Richard Harb wrote: > > ... and onsite would be where ? > > Amman, Jordan I think. I wouldn't want to be a Caucasian over there working, at this > point in time. I'd be more weary that the O

Re: [PHP] Returning an object

2004-05-06 Thread Curt Zirzow
* Thus wrote Aidan Lister ([EMAIL PROTECTED]): > How _should_ this be done? In terms of "best practice". > > function foobar () > { > return new SomeObject; > } > ?> > > Or: > > function barfoo () > { > $tempvar = new SomeObject; > return $tempvar > } > ?> I'm not exactly sure wha

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread John W. Holmes
Justin French wrote: $text = preg_replace('//su','',$text); Did not work (was too greedy, matched multiple comments) Just for the record, it should be a capital 'U' for ungreedy. Lowercase 'u' is something else. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E

Re: [PHP] Returning an object

2004-05-06 Thread Petr U.
On Fri, 7 May 2004 11:35:24 +1000 "Aidan Lister" <[EMAIL PROTECTED]> wrote: > How _should_ this be done? In terms of "best practice". I'd choose this way: function &foo() { return new Object; } -- Petr U. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Justin French
Thanks to everyone who's replied... appears to be quite a tricky one!! $text = preg_replace('//su','',$text); Did not work (was too greedy, matched multiple comments) $text = preg_replace('//','',$text); Did not work (needed multiple lines) $text = preg_replace('//su','',$text);

[PHP] Returning an object

2004-05-06 Thread Aidan Lister
How _should_ this be done? In terms of "best practice". Or: Please don't reply if you really, really don't know what you are talking about. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setting php_admin_value

2004-05-06 Thread David T-G
Tim -- You have started a new thread by taking an existing message and replying to it while merely changing the Subject: line. That is bad, because it breaks threading. When you reply to a message, your mail client generates a "References:" header that tells everyone to which posting(s) your pos

[PHP] setting php_admin_value

2004-05-06 Thread Tim Traver
Hi all, ok, I am writing an apache module that dynamically figures out virtual host variables for data locations for my users. I need to be able to set the php_admin_values for each request so that those values get passed through to php and take effect for each request. Normally, this would be

RE: [PHP] Class Help Extended

2004-05-06 Thread PHP Email List
Ummm, Yeah that was a "joke". Didn't matter that the syntax was wrong. Thanks for discecting that though for me! :) Had I written it and tested it my parse error would have showed me what I did wrong. Wow you guys play serious! LOL Anywho, thanks again... Wolf >:-P > -Original Message

Re: [PHP] I need to hire someone to secure script

2004-05-06 Thread David T-G
Doug -- ...and then doug_hastings said... % % Hello, % I wrote a script for my site which has been compromised repeatedly. I would % like to hire someone to fix it for me. The script is about 120 lines, ... % Thanks, I would be more than happy to be of service if you are still in need. Please fe

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread David T-G
Michael, et al -- ...and then Michael Sims said... % % David T-G wrote: % > % > Am I missing something painfully obvious? % % www.perldoc.com appears to be unavailable at the moment, but if you have "perldoc" % installed, here's an excerpt from the "perlre" man page: I do, but I looked in the p

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread David T-G
Petr, et al -- ...and then Petr U. said... % % On Thu, 6 May 2004 11:57:45 -0400 % David T-G <[EMAIL PROTECTED]> wrote: % % > Am I missing something painfully obvious? % % >From http://www.php.net/manual/en/pcre.pattern.syntax.php % % However, if a quantifier is followed by a question mark,

Re: [PHP] gifs, icons etc

2004-05-06 Thread David T-G
Brent, et al -- ...and then Brent Clark said... % % Hi all Hi! % % I would like to know if any body has a url for free some icons and, or small % pics that can be used in a site \ page % development. They're not entirely free, but they're available for personal use as well as in your own dev

Re: [PHP] Header() and POST data

2004-05-06 Thread Daniel Clark
Yes I agree, SESSION variables would be a pretty good way to pass info to the next page. > Daniel - > > What is the best way to "go to another page"? > > header("location: . $new_page); > > Todd > > Daniel Clark wrote: > >> No I don't think so. >> >> >>>I need to go to another page and I use

Re: [PHP] Header() and POST data

2004-05-06 Thread Curt Zirzow
* Thus wrote Todd Cary ([EMAIL PROTECTED]): > I need to go to another page and I use the > > header("location: " . $the_url_to_the_page); > > Is it possible to use this method with POST so that the info does not > show in the URL? No. You can use session's to pass data without the user knowing

[PHP] I need to hire someone to secure script

2004-05-06 Thread doug_hastings
Hello, I wrote a script for my site which has been compromised repeatedly. I would like to hire someone to fix it for me. The script is about 120 lines, nothing fancy. It needs at least an escapeshellcmd() and I am open to suggestions for security fixes. I lack advanced understanding of PHP and do

Re: [PHP] Header() and POST data

2004-05-06 Thread Todd Cary
Daniel - What is the best way to "go to another page"? header("location: . $new_page); Todd Daniel Clark wrote: No I don't think so. I need to go to another page and I use the header("location: " . $the_url_to_the_page); Is it possible to use this method with POST so that the info do

[PHP] include from another URL

2004-05-06 Thread Nik
Hi there, I'm new to these groups so forgive me if I'm asking at the wrong place (tell me where then :) Ok, I'm not PHP guru but I need to create a simple script that would do this: Include a content from another URL into the current output. I have done something like this: -- code start ht

Re: [PHP] Header() and POST data

2004-05-06 Thread Daniel Clark
You could create a new with hidden variable. And have an automatic submit onload, going to the next location. > I need to go to another page and I use the > > header("location: " . $the_url_to_the_page); > > Is it possible to use this method with POST so that the info does not > show in the URL?

Re: [PHP] Header() and POST data

2004-05-06 Thread Daniel Clark
No I don't think so. > I need to go to another page and I use the > > header("location: " . $the_url_to_the_page); > > Is it possible to use this method with POST so that the info does not > show in the URL? > > Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] Header() and POST data

2004-05-06 Thread Todd Cary
I need to go to another page and I use the header("location: " . $the_url_to_the_page); Is it possible to use this method with POST so that the info does not show in the URL? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login page

2004-05-06 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): > [snip] > # login.php?? > [/snip] > > > If that is in fact line 1 then the # sign is the problem. Use either // > or /* */ style comments. btw, # is a valid comment. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP G

Re: [PHP] Include from another URL?

2004-05-06 Thread Curt Zirzow
* Thus wrote Nik ([EMAIL PROTECTED]): > Include a content from another URL into the current output. I have done > something like > this: > > -- code start > include 'http://myotherurl.com:8080'; > ?> > -- code end You want to use readfile() instead. http://php.net/readfile Curt -- "

Re: [PHP] Include from another URL?

2004-05-06 Thread Nik
Great! Worked as expected. Thanks. Now it is time to ask how do I handle form (HTTP POST request) data into the URL. Can the same fopen() work as well? Thanks, Nik "Chris Boget" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Include a content from another URL into the current out

[PHP] Re: gifs, icons etc

2004-05-06 Thread Kim Steinhaug
At sourceforge you will find several icon paks available under different licenses. However if your software is proprietary you will have trouble using any of theese (Atleast the ones worth using). I myself have been searching the net for such but ended up doing the work myself. Atleast thats how m

[PHP] Re: Include from another URL?

2004-05-06 Thread Kim Steinhaug
You could always use this : $text = ""; $fd=fopen($url,"r"); while ($line=fgets($fd,1000)) { $text.=$line; } fclose ($fd); echo $text; -- -- Kim Steinhaug -- There are 10 types of people when it comes to binary numbers: tho

[PHP] Re: Calendar math .... how to count in week days....?

2004-05-06 Thread Torsten Roehr
"Anthony" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've run into a bit of a problem, that I know has been dealt with before, > but I don't know how to deal with it. Very simple, I have an application > that needs to do calendar math and do it specifically on business days. I

Re: [PHP] Include from another URL?

2004-05-06 Thread Chris Boget
> Include a content from another URL into the current output. I have done > something like this: Look into the fopen() function. I also believe that the file() function can also take a URL, but I'm not sure. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Calendar math .... how to count in week days....?

2004-05-06 Thread Anthony
I've run into a bit of a problem, that I know has been dealt with before, but I don't know how to deal with it. Very simple, I have an application that needs to do calendar math and do it specifically on business days. I need to be able to add and subtract a number of days to only Monday though F

[PHP] Include from another URL?

2004-05-06 Thread Nik
Hi there, I'm new to these groups so forgive me if I'm asking at the wrong place (tell me where then :) Ok, I'm not PHP guru but I need to create a simple script that would do this: Include a content from another URL into the current output. I have done something like this: -- code start htt

Re: [PHP] problem with a while loop

2004-05-06 Thread John W. Holmes
From: "John Nichel" <[EMAIL PROTECTED]> > > Same thing, really. It's a little more efficient than keeping a count, but > > not the cause of any of the problems. :) > > > > ---John Holmes... > > Chris! John is picking on me! I thought we agreed that Chris is the one that cannot be trusted

Re: [PHP] problem with a while loop

2004-05-06 Thread John Nichel
John W. Holmes wrote: Same thing, really. It's a little more efficient than keeping a count, but not the cause of any of the problems. :) ---John Holmes... Chris! John is picking on me! ;) -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://ww

Re: [PHP] problem with a while loop

2004-05-06 Thread John W. Holmes
From: "John Nichel" <[EMAIL PROTECTED]> > > $i =0; > > > > while ($i < $num_results) { > > > > $row = mysql_fetch_array($result); > > > > $producer = $row["PRODUCE"]; > > > Try changing the above from > > while ($i < $num_results) { > > $row = mysql_fetch_arr

Re: [PHP] problem with a while loop

2004-05-06 Thread John W. Holmes
From: "Jessica Mays" <[EMAIL PROTECTED]> > I am new to php (and mySQL) and I am working on a php page that links > up to a mySQL database. My current code works up to a point, BUT what > happens is that I try to have a while loop and check a variable with an > inner while loop but it only catches

Re: [PHP] Class Help Extended

2004-05-06 Thread Curt Zirzow
* Thus wrote Rob Adams ([EMAIL PROTECTED]): > > "Php Email List" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > $smiley = ":)"; > > include_once(evil_laugh.php); > > echo $laugh $smiley; > > //Echo'd: Muuuhahahahahah :) > > You're syntax is a little off here. You need to use:

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Curt Zirzow
* Thus wrote Paul Chvostek ([EMAIL PROTECTED]): > On Thu, May 06, 2004 at 11:26:34AM -0400, Rob Ellis wrote: > > > > > > $text = ereg_replace("","",$text); > > > > you can make the .* less greedy... > > > > $text = preg_replace('//', '', $text); > > Interestingly, from a shell: > > $

Re: [PHP] problem with a while loop

2004-05-06 Thread John Nichel
Jessica Mays wrote: From: [EMAIL PROTECTED] Subject: problem with a while loop Date: May 6, 2004 11:25:28 AM EDT To: [EMAIL PROTECTED] Hey everybody! I am new to php (and mySQL) and I am working on a php page that links up to a mySQL database. My current code w

[PHP] Php and curl, url not shown in an https request

2004-05-06 Thread Lizet Peña de Sola
Hi all, I'm trying to use the curl library to request a page through POST. The page is requested fine, the parameters are passed but the url that is shown in the browser is the url of the previous page, the page that is making the request and not the page that is shown in the redirection. ie:

[PHP] problem with a while loop

2004-05-06 Thread Jessica Mays
From: [EMAIL PROTECTED] Subject:problem with a while loop Date: May 6, 2004 11:25:28 AM EDT To: [EMAIL PROTECTED] Hey everybody! I am new to php (and mySQL) and I am working on a php page that links up to a mySQL database. My current code works

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Rob Ellis
On Thu, May 06, 2004 at 12:47:10PM -0400, Paul Chvostek wrote: > On Thu, May 06, 2004 at 11:26:34AM -0400, Rob Ellis wrote: > > > > > > $text = ereg_replace("","",$text); > > > > you can make the .* less greedy... > > > > $text = preg_replace('//', '', $text); > > Interesting to know.

Re: [PHP] html form elements as php arrays

2004-05-06 Thread John Nichel
Matthew Oatham wrote: Hi, I am retrieving data from a database and displaying results on a html so the user can edit them, I am sending the html form back to the server as an array, i.e on my html for I might have 10 name fields so in the html code all name fields are named name[] then I can iterat

Re: [PHP] Class Help Extended

2004-05-06 Thread Rob Adams
"Php Email List" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $smiley = ":)"; > include_once(evil_laugh.php); > echo $laugh $smiley; > //Echo'd: Muuuhahahahahah :) You're syntax is a little off here. You need to use: echo $laugh . $smiley; or echo "$laugh $smiley"; -- Rob -

[PHP] html form elements as php arrays

2004-05-06 Thread Matthew Oatham
Hi, I am retrieving data from a database and displaying results on a html so the user can edit them, I am sending the html form back to the server as an array, i.e on my html for I might have 10 name fields so in the html code all name fields are named name[] then I can iterate through the arra

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Paul Chvostek
On Thu, May 06, 2004 at 11:26:34AM -0400, Rob Ellis wrote: > > > > $text = ereg_replace("","",$text); > > you can make the .* less greedy... > > $text = preg_replace('//', '', $text); Interesting to know. My preg-foo is limited; I came at PHP from a background of awk and sed, so when I

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Petr U.
On Thu, 6 May 2004 11:57:45 -0400 David T-G <[EMAIL PROTECTED]> wrote: > > Am I missing something painfully obvious? >From http://www.php.net/manual/en/pcre.pattern.syntax.php However, if a quantifier is followed by a question mark, then it ceases to be greedy, and instead matches the minimu

RE: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Michael Sims
David T-G wrote: > % you can make the .* less greedy... > % > % $text = preg_replace('//', '', $text); > > How does that make it ungreedy? The only thing I see relating > question marks and greediness is that a question mark makes part of a > regexp with a /U modifier (otherwise not greedy) back

Re: [PHP] Sending Mail with PHP

2004-05-06 Thread Jordi Canals
Justin @ Dreaming in TO wrote: However, the page it redirects to is blank, except for the background image that is referenced in the CSS stylesheet. Feel free to test it as many times as you would like. mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread David T-G
Rob, et al -- ...and then Rob Ellis said... % ... % you can make the .* less greedy... % % $text = preg_replace('//', '', $text); How does that make it ungreedy? The only thing I see relating question marks and greediness is that a question mark makes part of a regexp with a /U modifier (oth

Re: [PHP] Sending Mail with PHP

2004-05-06 Thread John W. Holmes
From: "Justin @ Dreaming in TO" <[EMAIL PROTECTED]> > If you go to http://www.functionjunkie.org/contactform/contactform.php > and fill out the form, it sends the email ok, but its supposed to > redirect to a preset page, which it does. > > However, the page it redirects to is blank, except for the

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread John W. Holmes
From: "Rob Ellis" <[EMAIL PROTECTED]> > you can make the .* less greedy... > > $text = preg_replace('//', '', $text); You still need an 's' modifier if you want to match multi-line comments. The dot character won't match newlines unless you use an 's' modifier. ---John Holmes... -- PHP Genera

[PHP] Sending Mail with PHP

2004-05-06 Thread Justin @ Dreaming in TO
Hey Everyone, I've got a problem with a mail program I'm using. If you go to http://www.functionjunkie.org/contactform/contactform.php and fill out the form, it sends the email ok, but its supposed to redirect to a preset page, which it does. However, the page it redirects to is blank, except fo

Re: [PHP] converting movies

2004-05-06 Thread David T-G
Arthur -- You have started a new thread by taking an existing message and replying to it while merely changing the Subject: line. That is bad, because it breaks threading. When you reply to a message, your mail client generates a "References:" header that tells everyone to which posting(s) your

Re: [PHP] Re: strip comments from HTML?

2004-05-06 Thread Rob Ellis
On Thu, May 06, 2004 at 11:10:17AM -0400, Paul Chvostek wrote: > On Thu, May 06, 2004 at 03:02:16PM +1000, Justin French wrote: > > > > This isn't working: > > $text = preg_replace('//','',$text); > > > > Can someone advise what characters I need to escape, or whatever to get > > it going? > >

[PHP] Re: strip comments from HTML?

2004-05-06 Thread Paul Chvostek
On Thu, May 06, 2004 at 03:02:16PM +1000, Justin French wrote: > > This isn't working: > $text = preg_replace('//','',$text); > > Can someone advise what characters I need to escape, or whatever to get > it going? It's not a matter of escaping. You're matching too much with the ".*". If you'r

[PHP] converting movies

2004-05-06 Thread Arthur Radulescu
Hello! Does anyone know how I can convert movies from a format to another or how I could get a screenshot of the movie (the first scene) using PHP or at least something running on a linux system. Thanks, Arthur -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Looking for Advanced PHP Developers

2004-05-06 Thread John W. Holmes
From: "Ammar Ibrahim" <[EMAIL PROTECTED]> > I don't understand what you mean. Please take any further discussion off-list. I can handle off topic posts, but the "safety of caucasians in Jordan" is too much of a stretch, I think. :) ---John Holmes... -- PHP General Mailing List (http://www.php.

Re: [PHP] Looking for Advanced PHP Developers

2004-05-06 Thread Stephen Allen
On Thu, May 06, 2004 at 05:14:37PM +0200 or thereabouts, Ammar Ibrahim wrote: > Stephen Allen wrote: > >On Thu, May 06, 2004 at 01:15:17AM +0200 or thereabouts, Richard Harb > >wrote: > > > >>... and onsite would be where ? > > > > > >Amman, Jordan I think. I wouldn't want to be a Caucasian over t

Re: [PHP] Looking for Advanced PHP Developers

2004-05-06 Thread Ammar Ibrahim
Stephen Allen wrote: On Thu, May 06, 2004 at 01:15:17AM +0200 or thereabouts, Richard Harb wrote: ... and onsite would be where ? Amman, Jordan I think. I wouldn't want to be a Caucasian over there working, at this point in time. I don't understand what you mean. Jordan is the one of the safest c

[PHP] How to compile PHP so to allow XML and XSLT ?

2004-05-06 Thread gayard
Hi all. My PHP is compiled with these options: ./configure --with-mysql=/usr --with-gettext --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr/local/php5 --enable-cli --with-xml --enable-xslt --with-xslt-sablot It compiled just fine ! Not a single complaint about any library ! I have

Re: [PHP] Login page

2004-05-06 Thread Petr U.
On Thu, 6 May 2004 03:42:48 -0700 "Erik Gjertsen" <[EMAIL PROTECTED]> wrote: > I have made a login page but I got an error on line 1. Where did you defined $dbc? Nowhere. >From "mysql_select_db($database_innlogging, $innlogging);" I guessing, that you shuld use: global $innlogging; ...

Re: [PHP] HTTP_REFERER ... ?

2004-05-06 Thread John Nichel
Curt Zirzow wrote: I guess soon firewall's are going to be pouring you cups of coffee when it gets empty. Curt I hope they offer a Mt. Dew patch. ;) -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

RE: [PHP] Re: Login page

2004-05-06 Thread Jay Blanchard
[snip] Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /home2/erik/gjertsen-www/Skole22/Loggin/login.php on line 28 > 1 return mysql_real_escape_string($data, $dbc); [/snip] Please post only the relevant code. mysql_real_escape_string is expecting

RE: [PHP] Re: Login page

2004-05-06 Thread Angelo Zanetti
did you try comment out # login.php like this: //login.php or what would you use login.php for? angelo -Original Message- From: Erik Gjertsen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Login page I forgot the error messages:

php-general Digest 6 May 2004 13:06:59 -0000 Issue 2747

2004-05-06 Thread php-general-digest-help
php-general Digest 6 May 2004 13:06:59 - Issue 2747 Topics (messages 185491 through 185521): Class Help 185491 by: PHP Email List 185494 by: Curt Zirzow Re: remove soap header 185492 by: Chhai T Re: HTTP_REFERER ... ? 185493 by: David Robley 185509 b

RE: [PHP] Way OT MySql Update

2004-05-06 Thread Angelo Zanetti
tried the mysql manual??? its got the date_Add function DATE_ADD(date,INTERVAL expr type) from manual: mysql> SELECT DATE_ADD("1999-01-01", INTERVAL 1 DAY); -> 1999-01-02 mysql> SELECT DATE_ADD("1999-01-01", INTERVAL 1 HOUR); -> 1999-01-01 01:00:00 If you use really incorrect date

[PHP] Re: Login page

2004-05-06 Thread Erik Gjertsen
I forgot the error messages: Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /home2/erik/gjertsen-www/Skole22/Loggin/login.php on line 28 Warning: mysql_real_escape_string() expects parameter 2 to be resource, null given in /home2/erik/gjertsen-www/Skole22/Log

Re: [PHP] Way OT MySql Update

2004-05-06 Thread John W. Holmes
From: "Dave Carrera" <[EMAIL PROTECTED]> > I have a date column and have added a datenew column and want to do a table > wide update to make datenew 1 year more that date. UPDATE yourtable SET datenew = dateorig + INTERVAL 1 YEAR; Although... if "datenew" is always one year more than "dateorig",

Re: [PHP] strip comments from HTML?

2004-05-06 Thread John W. Holmes
From: "Justin French" <[EMAIL PROTECTED]> > This isn't working: > $text = preg_replace('//','',$text); > > Can someone advise what characters I need to escape, or whatever to get > it going? $text = preg_replace('//su','',$text); The 's' modifier will allow the expression to pick up multi-line c

[PHP] gifs, icons etc

2004-05-06 Thread Brent Clark
Hi all I would like to know if any body has a url for free some icons and, or small pics that can be used in a site \ page development. I was looking at a project call dotproject. And I noticed a lot of kewl small pics. I dont want to infringe on any licenses etc Kind Regards Brent Clark -- P

Re: [PHP] strip comments from HTML?

2004-05-06 Thread Tom Rogers
Hi, Thursday, May 6, 2004, 3:02:16 PM, you wrote: JF> Hi, JF> This isn't working: JF> $text = preg_replace('//','',$text); JF> Can someone advise what characters I need to escape, or whatever to get JF> it going? JF> TIA JF> --- JF> Justin French JF> http://indent.com.au you may need '//s' i

[PHP] Way OT MySql Update

2004-05-06 Thread Dave Carrera
Hi List, Sorry for this being way off topic but I need some help with a MySql sql update. I have a date column and have added a datenew column and want to do a table wide update to make datenew 1 year more that date. So: Date = 2003-05-06 Datenew should be 2004-05-06 Each row should update the

RE: [PHP] Login page

2004-05-06 Thread Jay Blanchard
[snip] # login.php?? [/snip] If that is in fact line 1 then the # sign is the problem. Use either // or /* */ style comments. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Login page

2004-05-06 Thread Angelo Zanetti
# login.php?? -Original Message- From: Erik Gjertsen [mailto:[EMAIL PROTECTED] Sent: Thursday, May 06, 2004 12:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Login page I have made a login page but I got an error on line 1. Can some one please help me to solve the problem http://www.

RE: [PHP] File management.

2004-05-06 Thread Jay Blanchard
[snip] Is there any php set for file management ? The only thing I want is a set of PHP functions that allows me add and remove lines from a file. Is there any thing done ? [/snip] See http://www.php.net/fopen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

RE: [PHP] Login page

2004-05-06 Thread Jay Blanchard
[snip] I have made a login page but I got an error on line 1. [/snip] What is line 1? and what error do you get? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strip comments from HTML?

2004-05-06 Thread Marius Dascalu
--- David T-G <[EMAIL PROTECTED]> wrote: > Marius, et al -- > > ...and then Marius Dascalu said... > % > % --- Justin French <[EMAIL PROTECTED]> wrote: > % > > % > This isn't working: > % > $text = preg_replace('//','',$text); > ... > % > % Hi, > > Hello! > > > % > % You must escape "-" (

Re: [PHP] Re: HTTP_REFERER ... ?

2004-05-06 Thread Tristan . Pretty
I echoed it, and got a blank variable... We ahve full admin rights on my server, and the one we're checking the referer from... Basically, our system has an exsiting user database, and we wanna allow users to loging as per usual, and but allow them (and only them) to veiw pages on the new serve

[PHP] File management.

2004-05-06 Thread Carles Xavier Munyoz Baldó
Hi Is there any php set for file management ? The only thing I want is a set of PHP functions that allows me add and remove lines from a file. Is there any thing done ? Greetings. --- Carles Xavier Munyoz Baldó [EMAIL PROTECTED] http://www.unlimitedmail.net/ --- -- PHP General Mailing List (http

[PHP] Login page

2004-05-06 Thread Erik Gjertsen
I have made a login page but I got an error on line 1. Can some one please help me to solve the problem http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> LoggInn You forgot to enter your username!'; } else { $username = escape_data($_POST['use

Re: [PHP] strip comments from HTML?

2004-05-06 Thread David T-G
Marius, et al -- ...and then Marius Dascalu said... % % --- Justin French <[EMAIL PROTECTED]> wrote: % > % > This isn't working: % > $text = preg_replace('//','',$text); ... % % Hi, Hello! % % You must escape "-" (minus sign) because is a % meta-character for regular expressions. See Wha

Re: [PHP] strip comments from HTML?

2004-05-06 Thread David T-G
Justin -- ...and then Justin French said... % % Hi, Hi! % % This isn't working: % $text = preg_replace('//','',$text); % % Can someone advise what characters I need to escape, or whatever to get % it going? Well, what do you want it to do? On my system that properly replaces the entire co

[PHP] Re: I can't make session work, but cookie can, why?

2004-05-06 Thread Torsten Roehr
"Told" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I can't make session work if I set "session.use_trans_sid = 0", or I must > append SID to the URI to get session work. > And, the cookie works OK. > > Here is my test code: > > session_start(); > > if (!isset($_SESSION['test'

[PHP] I can't make session work, but cookie can, why?

2004-05-06 Thread TooooOld
I can't make session work if I set "session.use_trans_sid = 0", or I must append SID to the URI to get session work. And, the cookie works OK. Here is my test code: No session found - starting a session now."; $_SESSION['test'] = "welcome back!"; } else { // Subsequ

Re: [PHP] Class Help Extended

2004-05-06 Thread Torsten Roehr
"Richard Harb" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > More often than not it's a good thing to assign 'default' values to > class variables like that. > > In this case though I've observed that common practice is to get the > user/pass values from a config file and pass them

Re: [PHP] strip comments from HTML?

2004-05-06 Thread Marius Dascalu
--- Justin French <[EMAIL PROTECTED]> wrote: > Hi, > > This isn't working: > $text = preg_replace('//','',$text); > > Can someone advise what characters I need to escape, > or whatever to get > it going? > > TIA > > --- > Justin French > http://indent.com.au > > -- > PHP General Mailing Lis

RE: [PHP] Class Help Extended

2004-05-06 Thread PHP Email List
> More often than not it's a good thing to assign 'default' values to > class variables like that. > > In this case though I've observed that common practice is to get the > user/pass values from a config file and pass them along as variables > when creating an instance of the class. > > Classes ar