RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
> -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();

Re: [PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
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

[PHP] Session Problems....HELP!!!!

2001-05-03 Thread Bruno Freire
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/

RE: [PHP] Session Problems....HELP!!!!

2001-05-03 Thread Johnson, Kirk
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

Re: [PHP] Session Problems....HELP!!!!

2001-05-03 Thread Nikhil Goyal
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: > >

RE: [PHP] Session Problems....HELP!!!!

2001-05-03 Thread Altunergil, Oktay
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:

RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
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

Re: [PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
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

[PHP] PHP Training Course Offered - June 25th

2001-05-03 Thread Keith Elder
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.

Re: [PHP] PHP Training Course Offered - June 25th

2001-05-03 Thread Fred
*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

RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
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

[PHP] parsing "problem" with 4.0.5

2001-05-03 Thread Ken
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

[PHP] authentication to https server

2001-05-03 Thread Wei Weng
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,

[PHP] install issue with 4.0.5

2001-05-03 Thread Jerry Lake
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

Re: [PHP] Returning Lowest Number Not In Array

2001-05-03 Thread Phillip Bow
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

[PHP] Finding the point

2001-05-03 Thread Chris Mason
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.

Re: [PHP] install issue with 4.0.5

2001-05-03 Thread Martín Marqués
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

[PHP] GetImageSize() problem...

2001-05-03 Thread Eric Knudstrup
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

[PHP] enable-trans-sid

2001-05-03 Thread Walgamotte, David
I upgraded from 4.0.4 to 4.0.5 and trans sid no longer works. Any ideas ? DW

Re: [PHP] Finding the point

2001-05-03 Thread Henrik Hansen
"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

[PHP] simple database extraction problem :(

2001-05-03 Thread Sandeep Hundal
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

[PHP] Protecting programs

2001-05-03 Thread Richard Kurth
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

Re: [PHP] Protecting programs

2001-05-03 Thread Dave Mariner
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

Re: [PHP] Protecting programs

2001-05-03 Thread MaD dUCK
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

Re[2]: [PHP] Protecting programs

2001-05-03 Thread Richard Kurth
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

Re: [PHP] simple database extraction problem :(

2001-05-03 Thread Phillip Bow
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.

RE: [PHP] simple database extraction problem :(

2001-05-03 Thread Jack Dempsey
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

[PHP] % always return int?

2001-05-03 Thread Christian Dechery
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

[PHP] Getting the first part out of a string

2001-05-03 Thread Richard Kurth
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

[PHP] HELP can not see data or tables in database

2001-05-03 Thread Richard Kurth
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

[PHP] Running from user home directory

2001-05-03 Thread Alan Kong
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

[PHP] cybercash and php3

2001-05-03 Thread Tobe Johnson
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

[PHP] Need to know this

2001-05-03 Thread YoBro
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: [

[PHP] Real Time

2001-05-03 Thread Budi
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

Re: [PHP] Need to know this

2001-05-03 Thread [EMAIL PROTECTED]
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

RE: [PHP] Real Time

2001-05-03 Thread Jack Dempsey
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

RE: [PHP] Need to know this

2001-05-03 Thread Ankur Verma
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

Re: [PHP] session_register()

2001-05-03 Thread Jon Peccarelli
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]... >

Re: [PHP] Need to know this

2001-05-03 Thread Chris Adams
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

Re: [PHP] GetImageSize() problem...

2001-05-03 Thread Eric Knudstrup
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.

Re: Re[2]: [PHP] Protecting programs

2001-05-03 Thread Steve Werby
"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

[PHP] Searching for array keys

2001-05-03 Thread Martin Skjöldebrand
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

Re: [PHP] session_register()

2001-05-03 Thread Jennifer
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 -0000 Issue 665

2001-05-03 Thread php-general-digest-help
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

Re: [PHP] Working with numbers

2001-05-03 Thread Jennifer
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

Re: [PHP] Searching for array keys

2001-05-03 Thread mailing_list
> 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 "

[PHP] array 2 links

2001-05-03 Thread Joseph Blythe
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

[PHP] emalloc message

2001-05-03 Thread claudia
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

[PHP] Keyboard Hotkeys

2001-05-03 Thread Chris Aitken
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

Re: [PHP] Working with numbers

2001-05-03 Thread Oliver Heinisch
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?

Re: [PHP] Searching for array keys

2001-05-03 Thread Mark Charette
> > 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

[PHP] MD5 password

2001-05-03 Thread Yamin Prabudy
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

[PHP] Gettting an XML file through a proxy

2001-05-03 Thread Steve Haemelinck
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

Re: [PHP] MD5 password

2001-05-03 Thread elias
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

Re: [PHP] BET News

2001-05-03 Thread Hrishi
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,

Re: [PHP] OT-Please bare with me :)

2001-05-03 Thread Hrishi
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

<    1   2