[PHP] Re: input on sessions vs cookies

2007-02-24 Thread Fahad Pervaiz
#ORIGINAL## i would like your input on session vs cookies regarding login data like usernames/passwords ect... END ORIGINAL - Main difference is that cookies are stored on the client machine and session is maintained on server machine. - Cookies can store information for lo

Re: [PHP] input on sessions vs cookies

2007-02-24 Thread benifactor
as of right now, when the user logs in, i have a cookie storing username... then on all of the pages i need data i have it query the database and using the cookie data to retrieve user information.. is there a more secure way to do this? -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] OT - FC6 as Web Server

2007-02-24 Thread Chris
I just got a plain FC6 server running. Anyone here who configured a FC6 for several domains with mail, ftp, virtual domains etc? I haven't done it with FC6 but have with previous versions of redhat as far back as 6.2 (I'm sure someone else will say they've done it for longer :P). What does t

Re: [PHP] input on sessions vs cookies

2007-02-24 Thread tedd
i would like your input on session vs cookies regarding login data like usernames/passwords ect... usernames/passwords ? Session yes, cookies no. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] input on sessions vs cookies

2007-02-24 Thread Robert Cummings
On Sat, 2007-02-24 at 17:48 -0800, benifactor wrote: > i would like your input on session vs cookies regarding login data like > usernames/passwords ect... How are you differentiating sessions vs cookies? Sessions are often implemented USING cookies. If you mean sessions using a session ID in the

[PHP] input on sessions vs cookies

2007-02-24 Thread benifactor
i would like your input on session vs cookies regarding login data like usernames/passwords ect...

RE: [PHP] Include file path.. please help im newby

2007-02-24 Thread Peter Lauri
Include path and include() function is different things. Include path: this is paths where PHP will look for files tried to be included if it doesn't exist in script directory. If you do include("afile.php") and afile.php doesn't exist in the same directory as where your script that is calling the

[PHP] Include file path.. please help im newby

2007-02-24 Thread StainOnRug
Hello I am a beginner at PHP. I searched for my ? but couldn’t pinpoint it.. My question is, How do I upload include files onto my website include directory. Im hosted through Yahoo, I am not running a server on my computer. When I check out my PHP info it tells me the include dir is include path

Re: [PHP] Detailed PHP User SPL documentation?

2007-02-24 Thread Kevin Waterson
This one time, at band camp, Erik Franzén <[EMAIL PROTECTED]> wrote: > I can only find http://www.php.net/~helly/php/ext/spl which is nice, but > for better understanding how to use them I am looking for detailed > information how to use them. More comprehensive documentation with > examples...?

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Larry Garfield
What I don't understand is why you're getting kind in the first place at all. The form you're referring to, I presume, is this one (simplified HTML to avoid word wrapping in email): Regionen suchen mit ...   Verband: Fussballverband Region Zrich (FVRZ) - Alle - Gel�cht Eingetra

[PHP] Detailed PHP User SPL documentation?

2007-02-24 Thread Erik Franzén
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 SPL have been aorund for a while now, and it is a great tool for a php programmer. However, can anyone point me towards more detailed php-documentation about how to use the SPL Classes? I can only find http://www.php.net/~helly/php/ext/spl which is ni

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Jürgen Wind
Dotan Cohen wrote: > > On 24/02/07, Otto Wyss <[EMAIL PROTECTED]> wrote: >> With method="post" just $kind works fine (register_global) yet I've also >> tried any combination of $_GET['kind'] and $_POST['kind']. With >> method="get" it doesn't work. >> >> O. Wyss > > Try $_GET["kind"] > > Dota

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Jürgen Wind
Dotan Cohen wrote: > > On 24/02/07, Pintér Tibor <[EMAIL PROTECTED]> wrote: >> echo ""; >> print_r($_REQUEST); >> echo "; >> >> and think... >> >> t >> > > Maybe you meant: > > echo ""; > print_r($_REQUEST); > echo "; > ?> > > Dotan Cohen > > http://lyricslist.com/lyrics/lyrics/137/12/aali

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-24 Thread Seak, Teng-Fong
Yup, that's nice. As others had told you, it doesn't work in IE6. On the other hand, the first time your page is loaded (or when the download speed is low), and when the mouse pointer is on "General", it takes quite some time to draw the menu bar background. And that gives the feeling

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen
On 24/02/07, Otto Wyss <[EMAIL PROTECTED]> wrote: Pintér Tibor wrote: > echo ""; > print_r($_REQUEST); > echo "; > > and think... > After reload Array ( [page] => bvallist.php [kind] => regions ... ) After change in form with method="get" Array ( [state] => validated ... ) A

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Otto Wyss
Pintér Tibor wrote: echo ""; print_r($_REQUEST); echo "; and think... After reload Array ( [page] => bvallist.php [kind] => regions ... ) After change in form with method="get" Array ( [state] => validated ... ) After change in form with method="post" Array ( [page] => bval

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen
On 24/02/07, Pintér Tibor <[EMAIL PROTECTED]> wrote: echo ""; print_r($_REQUEST); echo "; and think... t Maybe you meant: "; print_r($_REQUEST); echo "; ?> Dotan Cohen http://lyricslist.com/lyrics/lyrics/137/12/aaliyah/age_ain_t_nothing_but_a_number.html http://what-is-what.com/what_is/we

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Pintér Tibor
Otto Wyss írta: Dotan Cohen wrote: Try $_GET["kind"] Tried, doesn't help. O. Wyss echo ""; print_r($_REQUEST); echo "; and think... t -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Otto Wyss
Dotan Cohen wrote: Try $_GET["kind"] Tried, doesn't help. O. Wyss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to call image from mySql to php file

2007-02-24 Thread tedd
At 10:38 AM +0500 2/24/07, Fahad Pervaiz wrote: There are two ways to store images in databases. First is that you upload your images to a directory and store path to that image in the database. In this case make sure that your field size is large enough to store the complete path. You can use

Re: [PHP] Check if link is on a page

2007-02-24 Thread tedd
At 11:49 AM + 2/24/07, Wikus Möller wrote: Ok, thanks. That should do it. By the way, which letter should be used for what at the fopen like you used an 'r'. Is there an online reference that lists this? Because I couldn't find it at php.net Thanks Really? Just enter "fopen" in the "sear

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen
On 24/02/07, Dave Goodchild <[EMAIL PROTECTED]> wrote: Or just interpolate it like so: print "Hello, {$_GET['kind']}!"; Nice, I didn't know that. Dotan Cohen http://lyricslist.com/ http://what-is-what.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Check if link is on a page

2007-02-24 Thread Wikus Möller
Ok, thanks. That should do it. By the way, which letter should be used for what at the fopen like you used an 'r'. Is there an online reference that lists this? Because I couldn't find it at php.net Thanks On 2/24/07, Dave Goodchild <[EMAIL PROTECTED]> wrote: $web = fopen('http://google.com/in

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dave Goodchild
On 2/24/07, Dotan Cohen <[EMAIL PROTECTED]> wrote: Also, if you're using the variable in a print string, then you'll need to exit the string, like so: $print "Hello, $kind!"; would become: $print "Hello, ".$_GET["kind"]."!"; Dotan Cohen http://easyanswers.info http://nirot.com -- PHP General

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dave Goodchild
On 2/24/07, Otto Wyss <[EMAIL PROTECTED]> wrote: With method="post" just $kind works fine (register_global) yet I've also tried any combination of $_GET['kind'] and $_POST['kind']. With method="get" it doesn't work. O. Wyss Peter Lauri wrote: > How are you fetching the GET and POST? With $_GET

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen
Also, if you're using the variable in a print string, then you'll need to exit the string, like so: $print "Hello, $kind!"; would become: $print "Hello, ".$_GET["kind"]."!"; Dotan Cohen http://easyanswers.info http://nirot.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Check if link is on a page

2007-02-24 Thread Dave Goodchild
$web = fopen('http://google.com/index.php', 'r'); $contents = file_get_contents($web); if (preg_match('/$link/', $contents))... you got it simplified and no error checking but you get the idea.

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Dotan Cohen
On 24/02/07, Otto Wyss <[EMAIL PROTECTED]> wrote: With method="post" just $kind works fine (register_global) yet I've also tried any combination of $_GET['kind'] and $_POST['kind']. With method="get" it doesn't work. O. Wyss Try $_GET["kind"] Dotan Cohen http://lyricslist.com/lyrics/artist_a

[PHP] IE6 session issues

2007-02-24 Thread Dave Goodchild
Hi all. I am running an online charity lottery and am having issues with IE6 and sessions. To fix them, I added the following at the top of each file: ini_set('session.name', 'tlc'); header("Cache-control: private"); session_start(); ...ran a local test in IE6 worked fine, then noticed more bla

[PHP] Check if link is on a page

2007-02-24 Thread Wikus Möller
Hi. I need some help with checking if a certain link is on a page (e.g. check if http://yahoo.com is on http://google.com/index.php ) Please help me to get the web page and to perform a string match on the web page. Thanks *Still learning* -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Otto Wyss
With method="post" just $kind works fine (register_global) yet I've also tried any combination of $_GET['kind'] and $_POST['kind']. With method="get" it doesn't work. O. Wyss Peter Lauri wrote: How are you fetching the GET and POST? With $_GET and $_POST? Best regards, Peter Lauri www.dwsas

[PHP] Re: GET doesn't work as POST

2007-02-24 Thread Haydar TUNA
Hello, if you send your complete code, I can help you.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net "Otto Wyss" <[EMAIL PROTECTED]>, haber iletisinde sunlari yazdi:[EMAIL PROTECTED]

RE: [PHP] GET doesn't work as POST

2007-02-24 Thread Peter Lauri
How are you fetching the GET and POST? With $_GET and $_POST? Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Otto Wyss [mailto:[EMAIL PROTECTED] Sent: Saturday, February

[PHP] GET doesn't work as POST

2007-02-24 Thread Otto Wyss
On the page http://www.orpatec.ch/turniere/5erfussball/index.php?page=bvallist.php&kind=regions I have a form with method="post" and action="?>". While it works fine this way, as soon as I change the form to method="get" it looses the parameter "kind" when I change e.g. the second parameter

Re: [PHP] getting authentication information from apache

2007-02-24 Thread dave
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 try echo $PHP_AUTH_USER; Ryan wrote: > Richard, > > I looked at phpinfo() as you said, same thing... > > _SERVER["REMOTE_USER"]no value > > You may be right, this may not be available, but I don't want to keep > throwing a login screen in front

Re: [PHP] Re: How to call image from mySql to php file

2007-02-24 Thread Jim Lucas
benifactor wrote: $query = mysql_query("SELECT logos FROM table WHERE sno = '$sno' limit 1") or die(mysql_error()); while ($result = mysql_fetch_array($query)) { $sno = $result[logos]; } logos = constant??? if not, you should have it quoted. Otherwise you will get a PHP notice warning