'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
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
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
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
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
... 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]
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
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
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
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
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
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
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
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
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
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
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
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
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
php:
> > > ...
> > header("Cache-Control: no-cache, must-revalidate");
> > header("Content-Type:".$mime_type);
> > header("Content-Disposition: attachment; filename=$filename");
> > echo $filedata;
> > ?>
> > please pay att
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
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
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
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]
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,
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
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
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/)
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]
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
}
>
> 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
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]
>
> 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]
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
--
>
> 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
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: 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
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
38 matches
Mail list logo