Re: [PHP] SESSION array problems

2008-10-01 Thread Henrik Hudson
'Cable'; > > $_SESSION['user_id'][] = '1234'; > $_SESSION['first_name'][] = 'Big'; > $_SESSION['last_name'][]= 'Ron'; > > $_SESSION['user_id'][] = '8867'; > $_SESSION['first_name'][] = 'Joe'; > $_SESSION['last_name'][]= 'Dirt'; > > Now, how do you retrieve it? I still see an index mixing issue here for you. However, on a side note, why don't you create user objects and then just stick the object(s) in the $_SESSION array? Then just while() loop the session and pull the objects out. Henrik -- Henrik Hudson [EMAIL PROTECTED] -- "God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] gethostbyname failing?

2006-11-10 Thread Henrik Hudson
rver to do "hostnamelookups on" or DNS lookups inside the php module is was generating 0 DNS requests to anywhere. Now, with 1.3 installed dnstop is showing plenty of traffic. \On Thursday 09 November 2006 15:27, Henrik Hudson <[EMAIL PROTECTED]> sent a missive stating: > Hey List- > &g

Re: [PHP] gethostbyname failing?

2006-11-10 Thread Henrik Hudson
On Thursday 09 November 2006 21:28, Chris <[EMAIL PROTECTED]> sent a missive stating: > Henrik Hudson wrote: > > Thanks for the input everyone. It seems it Apache itself can't do lookups > > either (ie: Hostnamelookups On ..doesn't actually do anything..so, go

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
dentical config files, so..I don't know...perl scripts and php from the CLI work fine..so my actual DNS resolution is working okay..just Apache is losing it somewhere...if anyone has some thoughts..let me know :) On Thursday 09 November 2006 15:27, Henrik Hudson <[EMAIL PROTECTED]> sent

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
On Thursday 09 November 2006 15:56, Jürgen Wind <[EMAIL PROTECTED]> sent a missive stating: > Henrik Hudson wrote: > > Hey List- > > > > running: apache 2.2, freebsd 6.2 and php 4.4.4 > > > > I've got a wierd issue. I've got a script that does

[PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
... to confirm name resolution is working works fine. Running that script from the CLI is fine (ie: php test.php). However, when running from the web it doesn't work. I tried it on a php 5.1.x box and it works fine there. Thoughts? Henrik -- Henrik Hudson [EMAIL PROTECTED]

Re: [PHP] ereg_replace help

2003-11-18 Thread Henrik Hudson
e > library and therefore can't change :( > > TIA > Martin Possibly have to do a if statement, ereg for the abcd and then if ture, do your ereg replace? I can't logically think how that would work in one regex, since you want to match first and then replace...but my reg

Re: [PHP] E-mail Gateway

2003-11-18 Thread Henrik Hudson
could use CLI PHP for this, I would use Perl or even better, C. PHP is really meant to run via a web browser and what you're talking about is all backend code. Look into playing with procmail and Perl or C. Henrik -- Henrik Hudson [EMAIL PROTECTED] "`If there's anything more

Re: [PHP] I need answers for the questions

2003-11-18 Thread Henrik Hudson
Yes. http://httpd.apache.org/docs/ or http://httpd.apache.org/docs-2.0/ > 10. Write a function in PHP script to check whether string is a valid email > id or not? Lookup email and regular expression checking. About 10 examples are here as well: http://us2.php.net/ereg Henrik -- Henr

[PHP] PHP and PayFlow Pro Issues

2003-11-17 Thread Henrik Hudson
est.sh script from the CLI works just fine as does passing arguments to the pfpro binary directly, but I would prefer to work from within the library and not do system calls. Any suggestions on where to look? or solutions? Did I just miss a step in installation? Thanks. Henrik -- Henrik Hu

Re: [PHP] unsuscribe

2003-10-05 Thread Henrik Hudson
p.net/unsub.php Henrik -- Henrik Hudson [EMAIL PROTECTED] "`If there's anything more important than my ego around, I want it caught and shot now.'" --Hitchhikers Guide to the Galaxy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shopping Cart Solutions

2003-09-22 Thread Henrik Hudson
mething slimmer or more easily configured you might be better off starting from another codebase. That being said..if you're looking for an OSS program which works well for what it's meant to be..a full featured shopping cart solution..then look no further. Henrik -- Henrik Hudson [EMAI

[PHP] PHPSESSID Length?

2003-06-29 Thread Henrik Hudson
er or shorter. Can't seem to find anything in the archives or Google. Then again, is a 32-length string sufficient for protecting a browser session length of "session"? Thanks. Henrik -- Henrik Hudson [EMAIL PROTECTED] "`If there's anything more important than my eg

Re: [PHP] spawning new window with PHP

2003-06-10 Thread Henrik Hudson
want and it will resolve it while generating the page. Basically the same way you print out HTML code with PHP variables "in it". Henrik -- Henrik Hudson [EMAIL PROTECTED] "`If there's anything more important than my ego around, I want it caught and shot now.'&q

Re: [PHP] Self-filling login form

2003-04-03 Thread Henrik Hudson
Preferences -> Privacy&Security -> Forms and also Passwords and uncheck the checkboxes. Henrik -- Henrik Hudson [EMAIL PROTECTED] "`If there's anything more important than my ego around, I want it caught and shot now.'" --Hitchhikers Guide to the Galax

[PHP] PHP Devel Environments???

2003-03-20 Thread Henrik Hudson
amweaver extensions for doing some of this stuff, but I still question their quality for open ended stuff like writing PHP. Thanks. Henrik -- Henrik Hudson [EMAIL PROTECTED] You know, Hobbes, some days even my lucky rocket ship underpants don't help." Calvin -- PHP Gener

Re: [PHP] adding unix account via system command

2002-09-18 Thread Henrik Hudson
username > > When I ran the add.sh from the command line, it works ok: > $ /usr/bin/add.sh n n /home/n > Changing password for user n > passwd: all authentication tokens updated successfully > (i tried login in with uid=n and passwd=n and it was ok) > > What

Re: [PHP] Using HTTP Referer

2002-09-11 Thread Henrik Hudson
the page sent > the user here. > > I hope this is clear to you, if any of you out here knew a clue please help > me out. Any comment is greatly appreciated. > > JJW > 9/11/2002 -- Henrik Hudson [EMAIL PROTECTED] Note: Beware of Dragons - Thou art crunchy and taste good with ketchup. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IPlanet Webserver

2002-09-11 Thread Henrik Hudson
t; working with or around this problem. > > Chris -- Henrik Hudson [EMAIL PROTECTED] Note: Beware of Dragons - Thou art crunchy and taste good with ketchup. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header() problem!!!!

2002-09-11 Thread Henrik Hudson
php: > > > ... > > header("Cache-Control: no-cache, must-revalidate"); > > header("Content-Type:".$mime_type); > > header("Content-Disposition: attachment; filename=$filename"); > > echo $filedata; > > ?> > > please pay att

Re: [PHP] chmod error?

2002-04-09 Thread Henrik Hudson
curity reasons. > > any hints as to how i can get chmod to work would be great... > > John -- -- Henrik Hudson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Having a problem with sessions, Part Deux.

2002-01-21 Thread Henrik Hudson
I am using files on both systems. The session "files" are also showing up on both systems. (/tmp) On Monday 21 January 2002 08:15, Jaime Bozza wrote: > Henrik, >Which session handler are you using? Files, mm, User? > > Jaime Bozza > > > > -Original

[PHP] Having a problem with sessions, Part Deux.

2002-01-20 Thread Henrik Hudson
d how variables are inherited? When register_globals is off, the code works great. Could someone explain why that is? That'd be great :) I would have thought that you can still access the HTTP_SESSION_VARS even if globals is on? Thanks. Henrik On Sunday 20 January 2002 15:12, Henrik Hu

[PHP] Having a problem with sessions?

2002-01-20 Thread Henrik Hudson
the php.ini file is that at home I have register globals off and at work they are on? Even with register globals on, you can still use the $HTTP_*_VARS, right? The sessionID cookie is getting put into my browser, I checked so the "session" is starting correctly, just not retaining the variable. Any ideas anyone? Thanks list. Henrik -- Henrik Hudson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] httpd.conf config options?

2002-01-18 Thread Henrik Hudson
can modify it so that VirtualHost logs to the screen? Thanks list. Henrik -- Henrik Hudson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] Re: HTTP_POST_VARS and eval?

2001-11-16 Thread Henrik Hudson
P_GET_VARS["whatever"]}"; > > or, (IMHO better), > > print 'whatever is '.$HTTP_GET_VARS["whatever"]; > > The fact that you are actually evaluating an assignment is I think > irrelevant, it's just the variable substitution that's failing. See

Re: [PHP] Re: HTTP_POST_VARS and eval?

2001-11-15 Thread Henrik Hudson
ST_VARS["email"] Lineafterwards: Just in case we forget, the users name is $HTTP_POST_VARS["name"] and their email is $HTTP_POST_VARS["email"] --------- On Thursday 15 November 2001 18:20, Richard Lynch wrote: > Henrik Hudson wrote

[PHP] HTTP_POST_VARS and eval?

2001-11-15 Thread Henrik Hudson
ot;\$line = \"$line\";"); echo "Lineafterwards: $line\n"; //Write the line back into a single variable $form_data = $form_data . $line; } exit; Thanks! Henrik -- Henrik Hudson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] editor for working with php

2001-10-30 Thread Henrik Hudson
te mail message depending on the > > type of mail client and gateway software you are using. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Using php to verify fields in form...

2001-10-29 Thread Henrik Hudson
the past but would > like to use php. Anyone know how i can accomplish this? Thanks in advance, > Jason -- Henrik Hudson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] how to pass true/false or "no argument"

2001-10-29 Thread Henrik Hudson
} > > Which is correct for the default initialization of $xxx: > $xxx=false; > $xxx=null; > $xxx=""; > > How do I distinguish between false and "$xxx parameter not > passed"? Do I use isset()? Do I use ===? > > Thanks. -- Henrik

Re: [PHP] Where does mysql keep the records data

2001-10-29 Thread Henrik Hudson
O eZAddress_AddressType VALUES (1,'Home address',1,0); > ERROR 1062: Duplicate entry '1' for key 1 > > Where dat data at? -- Henrik Hudson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] One last kick at the cat

2001-10-28 Thread Henrik Hudson
> > function Table_Title() > { > $myconnection = mysql_pconnect($server,$user,$pass); > mysql_select_db($db,$myconnection); > > $news = mysql_query("SHOW TABLE STATUS FROM ".$db." LIKE '$table'"); > while ($news_story = mysql_fetch_array($news)) > { > $table_comment = $news_story['Comment']; > } > > echo $table_comment; > //echo "Nothing"; > } > ?> -- Henrik Hudson [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] switch-statement overrides use of global arrays?

2001-10-28 Thread Henrik Hudson
occurred when I tried to > manipulate the array, was to add a $array_test = array(); a few lines > before the switch statement. Alas, this also emptied the array each time I > went from one function to another via the switch statement. > > I guess I am trying something that is just not p

Re: [PHP] switch-statement overrides use of global arrays?

2001-10-28 Thread Henrik Hudson
-- > > function test_one() { > > global $array_test; > > // This results in NULL > > print("Content of first array in the first test function is now:"); > > var_dump($array_test); > > $array_test[2] = "First array, third ele

[PHP] UpLoading Large Files?

2001-08-31 Thread Henrik Hudson
Afternoon List- I have been burrowing through archives and newsgroups for awhile now and have been trying to find some info on a better way to upload files from a browser then doing HTTP based uploads? Are there any? My system: PIII 750, 128MB RAM running FreeBSD 4.2 and Apache 1.3.20, PHP 4.

FYI: Re: [PHP] How to Return a Real Filename?

2001-08-30 Thread Henrik Hudson
FYI: Since this may be a problem for others, I did figure it out sort of. If my script is called: filereturn.php I pass this in my HREF: A HREF="filereturn.php/filename.exe?fileID= I don't know if this is a hack or whatever, but Netscape (NIX and Windoze) and IE on Mac will now save the

[PHP] How to Return a Real Filename?

2001-08-30 Thread Henrik Hudson
Morning List- I have a script which gets passed a "fileID" and using that fileID it queries a SQL database and grabs an actual filename and then does a fopen, fpassthru, etc I added the header info (application/octet-stream) so it actually downloads the file right away, instead of just displa