> -Original Message-
> From: Nikhil Goyal [mailto:[EMAIL PROTECTED]]
> When does a session variable become available? Immediately after the
> session_register command or after the script ends?
Immediately after it is assigned.
> And if the commands are as follows:
>
> session_start();
Funnily - doesn't work for me. Here's what I got:
Script #1
#!/usr/local/bin/php
Script #2
#!/usr/local/bin/php
If I start script#1 (and it sleep()s), wait 10 seconds, then launch script
#2 in a separate browser window, script #2 returns empty. However once the
sleep() is completed and I refr
Hi! my name is bruno, from Brazil and i'm having some problems with
sessions.
Look my code:
...
The message returned in my browser is:
Warning: Cannot send session cookie - headers already sent by (output
started at /home/httpd/html/intranet/teste.php:11) in
/home/
Just move these two lines to the beginning of the file:
session_start();
session_register("test");
These have to be before any output is sent to the browser.
Kirk
> -Original Message-
> From: Bruno Freire [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 2:42
the session_start() should be placed at the top, before the
...
wrote in message
454D444FF5C0D211891800A0C98C7D90359A54@SERVIDOR">news:454D444FF5C0D211891800A0C98C7D90359A54@SERVIDOR...
> Hi! my name is bruno, from Brazil and i'm having some problems with
> sessions.
> Look my code:
>
>
If you don't use output buffering, the session stuff has to be the first
thing in you script. In other words, you should not send anything to the
browser before the session functions.
In your case you are sending html tags to the browser before the session
functions.
Rewrite it as the following:
The session variable values get stored to the session file (or database, or
wherever your configuration is set to store them) at the end of script 1.
When session_start() is called in script 2, those values get restored from
the session file. So, your results are expected: PHP needs to store the
so the session variable is set only when the script ends? I thought you
indicated that they were set immediately...
Thanks for the quick reply,
Nikhil
""Johnson, Kirk"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The session variable values get stored to
Do you need to get your staff up to speed on PHP? Are you a PHP programmer, looking
for a hands on approach to learning PHP? If you fit any of these conditions or just
want to learn more about building dynamic web sites with PHP, then consider taking our
PHP training course this coming June.
*humps ad*
Keith Elder <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Do you need to get your staff up to speed on PHP? Are you a PHP
programmer, looking for a hands on approach to learning PHP? If you fit any
of these conditions or just want to learn more
Sorry for the confusion. The variable has a value as soon as you assign it,
and you can use the variable in other statements within the same script.
However, the value does not get stored to the session file until after the
script ends.
Kirk
> -Original Message-
> From: Nikhil Goyal [mai
With 4.0.4pl1 and earlier, this did not occur, but with 4.0.5, there
are some files on our server that are not getting parsed as php, and
just showing up as the code itself. The problem files are a mess, but
I only mention them since they got parsed before. They are php files
that the designer
hi I have a question here.
This is what i want to do: I have a login/password form, in order to make
the password going through the network (from client's browse to the
server) secure, I need to run https server on the server side.
Here is my problem: How do I do the authentication? Originally,
I've just tried to compile and install
php 4.0.5 with apache and when I try to
restart apache I get the following. I added
the location of libphp4.so to ld.so.conf and
ran ldconfig and then make clean and re-compiled
php etc... any ideas as to what is going on ?
[root@localhost bin]# ./apachectl
rsort($array);
$nextNum = $array[0] + 1;
You may have to include the numerical flag, but I don't think so.
--
phill
"Mike Potter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all:
> I'm hoping someone can help me out with this array problem. I'm
> try
I need to abrieviate a block of text at the first full stop after 100
characters, does anyone have a handy dandy way of doing it?
Chris Mason
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463
USA Fax (561) 382-7771
Take a virtual tour of the island
http://net.
On Vie 04 May 2001 00:41, you wrote:
> I've just tried to compile and install
> php 4.0.5 with apache and when I try to
> restart apache I get the following. I added
> the location of libphp4.so to ld.so.conf and
> ran ldconfig and then make clean and re-compiled
> php etc... any ideas as to what
I am having an issue with 4.0.5 where the following code snippet:
$orig = imagecreatefromjpeg($tmp);
echo 'orig x: ' . imagesx($orig) . ' orig y: ' . imagesy($orig)
. '';
$orig_size = getimagesize($tmp);
echo "orig x: $orig_size[0] orig y: $orig_si
I upgraded from 4.0.4 to 4.0.5 and trans sid no longer works. Any ideas ?
DW
"Chris Mason" <[EMAIL PROTECTED]> wrote:
> I need to abrieviate a block of text at the first full stop after 100
> characters, does anyone have a handy dandy way of doing it?
wordwrap()
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
hi all!
just a quick thing. i've got loads of info in mysql, which i extract
and then use a "while ($r = mysql_fetch_array($result)) {" to output
the result.
the only thing is, because its a loop, all results look the same,
whereas i want the first row to be displayed differently than the
next 4
Is there any way to protect a php program. Like you can other software
were you can limit the amount of time they can use it. something like a
compiled c program that the php program would have to look of a cod
otherwise it will not work. Or am I just dreaming
--
PHP General Mailing List (http
Well, you could check & exit if it's passed a certain date. Also, using the
Zend tool that encrypts the source would be an idea (but that costs money!).
You could have a look at parsing the source code & writing an obfuscator,
anyone know if there's one already written?
Dave
- Original Messa
also sprach Richard Kurth (on Thu, 03 May 2001 04:31:42PM -0700):
> Is there any way to protect a php program. Like you can other software
> were you can limit the amount of time they can use it. something like a
> compiled c program that the php program would have to look of a cod
> otherwise it
Hello MaD,
what is obfuscation/encryption
Thursday, May 03, 2001, 5:01:34 PM, you wrote:
MaD> also sprach Richard Kurth (on Thu, 03 May 2001 04:31:42PM -0700):
>> Is there any way to protect a php program. Like you can other software
>> were you can limit the amount of time they can use it. some
Clue = "Nested Loops"
--
phill
"Sandeep Hundal" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi all!
>
> just a quick thing. i've got loads of info in mysql, which i extract
> and then use a "while ($r = mysql_fetch_array($result)) {" to output
> the result.
You can keep a count of what row in the result you are and use that
accordingly to format your results...
-Original Message-
From: Sandeep Hundal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 7:10 PM
To: php
Subject: [PHP] simple database extraction problem :(
hi all!
just a
How can I get the modulus of an float by an integer?
$time=3.345345;
$time2=2.34234;
$time3=$time%$time2;
echo $time3;
this outputs 1.
$time=3.345345;
$time2=2
$time3=$time%$time2;
echo $time3;
this also outputs 1.
Of course... when dividing two floats, there is no remainder... but, there
is
I know how to get last part of a string out of a string
But how do I get the first part before the needle On the example
below I just what domain
$hostdomain= domain.com
$host = substr (strrchr ($hostdomain, "."), 1);
echo $host; com
--
PHP General Mailing List (http://www.php.net/)
To
I have a major problem could somebody take a seeress look at this
mysql running on cobalt raq4
I have looked through the archives and looked at the manual
can not find anything to explain this
nothing in the mysql log file
I can not access the databases from the web browser I get empty
data
Hi,
The web directory of users is www_docs. How could I allow users to
access their php's using ~USER/MYphp.php
The config of my server:
Platform: Sun Sparc Solaris 2.7
WWW server: Apache 1.3.9 + mod_sll
php: php4.0.3
Thanks.
Regards
Alan
--
Alan Kong
Does anyone have any experience setting up cybercash on a RaQ3 running Perl
and PHP3 and name based hosting?
I have a client who wants to use cybercash for their ecommerce processing.
If someone has some experience setting up such a system, I'd be glad to
pay to have them work with me on this
Hello,
I need to find out what PHP stands for.
Also what is better,
ASP or PHP and who has the biggest market share.
Any help would be really great.
Thanks,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
Hi, I need some help for displaying realtime clock on my page with PHP
script.
Any ideas how to do it ?
--
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: [EM
Parsed Hypertext Processing, AFAIK.
YoBro wrote:
> Hello,
>
> I need to find out what PHP stands for.
>
> Also what is better,
> ASP or PHP and who has the biggest market share.
>
> Any help would be really great.
>
> Thanks,
>
> Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To
PHP is server side. If you want to continously display the real time on your
page, accurate to the second, you'd have to refresh every second...if you're
not concerned about to the second accuracy, you could just use the date
function with teh appropriate parameters to give you the current time wh
maybe you could find some good info on PHP vs ASP here
http://php.resourceindex.com/Documentation/Reviews_and_Analysis/PHP_vs._ASP/
regards
Ankur Verma
-Original Message-
From: YoBro [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 8:50 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Need
I am experiencing this EXACT SAME PROBLEM after upgrading PHP from 4.0.4pl2
to 4.0.5. It is ROYALLY TICKING ME OFF!!! I can't complete my site until
this stupid functionality is FIXED WTF!
""Johnson, Kirk"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
On 3 May 2001 20:19:51 -0700, YoBro <[EMAIL PROTECTED]> wrote:
> ASP or PHP and who has the biggest market share.
Which is better is a subject of some debate. Suffice it to say that most of the
people on this list will say PHP. I personally consider ASP a good idea only if
you have a heavy Micros
I think that was the first thing I tried.
It might have something to do with the actual image itself.
Images created with th PHP/GD routines come up with acceptable results.
Thanks,
Eric
Quoting Dan Lowe <[EMAIL PROTECTED]>:
> Previously, Eric Knudstrup said:
> > I am having an issue with 4.0.
"Richard Kurth" <[EMAIL PROTECTED]> wrote:
> what is obfuscation
Essentially, it means making the code hard to read, follow and locate.
> encryption
It's the coding or scrambling of data that requires decoding to be read.
MaD dUCK's other suggestions are better since he is correct in saying the
What's the best way of finding out if a specific array key is in an array?
I have an associative array which *may* look like
(car =>saab, house => mansion, countyW=> A) but can equally well look like
(boat => daycruiser, house => flat, county => B).
I want to find out if the key "car" is in the
This is bad, bad, bad. I tried using another browser as you
suggested (since I was using Netscape 4.7) and the
session_register worked. I still got different results than you
though.
Read throughout for more comments.
"Johnson, Kirk" wrote:
>
> Jennifer, there are at least two of us totally c
php-general Digest 4 May 2001 05:25:59 - Issue 665
Topics (messages 51302 through 51368):
Re: REG_BADPAT ERROR!
51302 by: CC Zona
Re: Include and require
51303 by: Johnson, Kirk
51305 by: Philip Olson
File Uploads and Get Method
51304 by: Omar Elkassir
Christian Reiniger wrote:
>
> On Thursday 03 May 2001 08:53, Jennifer wrote:
>
> > I have a shopping cart that allows decimal points for quantities.
> > I like it like that, but would like to remove any trailing zeros
> > and if the quantity is not a fraction I would like to remove the
> > dec
> What's the best way of finding out if a specific array key is in an array?
> I have an associative array which *may* look like
> (car =>saab, house => mansion, countyW=> A) but can equally well look like
>
> (boat => daycruiser, house => flat, county => B).
>
> I want to find out if the key "
Hello,
I seem to be having some difficulty understanding why the following function skips
every 5th array item,
basically the following function takes two parameters category and an array, when
placed inside a table it will generate
links based on the array items splitting the table into colum
Hi,
i additional found out, that every time i get the "network error" message i
also get a error message in the apache error log.
FATAL: emalloc(): Unable to allocate 8426419 bytes
What does this mean, and what can i do?
It´s every time the same amount of bytes.
Please help,
claudia
> Hi
Hey guys,
Just a quick quesiton I was asked by someone here at work for a database im
working on. Is there any system which people have been able to utilise
Javascript or another method to map out a keyboard shortcut to do
something. Either making it process a submit button to a PHP script, or
At 01:39 04.05.01 -0400, you wrote:
Ok Jennifer lets do some "basics" ;-)
>I've done some searching on the php site for more info about
>double and float etc, but I don't really understand anything I
>found. Can someone give me an explanation about the difference
>between decimal, float, double?
> > What's the best way of finding out if a specific array key is in an
array?
> > I have an associative array which *may* look like
> > (car =>saab, house => mansion, countyW=> A) but can equally well look
like
> >
> > (boat => daycruiser, house => flat, county => B).
> >
> > I want to find out
Hi there assume that I had a password field in md5 format like this
$1$uJ8d$jJKOHnfh^79824/.
how do i compare an input password to the password that I sore in database
so it can return right or wrong password
thanks
Yamin Prabudy
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Hi All
Anybody got an idea how I can get an XML file through a proxy.
I tried fsockopen with a a GET request but this does not give me what I want
:)
Thx
Haemelinck Steve
Personal:
Haemelinck.be - Developers Unite :)
Junior WebDeveloper
http://www.haemelinck.be:8080/
[EMAIL PROTECTED]
Work:
M
Get Input password into $pwd
Get hashed password from db into $hashed_pwd
do compare like:
if (md5($pwd) == $hashed_pwd) { // good! }
""Yamin Prabudy"" <[EMAIL PROTECTED]> wrote in message
004901c0d462$ff394240$[EMAIL PROTECTED]">news:004901c0d462$ff394240$[EMAIL PROTECTED]...
> Hi there assume
MTV Jams wrote:
> http://www.mp3.com/mcpedro from [EMAIL PROTECTED]
>
> The question is this, If you placed a Jamaican born MC on a Hip
> Hop/Trance/Techno track and told him to flow without losing his yard
> essence (Jamaican Vibes), what would you get? Most likely confusion of
> course,
Brandon Orther wrote:
> menu on the new Cobalt XTR server admin section. If anyone has a
> JavaScript or a tutorial how to make a drop down menu please send me a
> link.
try http://www.webreference.com/dhtml/
cheers,
Hrishi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-m
101 - 156 of 156 matches
Mail list logo