[PHP] AFter the URL in PHP

2004-01-23 Thread Randy Johnson
Hello, I am not sure if this is a php thing or not but hope is... I see some sites like this: www.domain.com/tree where tree is not a directory for example www.domain.com/tree/ would not work the word tree above is not really a directory but a username or id or whatever Anybody know

[PHP] Using templates (Code & User Interface)

2004-01-23 Thread Hamid Hossain
Hi, Always I have a problem that I don't know how to make my code away from the user interface files. I tried to use some template classes, but I did'nt like what I tired because some if statments are used inside the template. How can I prepare my code to be working in more that one template?

RE: [PHP] what PHP really needs

2004-01-23 Thread Hamid Hossain
As a ColdFusion Certified Developer I can say: You are right! In CF you can fire a sql statment and store its result in a variable which is not going to be removed from the server's memory after responding to the user. That variable will be available for sometime declared by you when you create

Re: [PHP] can't figure out this mysql error

2004-01-23 Thread Jason Wong
On Saturday 24 January 2004 01:07, Chris W. Parker wrote: > on Friday, January 23, 2004 8:54 AM said: > > All of what you say makes sense. Hopefully your suggestion will help > > me find the problem! > > In looking through my code I see that I already do this. EVERY call to a > mysql function

Re: [PHP] Session time-out value

2004-01-23 Thread Jason Wong
On Saturday 24 January 2004 05:46, Pushpinder Singh wrote: >I tried to keep a .htaccess file in the Dir that my application > esided in and kept the session lifetime of about 8 hrs. However I > checked to see after 2 hr and it had already kicked me out of the > system. Please advise. Does you

Re: [PHP] How do you set up table columns for numerals?

2004-01-23 Thread David OBrien
normally auto_increment fields need to be of a number type not varchar -Dave At 11:30 PM 1/23/2004, Freedomware wrote: Giz wrote: I looked at your page. First off, you should add a primary key column that has no information in it. Just make this a number(4) called state_id. OK, I gave it anothe

[PHP] porting perl scripts to php

2004-01-23 Thread [EMAIL PROTECTED]
Hi, I was wondering if there is an easy way to port perl scripts to php, or maybe someone could recommend someone who could help me? Thanks, Al -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do you set up table columns for numerals?

2004-01-23 Thread Freedomware
Giz wrote: I looked at your page. First off, you should add a primary key column that has no information in it. Just make this a number(4) called state_id. OK, I gave it another try, but I don't see where I type in "4." When I clicked Save, I got an error message: "This is not a number!" but i

RE: [PHP] How do you set up table columns for numerals?

2004-01-23 Thread Giz
I looked at your page. First off, you should add a primary key column that has no information in it. Just make this a number(4) called state_id. Then you will be able to specify that it's auto_increment. The problem you had is that you tried to make a varchar column auto_increment which makes n

Re: [PHP] what PHP really needs

2004-01-23 Thread Jason Sheets
Chris Boget wrote: I'm not really sure and am possibly wa off base but...cant something like this also be done by using "global" for variables? No, not really. That wouldn't be accessable by all users, which, as it turns out, is what the OP had asked for. Chris Like someone else ment

Re: [PHP] Function for crypt and decript.

2004-01-23 Thread Justin French
On Friday, January 23, 2004, at 08:55 PM, <[EMAIL PROTECTED]> wrote: Hi all, are in PHP, functions for crypt and decrypt string? I would to use this function in my script in PHP, how can I use this? I need of an example for use this and a list of this function. Thanks in advance. READ THE MANUAL

Re: [PHP] Securing php from rogue php scripts

2004-01-23 Thread David T-G
Adrian, et al -- ...and then Adrian Teasdale said... % % Hi there Hi! % % I have been reading about certain php scripts that, if used incorrectly, % can compromise servers. There are certain open source scripts that I Interesting. % know if (no names mentioned) that have exploits that allo

[PHP] How do you set up table columns for numerals?

2004-01-23 Thread Freedomware
I'm having some roblems creating a table with phpMyAdmin. I think they're pretty minor problems, mostly relating to numerals. Would someone be willing to look at my notes at http://geowebworks.geobop.org/mysql/3.php - especially the last picture - and suggest what I need to do to fix it? It's

RE: [PHP] Importing Text into Database - Can you recommend a tutorial?

2004-01-23 Thread Giz
CSV just stands for comma separate values. CSV support is pretty common as a way of moving data between applications, and most all spreadsheets support it. It's just a text file like this: Value1,value2,value3 Sometimes you might have a string delimiter like so: Value1,value2,"string 1 here",v

[PHP] "Additional Features for working with linked Tables have been deactivated."

2004-01-23 Thread Freedomware
It looks like all the databases I view with phpMyAdmin feature the following error message: "The additional Features for working with linked Tables have been deactivated. To find out why click here." When I click the link, I get this: Database mysql running on localhost $cfg['Servers'][$i]['p

RE: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Robin Kopetzky
> Microsoft's lawyers probably could've handled it more tactfully, but > they were required to take action. Simple solution to a complex problem - Follow William Shakespeare's outlook or the joke 'What's a thousand lawyers at the bottom of the ocean called? - A good start...' Robin 'Sparky' Kopet

Re: [PHP] what PHP really needs

2004-01-23 Thread John W. Holmes
Justin Patrin wrote: Then you could use a serialized file in the filesystem that any app can read. For added speed, make a RAM-disk and store the file there. Slight overhead deserializing, but it's likely faster than recreating whatever it is (if it's large). Then you've still got to worry abou

[PHP] Re: Why we love Microsoft (0t)

2004-01-23 Thread Freedomware
Ryan A wrote: Hey all, heres something really interesting about that lovely company called microsoft...(heard of them?) Anyway, a 17yr old kid by the name of Mike Rowe opens up a webdesigning company and names it MikeRoweSoft . . . a couple of days later he gets an email from microsoft's lawyers t

RE: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread E. Stuart Hicks
Oops. Make that 'there *aren't* many other collective groups...'. My typing's a bit off today. -Original Message- From: E. Stuart Hicks [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 6:26 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Why we love Microsoft (0t) Between Amazon.c

RE: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread E. Stuart Hicks
Between Amazon.com, SCO, UCITA, the Microsoft antitrust case, and many other 'incidents' thus far, there are many other collective groups of people that understand trademark and copyright law better than us geeks. Our field is growing fast and promises to be lucrative as it matures and redefines l

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread John Nichel
jon wrote: I'm not sure if it's obvious to you geeks, but for those who don't know trademark law, you need to defend your trademark or it falls into the public domain. Hence, if Canon's copiers refer to how well they xerox, then it's a problem. (Same way for Jello, Kleenex, etc...) Microsoft's law

RE: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread jon
I'm not sure if it's obvious to you geeks, but for those who don't know trademark law, you need to defend your trademark or it falls into the public domain. Hence, if Canon's copiers refer to how well they xerox, then it's a problem. (Same way for Jello, Kleenex, etc...) Microsoft's lawyers probab

Re: [PHP] what PHP really needs

2004-01-23 Thread Justin Patrin
John W. Holmes wrote: From: "Chris Boget" <[EMAIL PROTECTED]> [snip] [/snip] Learn and use C++ Or sessions. Along with serialize() and deserialize(), all are your friends in this case. He's talking about the same set of data being available to all instances of PHP, though. I think they're c

Re: [PHP] pass by reference

2004-01-23 Thread Justin Patrin
Kevin Waterson wrote: This one time, at band camp, Tom Rogers <[EMAIL PROTECTED]> wrote: php can output the stream without having to save it to a file first if that is what is worrying you. That was sorta my concern, but not so much as a file, does it copy to memory anywhere, or, is it a dire

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Ryan A
Hey, I totally disagree, this does not disgust me just because this guy is 17, it would even if a 40yr old *millionaire* went through the same thing, I would think it wrong For example, I firmly believe that a farmer growing and selling apples it totally within his rights to have a website apple.tl

[PHP] PHP script to help write documentation (not from source, though!!)

2004-01-23 Thread John W. Holmes
Hi all. Does anyone know of any good programs to help write documentation? I'm not looking for things like phpdoc that read/parse the comments of the source code and create documentation, though. I'm looking for something to help me write something like the MySQL manual with chapter, images, links

[PHP] Question about PEAR::raiseError use in XML_RPC client

2004-01-23 Thread Luis Cruz
Greetings; I recently grabbed the latest source for XML_RPC from CVS for use with a project I am working on. I grabbed the latest source rather than the stable build mainly because it includes a handy base class that defines a raiseError method. However, I am puzzled by own thing. XML_RPC_Bas

Re: [PHP] Why we love Microsoft (0t) - JELLO

2004-01-23 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As a humorous sidenote, I meant to say: let's hope that Windows (a registered trademark brand of Microsoft) doesn't get to the level of name recognition where the consumer refers to all graphical desktops as "Windows." ;-) Roger Spears wrote: | Anothe

Re: [PHP] Why we love Microsoft (0t) - JELLO

2004-01-23 Thread Roger Spears
Another big one is Jello It's a brand if I'm not mistakenthe product is gelatin Jello brand gelatin but all forms of pudding and gelatin are sometimes referred to as Jello... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HEAD method in PHP 4.1.2

2004-01-23 Thread Lucas Gonze
Hello PHP world, I need to fetch headers via a HEAD request. This is doable via context options as of PHP 5.0.0, but the PHP on this server is 4.1.2. Upgrading PHP is not an option. Does anybody know a way to do this? I realize I can write my own HTTP client requests, but doing a good job w

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Copyright and trademark are two wholly separate things. The Kimberly-Clark Corporation has a registered trademark on the name and logo for Kleenex. Thus, no one else has a right to use the word "Kleenex" to describe their product. That, however, does

Re: [PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
Hello All, I tried to keep a .htaccess file in the Dir that my application esided in and kept the session lifetime of about 8 hrs. However I checked to see after 2 hr and it had already kicked me out of the system. Please advise. Thanks in advance Pushpinder Singh On Friday, January 23, 2004

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Tim Thorburn
At 04:00 PM 1/23/2004, you wrote: Hey all, heres something really interesting about that lovely company called microsoft...(heard of them?) Anyway, a 17yr old kid by the name of Mike Rowe opens up a webdesigning company and names it MikeRoweSoft (say it out loud..if you're really daft not to get it

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Ryan A
> Can I hijack an OT thread? NO, you may not. May you get boils and blisters all over your body for doing so and burn in hell for 300 years. Hehe, just kidding, I dont mind but if you do it to some of the others here they might not like it. >..then your professor may grade it. Of course, th

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Brian V Bonini
On Fri, 2004-01-23 at 16:00, Ryan A wrote: > Hey all, > heres something really interesting about that lovely company called > microsoft...(heard of them?) > Remarkable isn't it, I saw that article a few days ago. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] what PHP really needs

2004-01-23 Thread Chris Boget
> I'm not really sure and am possibly wa off base but...cant something > like this also be done by using "global" for variables? No, not really. That wouldn't be accessable by all users, which, as it turns out, is what the OP had asked for. Chris -- PHP General Mailing List (http://www.php

Re: [PHP] what PHP really needs

2004-01-23 Thread Ryan A
Hey, I'm not really sure and am possibly wa off base but...cant something like this also be done by using "global" for variables? Cheers, -Ryan On 1/23/2004 9:33:55 PM, John W. Holmes ([EMAIL PROTECTED]) wrote: > From: "Chris Boget" <[EMAIL PROTECTED]> > > > >>[snip] > > >> > > >>[/snip]

[PHP] Why we love Microsoft (0t)

2004-01-23 Thread Ryan A
Hey all, heres something really interesting about that lovely company called microsoft...(heard of them?) Anyway, a 17yr old kid by the name of Mike Rowe opens up a webdesigning company and names it MikeRoweSoft (say it out loud..if you're really daft not to get it just be reading it)..then regist

Re: [PHP] what PHP really needs

2004-01-23 Thread Chris Shiflett
--- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > He's talking about the same set of data being available to all > instances of PHP, though. I think they're called Application Variables. Yes, this is what he was talking about, which I think most people seem to have misunderstood to be something el

RE: [PHP] Segmentation fault problem

2004-01-23 Thread E. Stuart Hicks
Didn't help. I did, however, narrow it down to one line, though. This consistently crashes PHP with a seg fault. Stu -Original Message- From: E. Stuart Hicks [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 11:46 AM To: 'Martin Luethi'; [EMAIL PROTECTED] Subject: RE: [PHP] S

RE: [PHP] what PHP really needs

2004-01-23 Thread Marlon Moyer
> -Original Message- > From: PHP general > Sent: Friday, January 23, 2004 1:43 PM > To: [EMAIL PROTECTED] > Subject: [PHP] what PHP really needs > > > I've heard there's a feature like this in Cold Fusion, which every > Cold Fusion user seems to think of as the holy grail, and I would

RE: [PHP] Apology (Re: what PHP really needs)

2004-01-23 Thread Chris W. Parker
John Nichel on Friday, January 23, 2004 12:30 PM said: > Seems I struck a cord with some of the people on this mailing list > with my Cold Fussion, ASP/.NET comment. I forgot to put my little > smirk ;) after the comment. To those that I offended, I'm sorry. > Jus

Re: [PHP] Apology (Re: what PHP really needs)

2004-01-23 Thread Clint Tredway
Hey, no biggie.. MS people should get hacked at least once a day... :) John Nichel wrote: Seems I struck a cord with some of the people on this mailing list with my Cold Fussion, ASP/.NET comment. I forgot to put my little smirk ;) after the comment. To those that I offended, I'm sorry. Jus

[PHP] Re: XML to PDF with XSL

2004-01-23 Thread Ammar Ibrahim
If this is Possible, Please Tell me, i'm also very interested in this. Or if you know any method to 'find and replace' a string in a PDF file please also tell me e.g, i want to replace all occurnces of [name] with "John" From a PDF file on the server, when i open it ofcourse it won't have [name] a

Re: [PHP] what PHP really needs

2004-01-23 Thread John W. Holmes
From: "Chris Boget" <[EMAIL PROTECTED]> > >>[snip] > >> > >>[/snip] > >Learn and use C++ > > Or sessions. > Along with serialize() and deserialize(), all are your friends in this case. He's talking about the same set of data being available to all instances of PHP, though. I think they're cal

[PHP] Apology (Re: what PHP really needs)

2004-01-23 Thread John Nichel
Seems I struck a cord with some of the people on this mailing list with my Cold Fussion, ASP/.NET comment. I forgot to put my little smirk ;) after the comment. To those that I offended, I'm sorry. Just a FYI though, it's in my contract that I must hack on the MS people at least once a day.

[PHP] Re: Suggestion on executing external programs from within php

2004-01-23 Thread Jas
Using system in this manner may work for small scripts/programs that only need authentication of the webserver. But for something like restarting a service I use a shell script run as a cron job then just call a system("touch /path/to/temp/file") which the cronjob looks at to see if it should

Re: [PHP] what PHP really needs

2004-01-23 Thread Mike Migurski
>>> There's 1 really important thing missing in PHP as I see it, and it's >>> the ability to keep variables in memory for as long as the programmer >>> choose. If this was possible there could be some truly great >>> optimizations done. Some things are very slow to create but very fast >>> to work

Re: [PHP] what PHP really needs

2004-01-23 Thread John Nichel
> On Fri, 2004-01-23 at 12:42, PHP general wrote: > >> There's 1 really important thing missing in PHP as I see it, and it's the >> ability to keep variables in memory for as long as >> the programmer choose. If this was possible there could be some truly great >> optimizations done. Some things

Re: [PHP] what PHP really needs

2004-01-23 Thread Ray Hunter
You can use shared memory too...only on *nix flavors though. -- Ray On Fri, 2004-01-23 at 12:42, PHP general wrote: > There's 1 really important thing missing in PHP as I see it, and it's the > ability to keep variables in memory for as long as > the programmer choose. If this was possible there

Re: [PHP] Re: simple ?- load page after submit

2004-01-23 Thread John Nichel
Matt Hedges wrote: John, yes, it's from an auto incremement field in MySQL the id comes from a new db entry... i really appreciate your help, Matt Please reply to the group, and not just me. This way, other people who may have the same problem can find the answer in the archives. If it's from

Re: [PHP] what PHP really needs

2004-01-23 Thread Chris Boget
>>[snip] >> >>[/snip] >Learn and use C++ Or sessions. Along with serialize() and deserialize(), all are your friends in this case. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what PHP really needs

2004-01-23 Thread Jay Blanchard
[snip] [/snip] Learn and use C++ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
John W. Holmes wrote: If you just change the session.save_path variable for one site on your box to something like /tmp/onesite, do you still have to write your own garbage routine? Wont the autamatic php garbage collection know to only cleanup sessions in the /tmp/onesite directory? Is the gar

[PHP] Re: Suggestion on executing external programs from within php

2004-01-23 Thread Ammar Ibrahim
maybe if you put Call1 and Call2 in seprate PHP files, and you call both of them. i guess it would work Ammar "John Clegg" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I would like to be able to execute 2 system calls simultaneously. I am > not interested in the output and

[PHP] what PHP really needs

2004-01-23 Thread PHP general
There's 1 really important thing missing in PHP as I see it, and it's the ability to keep variables in memory for as long as the programmer choose. If this was possible there could be some truly great optimizations done. Some things are very slow to create but very fast to work with. I wrote a XML

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
John W. Holmes wrote: From: "John Nichel" <[EMAIL PROTECTED]> php_value session.gc_maxlifetime "number of seconds" I'm really curious to see if any of this really works. I know it _should_, but... Assuming a shared/virtual server where all session files for all sites are in the same location. W

[PHP] Test

2004-01-23 Thread Ammar Ibrahim
Test Message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: file download using header (SOLVED)

2004-01-23 Thread Joshua Minnie
I found the solution, I ended up instead of using readfile, use fopen and fpassthru. Here is the code that solved the problem > Okay, I found a solution to part one of my questions by changing my headers, > but for some reason I am still getting a fractional download of the file. > Most commonly

Re: [PHP] Ques: Conflicting functions in two include files.

2004-01-23 Thread Chris Shiflett
--- Robert Cummings <[EMAIL PROTECTED]> wrote: > IMHO encapsulating functions in objects provides decent namespacing > functionality. I can't really see a large need beyond what classes > provide. True that then there's still an issue with class names, but > that's less frequent a collision. I thi

Re: [PHP] Session time-out value

2004-01-23 Thread John W. Holmes
> If you just change the session.save_path variable for one site on your > box to something like /tmp/onesite, do you still have to write your own > garbage routine? Wont the autamatic php garbage collection know to only > cleanup sessions in the /tmp/onesite directory? Is the garbage collection

[PHP] IE corrupts JPEG at HTML upload, imagecreatefromjpeg() doesn't work after upload

2004-01-23 Thread Torsten Roehr
Hi there, I am experiencing a strange problem with IE 5.0 while uploading a JPEG file. Somehow IE changes/corrupts the file so that imagecreatefromjpeg() doesn't work after the upload and triggers an error. If I upload the picture with Opera 7.22 or Mozilla everything is fine. Client is Windows (

[PHP] Access Violation at 77FCC61F?

2004-01-23 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone know what this error means: PHP has encountered an Access Violation at 77FCC61F I'm running PHP 5.0 beta 3 on IIS 5.0 on a Win2K machine. I received the above error message multiple times after changing addslashes($value) to str_replace("'", "

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
I'm really curious to see if any of this really works. I know it _should_, but... Assuming a shared/virtual server where all session files for all sites are in the same location. When the garbage collector is triggered by a request to the site with this setting in .htaccess, does it honor this se

Re: [PHP] Ques: Conflicting functions in two include files.

2004-01-23 Thread Robert Cummings
On Fri, 2004-01-23 at 12:02, Chris Shiflett wrote: > --- Al <[EMAIL PROTECTED]> wrote: > > I have a page that calls functions from two different include files. > > Unfortunately, some of the functions have the same name; but are > > slightly different. > > > > I know I can change the names of

RE: [PHP] drop downs

2004-01-23 Thread Vail, Warren
If you are looking for something to plagiarize, I would start with; http://www.hotscripts.com/JavaScript/Scripts_and_Programs/index.html and there is always google to find other sources. good luck, Warren Vail -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Fri

Re: [PHP] drop downs

2004-01-23 Thread John W. Holmes
From: "Mark Luquette" <[EMAIL PROTECTED]> > I am migrating a site that used cold fusion. > > It used a mouseover feature that dropped a > box with links that responded to additional > mouseover features. > This is not a right side down arrow form like box. > > Any php scripts that do this ? That

Re: [PHP] Session time-out value

2004-01-23 Thread John W. Holmes
From: "John Nichel" <[EMAIL PROTECTED]> > php_value session.gc_maxlifetime "number of seconds" I'm really curious to see if any of this really works. I know it _should_, but... Assuming a shared/virtual server where all session files for all sites are in the same location. When the garbage colle

[PHP] drop downs

2004-01-23 Thread Mark Luquette
I am migrating a site that used cold fusion. It used a mouseover feature that dropped a box with links that responded to additional mouseover features. This is not a right side down arrow form like box. Any php scripts that do this ? Thanks, Mark L.

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
Pushpinder Singh wrote: Actually the user is only allowed to get to any page if he has logged on. Thus all the remaining pages check to see if a session has been registered, if so then the person is allowed to to go on with his session. If the session did not exist he is redirected to a login p

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
Also if I were to create a .htaccess file that is kept in the same dir as the application, what do I need to include in that file ? something like: php_value session.gc_maxlifetime 25000 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: file download using header

2004-01-23 Thread Joshua Minnie
Okay, I found a solution to part one of my questions by changing my headers, but for some reason I am still getting a fractional download of the file. Most commonly it's about 16.6KB of a 4MB file. The kicker is it says that it completed successfully. Here is the modified code: > I am having som

Re: [PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
Actually the user is only allowed to get to any page if he has logged on. Thus all the remaining pages check to see if a session has been registered, if so then the person is allowed to to go on with his session. If the session did not exist he is redirected to a login page. Do you still sugges

RE: [PHP] Re: simple ?- load page after submit

2004-01-23 Thread Katie Dewees
Matt Hedges wrote: > When I put the code below, I get a "can't send header" error. > > I tried changing the echo to page, but > the page brings up page.php?id= (id = nothing). If it says it can't send the headers, that means that headers have already been outputted. PHP automatically sends head

Re: [PHP] Re: simple ?- load page after submit

2004-01-23 Thread John Nichel
Matt Hedges wrote: That doesn't work... I think the problem may be because I don't have the id defined anywhere in the code (but it automatically writes it to MySQL). Huh? Is this from an auto increment field in MySQL...when a new user signs-up? When I put the code below, I get a "can't send he

RE: [PHP] How do I regain the ability to create databases

2004-01-23 Thread Chris W. Parker
Freedomware on Friday, January 23, 2004 3:19 AM said: > HOWEVER, it said the better method was to type in either "http" or (I > can't remember the second choice offhand). I think I did it on line > 133 (see below. Just to clarify. The difference between the two meth

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
Pushpinder Singh wrote: Thanks much John, I have about 8 different pages that are all session linked. Do I have to add this ini_set() at the beginning of all the session_start() calls on all these pages. You should only have to do it for the first time session_start() is called, but not knowi

Re: [PHP] Session time-out value

2004-01-23 Thread Matt Matijevich
I have about 8 different pages that are all session linked. Do I have to add this ini_set() at the beginning of all the session_start() calls on all these pages. Not 100% sure, but I think if you dont add ini_set() before all of your session_start() calls, session.gc_maxlifetime would get se

[PHP] Re: simple ?- load page after submit

2004-01-23 Thread Matt Hedges
That doesn't work... I think the problem may be because I don't have the id defined anywhere in the code (but it automatically writes it to MySQL). When I put the code below, I get a "can't send header" error. I tried changing the echo to page, but the page brings up page.php?id= (id = nothing).

[PHP] php4apache.dll - compiled version with -DEAPI

2004-01-23 Thread Baudin JF
Hi, I'm looking for a compiled version of php4apache.dll for win32 with the -DEAPI option. Can you tell me where i can find it for download ? Thanks Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] can't figure out this mysql error

2004-01-23 Thread Chris W. Parker
Chris W. Parker <> on Friday, January 23, 2004 8:54 AM said: > All of what you say makes sense. Hopefully your suggestion will help > me find the problem! In looking through my code I see that I already do this. EVERY call to a mysql function has "or die($this->stop("$current_line:".__LINE__)

Re: [PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
Thanks much John, I have about 8 different pages that are all session linked. Do I have to add this ini_set() at the beginning of all the session_start() calls on all these pages. Thanks again and I am sorry if my question sounded lame. Pushpinder Singh On Friday, January 23, 2004, at 11:49

Re: [PHP] Ques: Conflicting functions in two include files.

2004-01-23 Thread Chris Shiflett
--- Al <[EMAIL PROTECTED]> wrote: > I have a page that calls functions from two different include files. > Unfortunately, some of the functions have the same name; but are > slightly different. > > I know I can change the names of the conflicting functions; but, that > is a bit of a chore. I

Re: [PHP] sessions not registering inside a function.

2004-01-23 Thread Jarratt Ingram
Thank you John, I did manage to get it working by calling global $AuthUser after i ran the function on the main page and it seems to have resolved the issue. have a good weekend J On Fri, 2004-01-23 at 16:38, John W. Holmes wrote: > From: "Jarratt Ingram" <[EMAIL PROTECTED]> > > > I have cre

Re: [PHP] Ques: Conflicting functions in two include files.

2004-01-23 Thread John Nichel
Al wrote: I have a page that calls functions from two different include files. Unfortunately, some of the functions have the same name; but are slightly different. I know I can change the names of the conflicting functions; but, that is a bit of a chore. Is it possible to control from which in

RE: [PHP] can't figure out this mysql error

2004-01-23 Thread Chris W. Parker
Jason Wong on Thursday, January 22, 2004 8:49 PM said: > The if-clause will never be evaluated because if there had been an > error your program would have dieded on the previous line. Heh.. yeah I thought about that as I was examining the code for this post. But th

Re: [PHP] simple ?- load page after submit

2004-01-23 Thread Matt Matijevich
Or, correctly: header("Location: http://www.yourdomain.com/personalpage.php?id=$id";); to add to what john said, you could make it a little easier to move your script from place to place if you use some php variables and the dirname function. this comes right from the manual: http://"; . $_S

[PHP] Ques: Conflicting functions in two include files.

2004-01-23 Thread Al
I have a page that calls functions from two different include files. Unfortunately, some of the functions have the same name; but are slightly different. I know I can change the names of the conflicting functions; but, that is a bit of a chore. Is it possible to control from which include f

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
Pushpinder Singh wrote: Thanks John, I dont have rights t change this value for my webserver. I only want this value to be changed for my application. Is there a way to take care of this ? Thanks again !! Pushpinder Before you call session_start() ini_set ( "session.gc_maxlifetime", "num

RE: [PHP] Segmentation fault problem

2004-01-23 Thread E. Stuart Hicks
Interesting. Well, ulimit replies 'unlimited' so I guess that's not the problem. I do have an older version of PCRE, though, so we'll see if upgrading from 4.3 to 4.5 and then rebuilding the module helps. Stu -Original Message- From: Martin Luethi [mailto:[EMAIL PROTECTED] Sent: Frida

Re: [PHP] simple ?- load page after submit

2004-01-23 Thread John W. Holmes
From: "Katie Dewees" <[EMAIL PROTECTED]> > Matt Hedges wrote: > > I want when they hit submit for it to take them to their page > > (personalpage.php?id=$id)... > > header("Location: personalpage.php?id=$id"); Or, correctly: header("Location: http://www.yourdomain.com/personalpage.php?id=$id";);

Re: [PHP] Session time-out value

2004-01-23 Thread John W. Holmes
From: "Pushpinder Singh" <[EMAIL PROTECTED]> > I dont have rights t change this value for my webserver. I only want > this value to be changed for my application. Is there a way to take > care of this ? Thanks again !! You can use an .htaccess file or (maybe) ini_set() (before session_start()!!)

Re: [PHP] sessions not registering inside a function.

2004-01-23 Thread John W. Holmes
From: "Jarratt Ingram" <[EMAIL PROTECTED]> > I have created a login system, which works as expected on php 4.2. When > i was asked to move it onto an older server using 4.0.6, the system > stopped registering sessions. > > main page: > > function login($username, $password){ > global $HTTP_SESSIO

RE: [PHP] simple ?- load page after submit

2004-01-23 Thread Katie Dewees
Matt Hedges wrote: > Hello, > > I've built a page where someone can enter in their information... > currently, when they hit submit, a screen comes back and says "thanks > for entering your info. (echo "Thank you! Information entered.\n";)" > > I want when they hit submit for it to take them to

[PHP] simple ?- load page after submit

2004-01-23 Thread Matt Hedges
Hello, I've built a page where someone can enter in their information... currently, when they hit submit, a screen comes back and says "thanks for entering your info. (echo "Thank you! Information entered.\n";)" I want when they hit submit for it to take them to their page (personalpage.php?id=$

[PHP] sessions not registering inside a function.

2004-01-23 Thread Jarratt Ingram
Hello All, I have created a login system, which works as expected on php 4.2. When i was asked to move it onto an older server using 4.0.6, the system stopped registering sessions. main page: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
Thanks John, I dont have rights t change this value for my webserver. I only want this value to be changed for my application. Is there a way to take care of this ? Thanks again !! Pushpinder On Friday, January 23, 2004, at 11:28 AM, John Nichel wrote: Pushpinder Singh wrote: Hello All, I

Re: [PHP] Session time-out value

2004-01-23 Thread John Nichel
Pushpinder Singh wrote: Hello All, I am using php and Mysql in my application. The problem is that the system automatically logs the user out of the system after 24 minutes. I would like to extend the session lifetime to about 2-3 hrs. I know there is a way to do it using a .htaccess file kept

Re: [PHP] Session time-out value

2004-01-23 Thread John W. Holmes
From: "Pushpinder Singh" <[EMAIL PROTECTED]> > I am using php and Mysql in my application. The problem is that the > system automatically logs the user out of the system after 24 minutes. > I would like to extend the session lifetime to about 2-3 hrs. I know > there is a way to do it using a .htac

[PHP] Session time-out value

2004-01-23 Thread Pushpinder Singh
Hello All, I am using php and Mysql in my application. The problem is that the system automatically logs the user out of the system after 24 minutes. I would like to extend the session lifetime to about 2-3 hrs. I know there is a way to do it using a .htaccess file kept in the same folder as t

  1   2   >