When a user registers at my site, a random number is md5 encrypted and assigned to
them and is stored in the database. When they login, this number is stored in a secure
cookie. On certain pages that may contain sensitive user information such as order
history or other, the page looks for the co
Michael Lauzon wrote:
I see enough of this "Holier Than Thou" attitude on the OCLUG list, I
don't need to see it here as well, and if you keep it up people like
me...the newbies will shy away from PHP!
everyone with a holier than thou attitude were also newbies once. The
difference is that they
I need to build a url based on screen width.
The code is below
if (screen.width > 800) {
document.write('');
}
else if (screen.width <= 800) {
document.write('');
}
However, I need to add some parameters to the url dynamically. For example,
...
Not getting success in try to combine Jav
However, those newbies who stick around will learn how to research and
find most of the answers themselves. Not a bad result, if you ask me.
Education often sounds "Holier than Thou", but there's usually a good
reason for it.
Bob
-Original Message-
From: Michael Lauzon [mailto:[EMAIL PR
I see enough of this "Holier Than Thou" attitude on the OCLUG list, I
don't need to see it here as well, and if you keep it up people like
me...the newbies will shy away from PHP!
On Sun, 20 Jun 2004 12:39:26 +1000, Aidan Lister <[EMAIL PROTECTED]> wrote:
>
> Please read:
>
> http://www.catb.org
Please read:
http://www.catb.org/~esr/faqs/smart-questions.html
"Water_foul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i fixed it i had an endless loop oops :)
> "Water_foul" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > i dont know why but the following
Take a look at the code available at http://www.phpmath.com. Several people
have contributed some numerical methods that could be useful for you.
Lukasz Karapuda
> -Original Message-
> From: Justin Patrin [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 18, 2004 6:05 PM
> To: [EMAIL PR
Angel Freire wrote:
First I recomend you to read this page:
http://ar.php.net/manual/en/function.setcookie.php
I think your recommendtation ought to be
http://ar.php.net/manual/
instead. ;-)
--
Raditha Dissanayake.
-
http://www.raditha.com/megaupl
First I recomend you to read this page:
http://ar.php.net/manual/en/function.setcookie.php
For that example the code should be:
$_COOKIE['link1']
El sáb, 19-06-2004 a las 19:47, water_foul escribió:
> how do i read a cookie created by this code
> setcookie('link1',blah,time()+3600,'/');
--
PHP
Perhaps you would be better off going to IRC, as you seem to have many
(smaller) questions...
On Sat, 19 Jun 2004 17:42:26 -0600, water_foul
<[EMAIL PROTECTED]> wrote:
>
> i fixed it i had an endless loop oops :)
> "Water_foul" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>
>
i fixed it i had an endless loop oops :)
"Water_foul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i dont know why but the following code "kills" the browser:
> //the function for adding new addresses
> function loop_new_address($loopnum,$url,$name){
> //the ${'link' . $loopnum} s
i dont know why but the following code "kills" the browser:
' . $name . ' was added');
};
};
//A function to let loop_new_address loop
function loop_new_address_help($loopnum,$url,$name){
loop_new_address($loopnum,$url,$name);
};
if(isset($_GET['new'])) {
loop_new_address(1,$_GET['url'],$_GET['name
Robin Vickery sagde:
>
> The S modifier that you're using means that it's storing the studied
> expression. If the regexp changes each time around the loop then over
> 3 iterations, that'll add up. See if removing that modifier helps
> at all.
>
The S modifier wasn't needed, I added it because
how do i read a cookie created by this code
setcookie('link1',blah,time()+3600,'/');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how do you set a cookie to mutiple directories?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I would also like to know how to set a cookie to all dirs in a domain
> how do you set a system path to the top level, i allredy tried '/' but it
ignores the last '.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how do you set a system path to the top level, i allredy tried '/' but it
ignores the last '.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i figured it out ty
"Joel Kitching" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> There are many examples (in the comments) at the manual entry for
> set_cookie at php.net; go try one of those.
>
> On Sat, 19 Jun 2004 16:07:34 -0600, water_foul
> <[EMAIL PROTECTED]> wrote:
> >
> > i
There are many examples (in the comments) at the manual entry for
set_cookie at php.net; go try one of those.
On Sat, 19 Jun 2004 16:07:34 -0600, water_foul
<[EMAIL PROTECTED]> wrote:
>
> i did that and it doesn't say that theere there, how do you set cookies so
> that theyy dont expire (maby the
i did that and it doesn't say that theere there, how do you set cookies so
that theyy dont expire (maby the expiration is set wrong.. i'm a newb
with cookies
"Joel Kitching" <[EMAIL PROTECTED]> wrote
Are you sure you're trying to access them properly, and on the next
> page refresh?
>
> ex)
>
>
I don't know if this helps... but when I comment out all of the print
functions it seg faults at a totally different spot...
SCRIPT!!!
GDB RUN!!!
(gdb) run dbConnect.php
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/ph
Are you sure you're trying to access them properly, and on the next
page refresh?
ex)
On Sat, 19 Jun 2004 15:56:36 -0600, water_foul
<[EMAIL PROTECTED]> wrote:
>
> all i did was a function and some conditionals
> "Joel Kitching" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
sorry i misse dsomething else i should say, this is in the function but i
haven't sent any output before i call the function
"Water_foul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> lemme clarify what i mean by function, i created a function
> "Water_foul" <[EMAIL PROTECTED]> wrot
lemme clarify what i mean by function, i created a function
"Water_foul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> all i did was a function and some conditionals
> "Joel Kitching" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Did you do this before you sent s
Hey all
Total PHP newbie here. I posted a day ago about php working
'intermittently'. I was told to check my apache logs which was a good hint
cause php is seg faulting. I've broken it down to my connection script to my
database and I ran it in gdb to see if it would tell me anything. Since I
all i did was a function and some conditionals
"Joel Kitching" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Did you do this before you sent some outut? This would send headers,
> therefore causing you to not be able to send the "cookie" header.
>
> On Sat, 19 Jun 2004 15:51:00 -06
thanks...that is what I had used previously :)
Another php coder had given me a hint that I could just take each
incoming row on the fly with $row['artist_name'] without reading
everything into an array:
What I had previously was:
while ($row = mysql_fetch_assoc($result))
{
$playlist[] = $ro
Did you do this before you sent some outut? This would send headers,
therefore causing you to not be able to send the "cookie" header.
On Sat, 19 Jun 2004 15:51:00 -0600, water_foul
<[EMAIL PROTECTED]> wrote:
>
> whats wrong with this script
> setcookie('link' . $loopnum . '',$url,time()+3600*20
whats wrong with this script
setcookie('link' . $loopnum . '',$url,time()+3600*200);
setcookie('name' . $loopnum . '',$name,time()+3600*200);
it doesn't write the cookies
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> This isn't exactly a PHP issue, but they seem to go rather hand in
> hand...
>
> Right now I'm just running my own apache server on my computer and I'm
> trying to protect my scripts using mod_rewrite. I uncommented all the
> mod_rewrite lines in the apache configuration file and restarted it all
On Sat, 19 Jun 2004 17:23:53 -0400, Al <[EMAIL PROTECTED]> wrote:
>
> Anyone know of a good regular expressions tester/designer for php coding
> running windows.
>
> I've looked at the Rad Software Regular Expressions Designer and it
> looks pretty good except that it is intended for .net and it
Anyone know of a good regular expressions tester/designer for php coding
running windows.
I've looked at the Rad Software Regular Expressions Designer and it
looks pretty good except that it is intended for .net and it really
doesn't seem to be entirely PCRE compatible.
Thanks
--
PHP Gene
I figured it out
"Water_foul" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i get the following error
>
> Parse error: parse error, unexpected T_STRING in
> C:\Inetpub\localroot\aichlmayr.net\sites\aaron\module\personal\links.php
on
> line 21
> -
action="module/personal/delete.php">delete);
replace this with
action="module/personal/delete.php">delete;
and remove the ; after } - it's ugly and useless ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i get the following error
Parse error: parse error, unexpected T_STRING in
C:\Inetpub\localroot\aichlmayr.net\sites\aaron\module\personal\links.php on
line 21
--
for the following code and i cant figure out why (you may need to maxamise
t
On Sat, 19 Jun 2004 13:25:54 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> How do I iterate over fields when I perform the below script:
...
> If I write the below code, I only get the first field name of each
> row...which makes sense
> In this case, I get 'artist_name'
>
> while ($row
Thanks oh so much
"Robin Vickery" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sat, 19 Jun 2004 14:25:27 -0600, water_foul
> <[EMAIL PROTECTED]> wrote:
> >
> > is there a way to use one variable to create another?
> > Example
> > $poo=1
> > and i want
> > $lie1
> > OR
> > $poo=
sorry i didn't say this before but please hurry i need this to finish a php
script
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 19 Jun 2004 14:25:27 -0600, water_foul
<[EMAIL PROTECTED]> wrote:
>
> is there a way to use one variable to create another?
> Example
> $poo=1
> and i want
> $lie1
> OR
> $poo=2
> and i want
> $lie2
If I understand you right, you want:
${'lie' . $poo}
when $poo is 1, that will give yo
is there a way to use one variable to create another?
Example
$poo=1
and i want
$lie1
OR
$poo=2
and i want
$lie2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do I iterate over fields when I perform the below script:
each row has: artist_name,urlPath,biography as fields
while ($row = mysql_fetch_assoc($result))
{
# if the current field name is 'artist_name', do something
switch($GetCurrentFieldNameintheCurrentRow)
{
case $row[ 'field name i
On June 18, 2004 10:26 pm, cory wrote:
> ok, someone please lend me some advice here. I am trying create a upload
> form for my site.
>
> Sure that sounds easy right? well I have tried at least 10 different php
> scripts as well as a handful of cgi. Same resuls with everyone of
> them...nothing
This isn't exactly a PHP issue, but they seem to go rather hand in hand...
Right now I'm just running my own apache server on my computer and I'm
trying to protect my scripts using mod_rewrite. I uncommented all the
mod_rewrite lines in the apache configuration file and restarted it all. I
got no
Per Jessen wrote:
> I'm trying to build php 4.3.7 with sablot 1.0.1 and expat 1.95.7 - I'm using
> gcc3.3.3.
> sablot and expat built fine, but when I build/link php:
> /usr/lib/libsablot.so: undefined reference to `operator new[](unsigned)'
[snip]
After some research, I can answer my own questio
Scott Taylor wrote:
> How exactly do sessions work? I've heard that if cookies are disabled
> that a session will then pass it's variables in the url (through GET).
> Yet when I manually disable cookies none of my pages work (because the
> $_SESSION variables do not seem to be working).
The varia
How exactly do sessions work? I've heard that if cookies are disabled
that a session will then pass it's variables in the url (through GET).
Yet when I manually disable cookies none of my pages work (because the
$_SESSION variables do not seem to be working).
Any ideas?
Best Regards,
Scott T
Guys... Anybody knows of a php script that can help measure download and
upload speed tests?
Thank you for any comments.
Anton Krall
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris Wagner wrote --- napísal::
hello,
wondering how you might go about triggering PHP scripts from an apache
configuration file, for certain events...
for instance, how might i trigger a script whenever a file was accessed
within a given directory. and, would it be possible to know which file
wa
cory wrote --- napísal::
Sure that sounds easy right? well I have tried at least 10 different php
scripts as well as a handful of cgi. Same resuls with everyone of
them...nothing in my specified tmp folder.
Every uploaded file is removed from the temporary directory right after
the script is ov
I'm trying to build php 4.3.7 with sablot 1.0.1 and expat 1.95.7 - I'm using
gcc3.3.3.
sablot and expat built fine, but when I build/link php:
/usr/lib/libsablot.so: undefined reference to `operator new[](unsigned)'
/usr/lib/libsablot.so: undefined reference to `vtable for
__cxxabiv1::__si_class_
50 matches
Mail list logo