Re: [PHP] session continue

2001-03-06 Thread Matthieu Le Corre
Le Mercredi 7 Mars 2001 22:12, vous avez écrit : > I forgot to mention that I am using php3. Hum my response was for PHP4 for PHP3 I don't kown ... maybe the same > Jack > [EMAIL PROTECTED] > "There is nothing more rewarding than reaching the goal you set for > yourself" -- _

Re: [PHP] session_start

2001-03-06 Thread Matthieu Le Corre
Le Mercredi 7 Mars 2001 09:11, vous avez écrit : > Le Mercredi 7 Mars 2001 22:05, vous avez écrit : > > People > > very basic question here, I wanna assign username onto session after the > > login succeed, I use: > > > > session_start(); > > session_register("username"); > > the syntax for ses

Re: [PHP] session_start

2001-03-06 Thread Matthieu Le Corre
Le Mercredi 7 Mars 2001 22:05, vous avez écrit : > People > very basic question here, I wanna assign username onto session after the > login succeed, I use: > > session_start(); > session_register("username"); the syntax for session_register is : session_register("session_names",var_without_qu

RE: [PHP] session_start

2001-03-06 Thread Nick Norton
To assign session variables you need to reference them by name: $username = "new_user"; -- 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]

[PHP] session continue

2001-03-06 Thread Jacky
I forgot to mention that I am using php3. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"

[PHP] session_start

2001-03-06 Thread [EMAIL PROTECTED]
People very basic question here, I wanna assign username onto session after the login succeed, I use: session_start(); session_register("username"); $UserNameSession="username"; did not work what is wring with this? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal

Re: [PHP] Installation on RH6.2: help!

2001-03-06 Thread David Robley
On Wed, 7 Mar 2001 17:54, Les Neste wrote: > Hi all, > > I'm in the process of my first installation of PHP and running into a > problem. Any experts, feel free to chime in with your knowledge. > > After I unzip it, I run the configure script. Here's the command line > I use and the error I get

[PHP] Installation on RH6.2: help!

2001-03-06 Thread Les Neste
Hi all, I'm in the process of my first installation of PHP and running into a problem. Any experts, feel free to chime in with your knowledge. After I unzip it, I run the configure script. Here's the command line I use and the error I get: ./configure --with-mysql=/var/lib/mysql --with-apxs .

[PHP] How to get oid after table insert? [postgresql]

2001-03-06 Thread Allen Unrau
Hello. I am working on a site using PHP (obviously) and PostgreSQL. I am currently using the oid as a key on a table. I would like to return the user to the same record after INSERTing it, but I cannot figure out how to get the oid of the record after doing an INSERT. Ideally, I would like so

Re: [PHP] Session not destroying properly

2001-03-06 Thread Robert Cooper
I'm running the following to kill a session, and haven't had any problems with it yet... try >session_start(); >before the if statement - otherwise it will always be FALSE...btw the >'unset()' is redundant i think. > >- Original Message - >From: "Mike Yuen" <[EMAIL PROTECTED]> >To: "troge

Re: [PHP] Session not destroying properly

2001-03-06 Thread Andrew Halliday
try session_start(); before the if statement - otherwise it will always be FALSE...btw the 'unset()' is redundant i think. - Original Message - From: "Mike Yuen" <[EMAIL PROTECTED]> To: "trogers" <[EMAIL PROTECTED]> Cc: "Yasuo Ohgaki" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesd

Re: [PHP] Session not destroying properly

2001-03-06 Thread Mike Yuen
Thanks for the suggestion, I tried that and it still doesn't seem to be working. Here's what i've got so far on my page (index.php). Hope you can see something I don't. Thanks, Mike On Tue, 6 Mar 2001, trogers wrote: > > Hi > You will need to kill the session data on the exit of your failed

Re: [PHP] exec timing out, want to leave process running in bg

2001-03-06 Thread Mukul Sabharwal
Hi, Well there are many ways to run a process in the background, my favorite way is detaching the process or the program or process from within, so if it's a c program pretty easy, but incase you dont have the source, then you can use this: exec("mp3123 -y -Z --all 1>/dev/null/ 2>&1 &"); well t

Re: [PHP] Next month

2001-03-06 Thread Jason Brooke
Hi Tyler - did you check the date functions in the manual? date() with the 'n' format let's you grab the month's ordinal from a unix timestamp, and mktime() let's you easily create unix timestamps $next_mon = date("n", mktime(0,0,0,date("m")+1)); jason > Hello, > > How do I get the number of

[PHP] Value of if(isset(X)) problem

2001-03-06 Thread Martin Skjöldebrand
Sorry bout the length I'm a newbie to PHP/MySQL so bare with me ... Here's a snippet of an app I'm hacking. I have a form that should update a client form. the cl_ are taken from a database table and works nicely. The point of this that they should possibly be replaced by txtXXX and put

[PHP] Next month

2001-03-06 Thread Tyler Longren
Hello, How do I get the number of the next month (Ex: 4). And when the current month reaches 12, the next month would be 1 and the next year would be 2002. Anybody know how I can accomplish this? Thanks, Tyler Longren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] MySQL help URGENT

2001-03-06 Thread David Robley
On Thu, 8 Mar 2001 02:38, Deependra B. Tandukar wrote: > Greetings! > > I am trying to compile MySQL. what I did are: > tar -xvzf mysql-3.23.33.tar.gz > cd mysql-3.23.33 > ./configure --prefix=/usr/local/mysql > then it startx to work and inerrupt and says > testing gcc working: no > configure: e

Re: [PHP] removing and item out of a string

2001-03-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Brian C. Doyle") wrote: > I need to remove a comma from inside of 2 quotes ie "1,234.56" I need to > change that to "1234.56" > Unfortunatly I can not do reg_replace(",","","1,234.56"); Possibly because the function is called ereg_replace()

Re: [PHP] Still an Almost working Regex

2001-03-06 Thread CC Zona
In article <002d01c0a69a$ea2c9aa0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Murray Shields") wrote: > $Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, > $List)); > > It is definitely working as expected. > > I need to add the square brackets [ ] to the above list of all

RE: [PHP] members page

2001-03-06 Thread Scott Brown
> If you're authenticating via .htaccess you can use the > environment variable "REMOTE_USER" to use as the > username to do the select on the db. Something > like: > > $user = getenv("REMOTE_USER"); > $sql = "Select * from usertable where username = '$user'"; I'm (currently) using PHP3.0.15 and

[PHP] MySQL help URGENT

2001-03-06 Thread Deependra B. Tandukar
Greetings! I am trying to compile MySQL. what I did are: tar -xvzf mysql-3.23.33.tar.gz cd mysql-3.23.33 ./configure --prefix=/usr/local/mysql then it startx to work and inerrupt and says testing gcc working: no configure: error: installation or configure problem: c compiler can not create execut

RE: [PHP] obtain IP from other site ( or domain name)

2001-03-06 Thread Jason Murray
> I have exchange link business program with other sites, > basically I give a hyper link to come to our store to them > and when user click on the link on their site to come to us, > they will genrate income from it too. > The question is that how do I know that when a user click on > the li

[PHP] Uploading files

2001-03-06 Thread Daniel Lynn
I seem to be having a lot of trouble uploading a file using the post method. I've read through a good amount of code and tutorials and can't seem to find anything wrong with my code. We're running this in the latest PHP 3 version on two different servers (one NT and the other OpenBSD). Now, it wo

Re: [PHP] obtain IP from other site ( or domain name)

2001-03-06 Thread Philip Olson
A couple ways are : 1. Setup an affiliate link for them to use : http://www.you.com/foo.php?affiliate=them They'd stick that link on their site. Variable $affiliate will tell you the hit came from their (them) site. You log this information and analyze and fight over the validity of it wi

Re: [PHP] obtain IP from other site ( or domain name)

2001-03-06 Thread Nuno Silva
Hi, you can that a look at the REFERER header... but some browsers don't include it and is very easy to modify... If it isn't a problem for you, add the site id to the link: http://my.site.com/exchange?site=friend ...this tell's you the ID, but someone can enter it directly in the browser, too

[PHP] obtain IP from other site ( or domain name)

2001-03-06 Thread [EMAIL PROTECTED]
Hi people I have exchange link business program with other sites, basically I give a hyper link to come to our store to them and when user click on the link on their site to come to us, they will genrate income from it too. The question is that how do I know that when a user click on the link t

Re: [PHP] Creating a gif thumbnail, without the libgd1.6 or earlier version!

2001-03-06 Thread Philip Murray
Try using ImageMagick on the command line via System() or Exec() or whatever. http://www.imagemagick.org/ -=--==- -- - -- Philip Murray [EMAIL PROTECTED] - Original Message - From: "Zenith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March

[PHP] Creating a gif thumbnail, without the libgd1.6 or earlier version!

2001-03-06 Thread Zenith
How to create some thumbnail, from orginally a GIF image, to a GIF thumbnail. I dun't the libgd 1.6 or before. Or can we just use libgd1.8 , open a GIF image, and create a thumbnail with PNG format? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] How to sort a 2D array?

2001-03-06 Thread Zenith
IF: $2D[] = array ( 'name'=>"Jacky", 'year'=>"2001", 'tel'=>"982736", 'gender'=>"Male" ); $2D[] = array ( 'name'=>"Jessica", 'year'=>"1999", 'tel'=>"349291", 'gender'=>"Felmale" ); How can I sort the array by 'name' or 'year', or other key efficiently? -- PHP General Mailing List (http://www.

Re: [PHP] Templates - Perl to PHP

2001-03-06 Thread Michael Kimsal
Hola - your English is mucho better than my Spanish (or is it Portguese in Brazil?) sorry! I assume you're looking for PHP code equivalents for this, correct? Is there any reason you can't just put the code in your template? That would do it just as well. Admittedly, there's

[PHP] Templates - Perl to PHP

2001-03-06 Thread Marco Aurélio
Hello! Do you know Links 2.0 by Gossamer-Threads ? Well, this perl script uses a template engine(annexed file) based in a modification of CGI::FastTemplate that give a useful flexibility for webdesigners. The facilities are that webdesigners can use logical functions in his tags on templates (ac

Re: [PHP] Test if File Exist, if not, use default file name

2001-03-06 Thread Alan Ward
Try this: if (file_exists("filename")) { echo "Error"; } -AL > > What I would like to have the script do is to check if a variable was > passed, and to check if the file name passed actually exist. If either > case is false then I would like to have it check if the file testQA > exist and if s

[PHP] Test if File Exist, if not, use default file name

2001-03-06 Thread Andrew V. Romero
Lately I have been working on a script and my plan is to have the URL pass an initial variable to the script. So for example, the URL would be http://WhereEverServer.com?questionFileName=testQA. This variable called questionFileName is the name of a file (without the extension) that the script

[PHP] File Upload

2001-03-06 Thread Cedric Veilleux
Hi, I have problems with Post File Uploads... When trying to upload very small files it works, although my browser timeouts or I get a Server Hangup Description: Server Hangup message Is it Apache that times out? I am wondering what is causing this and what can be done.. Thank you, Cedri

[PHP] more imap problems, spec speed

2001-03-06 Thread Chris Lee
ok, Ive now been able to fetch news headers, but boy is it slow. to fetch 10 out of 430 headers your looking at 19sec. news://news.php.net/php.gtk $headers = imap_fetch_overview($this->mail_stream, "427:437"); is slow... oi. any ideas on speed ? -- Chris Lee Mediawaveonline.

Re: [PHP] MIME and headers

2001-03-06 Thread David Robley
On Wed, 7 Mar 2001 10:46, Peter Houchin wrote: > > Can some one please tell me what the relationship between mime and > email headers is I have not been able to find a straight answer off > the net ..so if any one knows of a good site can you please give me the > url so i can look at it .. t

Re: [PHP] 2 questions about performance...

2001-03-06 Thread Chris Lee
simplest answer is find out yourself. every machine will depending on config and hardware will be difffernet. start = mtime(); } function reset() { $all_vars = get_object_vars($this); foreach($all_vars as $pos => $val) if ($pos != 'error') unset($this->$pos);

[PHP] MIME and headers

2001-03-06 Thread Peter Houchin
Can some one please tell me what the relationship between mime and email headers is I have not been able to find a straight answer off the net ..so if any one knows of a good site can you please give me the url so i can look at it .. thanks Peter Houchin Sun Rentals [EMAIL PROTECTED]

[PHP] Still an Almost working Regex

2001-03-06 Thread Murray Shields
I have a working regex as below, used for validating data input: $Status = (ereg("^(^[A-Za-z0-9` !@#$%&()=:;\"\'.?/^|{}-]*)(.*)$", $String, $List)); It is definitely working as expected. I need to add the square brackets [ ] to the above list of allowed characters. However, this does not work.

Re: [PHP] are sessions single threaded?

2001-03-06 Thread Ernest E Vogelsinger
At 00:56 07.03.2001, Bill Rausch said: [snip] >What I mean is, if a user is connected to a php page that uses sessions and >that is involved in a time consuming operation (say 20 seconds or more) >before returning an answer, and the user also opens a second

[PHP] are sessions single threaded?

2001-03-06 Thread Bill Rausch
What I mean is, if a user is connected to a php page that uses sessions and that is involved in a time consuming operation (say 20 seconds or more) before returning an answer, and the user also opens a second window in the same browser to connect to another page in the same site that uses sessions

[PHP] Poll: Oppinion on get_meta_tags

2001-03-06 Thread Sean R. Bright
Ladies/Gents: I recently fixed a long standing bug in get_meta_tags and have been asked by users to fix some other issues as well. I am curious to know how many of you are actually using this function and in what way. Currently, get_meta_tags returns an associative array, like this: $resultval

Re: [PHP] passing a variable

2001-03-06 Thread Rick St Jean
George you are doing this backwards. Someone posted the code to do this the right way last night. I would use the concatination of a third variable. $field = "blah"; $loops = 10; for ($i=0; $i < $loops; $i++) { $displayField = $field . $i; echo "\n"; } Rick

[PHP] passing a variable

2001-03-06 Thread george
I am trying to build a dynamic form, and I am using the code below to let the user ,name the fields that are generated,but i want to give the user the option of changing individual field sizes but I cant get it to work. TIA george for ($i=0; $i < $fields; $i++) { $fieldName = "field$i"; ech

[PHP] 2 questions about performance...

2001-03-06 Thread Joe Sheble \(Wizaerd\)
Is it in-efficient to use shuffle()? I have a simple 6 element array with 6 strings (URLs to images) and I'm using shuffle() to display all of them in random order upon each page load. The images take a long time (of course is relative, it's mere seconds) but when I remove the call to shuffle, t

[PHP] adding support to previous build with apxs

2001-03-06 Thread Brett
About a year ago Rasmus gave instructions on how to add support to a php binary without recompiling using apxs. It was something like configure, make and copy files to somewhere or something like that. He also said it was documented in the manual but I have not been able to find any instructi

[PHP] Q: php4,cache,performance,mod_perl,zend cache, APC

2001-03-06 Thread Joe Rice
Hi, As you might gather from the subject, i'm trying to make a decision. Before that i'm doing research to find out what best fits. My question is; >From what i've read php4 does post-compilation caching, is this right? If so, what is the point of Zend Cache or APC (Alternative PHP Cache)?

RE: [PHP] e-commerce software

2001-03-06 Thread rui
hi, i think what you're looking for is something like phpshop you may find it in www.edikon.org, and it's free. On 06-Mar-2001 Justin French wrote: > Hi, > > I'm currently using a perl/CGI developed e-commerce/website management > tool which incorporates sessions (the ability to shop anywhere in

[PHP] Please Help....

2001-03-06 Thread Jeff Pearson
Warning: SQL error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length, SQL state S1090 in SQLConnect in z:\webspace\1001010\tijerascanyonward.org\www\default.php on line 30 Couldn't make a connection! I have a MS Access db setup as a DSN on a web server running NT and PHP. When I

RE: [PHP] passing variables

2001-03-06 Thread Hoover, Josh
Do you mean you want them to be able to say how long a text field should be? If so, try this: for ($i=0; $i < $fields; $i++) { $fieldName = "field$i"; echo "\n"; } $size would be a form parameter that you allow the user to set along with the field name and value. Josh Hoover K

[PHP] e-commerce software

2001-03-06 Thread Justin French
Hi, I'm currently using a perl/CGI developed e-commerce/website management tool which incorporates sessions (the ability to shop anywhere in the site, not just in a shop), members, member management, rewards points, mailing lists, statistics, and a complete separation of code and layout (so that

[PHP] passing variables

2001-03-06 Thread george
I am trying to build a dynamic form, and I am using the code below to let the user ,name the fields that are generated,but i want to give the user the option of changing the field size but I cant get it to work. TIA george for ($i=0; $i < $fields; $i++) { $fieldName = "field$i"; echo "\n";

[PHP] Problem using readfile

2001-03-06 Thread Matias Pelenur
Hi, I'm trying to use readfile to send a file to the browser. The code I'm using is: header("Content-length: $size"); header("Content-type: $type"); header("Content-disposition: attachment;filename=$filename"); readfile($filename); It works fine for very small files, but for larger files it seem

RE: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Jon Snell
Be very careful with this construct. It is generally a bad idea to do any sort of file opening/loading where the file name comes directly from user input. If you were naive enough to use this line: include("$page.txt"); I could call your php script with ?page=http://mysite.com/dumpyourdatabase

[PHP] Problem with either timing or large data structures...

2001-03-06 Thread Eric Nielsen
I'm not exactly sure what is causing the behavior, but I suspect its either a timing or memory issue. My development machine is stronger than the server the code is being deployed on which is what leads to me to suspect one of the above problems. I have a function that creates a very large html

php-general Digest 6 Mar 2001 21:50:45 -0000 Issue 551

2001-03-06 Thread php-general-digest-help
php-general Digest 6 Mar 2001 21:50:45 - Issue 551 Topics (messages 42730 through 42814): Re: PHP LDAP & SSL 42730 by: Stig Venaas 42732 by: Matthieu Le Corre 42733 by: Stig Venaas 42735 by: Matthieu Le Corre 42736 by: Stig Venaas 42764 by: Ma

RE: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Nick Norton
Just put the following instead of a long switch and keep your file naming conventions consistent include("side_$page.txt"); -- 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 adminis

Re: [PHP] mailing list.

2001-03-06 Thread Chris Lee
use news.php.net it rocks. no huge bulk email in your box after a weekend. no funky re-pley, nice. -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED] "Rick St Jean" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

Re: [PHP] mailing list.

2001-03-06 Thread Rick St Jean
I am using 4 but there is no reply to in the headers. They should have it where you click reply and it replys to the list... not the person that wrote the email. That is what mine is doing. It may be that there are so many posts that this keeps the post numbers down. I was just wondering. R

[PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Martin Hughes
My God!! You're all stars!!! (This is the **fastest** mailing list I've ever joined) If I have *loads* of links (not just audio & visual) is there a way to create a file to include them all? Basically - what I've got is a frameset with side & main frames (side is for nav, main is for... well,

[PHP] exec timing out, want to leave process running in bg

2001-03-06 Thread pkshifted
I'm trying to develop a front-end using php for mpg123 so that various members of my household don't need to access a shell to start/play music. I'm using something similiar to exec('$null'), w/ $null being equal to "mpg123 -y -Z --all >/dev/null/ &". The problem I'm having, is about 5 minutes

[PHP] Creating bw png images

2001-03-06 Thread Alexandre Hautequest
Hi all. To not use anymore gif, i switch my gd lib to 1.8, but i need to generate 2 colors png graphics, but i just got 16-bit images. Is there any place/function/variable i can set to achieve this? TIA. -- Alexandre Hautequest hquest at fesppr.br Fundação de Estudos Sociais do Paraná - http://

[PHP] mailing list.

2001-03-06 Thread Rick St Jean
Does this mailing list run off PHP? Does anyone find it a pain to have to cut and paste the url of the list into the to bar again and again? I am using Eudora, and I am just wondering if it is me. What mail server are they using? qmail or sendmail? Rick #

Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Rick St Jean
This will allow you to have more control over what pages get edited... but you can use something a little easier like... At 09:02 PM 3/6/01 +, you wrote: >Hi Martin, > >It's important to know that "Stuff" in the Url like this are just >variables. For example : > > foo.php?fruit=apples&

Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Phil Driscoll
There are loads of different ways to spit out a text file. The easiest is readfile($Filename) which does exactly what you want, providing that the file already contains sanitised html (eg instead of newlines etc. If not, you could use fread to get the file contents into a variable and then proc

RE: [PHP] Redirect using PHP to a "new" browser window.

2001-03-06 Thread Nick Norton
If the only thing you plan on doing after incrementing your counter is going to the new page, why not put the target="_blank" in the tag that points to your script. Then you'll do your counter script and redirect when you're already in a new window. -- PHP General Mailing List (http://www.php

Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Philip Olson
Hi Martin, It's important to know that "Stuff" in the Url like this are just variables. For example : foo.php?fruit=apples&dog=snoopy&others=huh&more=yep Now with foo.php we can do this (a few exceptions) : echo "$dog would like to each some $fruit"; And in your case, you have $page so

Re: [PHP] [A bit OT but not] Anchors and Query strings

2001-03-06 Thread Phil Driscoll
The # goes at the end of the URL after the query string stuff. Once there, it should be easy to strip off the joe by looking for the last # in the string (not that there will be more than 1!). Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonl

Re: [PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Jason Murray
Use include(). Like http://www.jwebmedia.com/ 1 877 525 jWEB -- 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]

[PHP-CVS] cvs: php4 /ext/zlib php_zlib.h zlib.c

2001-03-06 Thread Zeev Suraski
zeevTue Mar 6 12:43:55 2001 EDT Modified files: /php4/ext/zlib zlib.c php_zlib.h Log: Implement internal output compression0:wq Index: php4/ext/zlib/zlib.c diff -u php4/ext/zlib/zlib.c:1.74 php4/ext/zlib/zlib.c:1.75 --- php4/ext/zlib/zlib.c:1.74

[PHP] Please Help!!!! - Really BASIC stuff!

2001-03-06 Thread Martin Hughes
Hi, Could someone please help me? If I have links on my page: Link 1 Here Link 2 Here And then side.php is the following: Blah Where the files to be included are: audio.txt and visual.txt respectively, what php code should I put in my side.php? (the extention of the

[PHP] [A bit OT but not] Anchors and Query strings

2001-03-06 Thread Boget, Chris
I need to set up a link that has both. However, IE/NS isn't liking this: www.mydomain.com/thispage.php#joe?thisvar=thatvalue I need to pass "thisvar" into thispage.php and use it to determine information to display. I also need to pass the anchor name "joe" so the page jumps down to that ancho

[PHP] object->method() chaining

2001-03-06 Thread The Doctor What
I'm currently working on the DB project from h*ll. Why? Because a lot of the tables of the normalized DB are mapped into objects and PHP's object support questionable at best. I've worked around the lack of multiple inheritance, and some of the other problems. But the inability to do something

[PHP] Newbie question about how to detect mime/type

2001-03-06 Thread MRossland
Hi all, I was wondering how I could detect if a file is an image (jpg or gif or png) file? I’m running this on an NT box, but I don’t want to rely on the file extension. Is there a way? Thanks for any help, --Mark

Re: [PHP] background processing / forking

2001-03-06 Thread Mukul Sabharwal
Disclaimer: The following post contains C code for *nix! Viewer discretion recommended! Hi, I'm back, I couldn't resist you mentioning C, so as you did, big fault, the code that follows is probably much better than exec, as an stderr terminal will still be attached, but anyway: exec("your

[PHP] imap functions

2001-03-06 Thread Chris Lee
anyone have any code snippits or urls you could share on the imap functions? Ive got it to list all pop/imap/nttp folders on a server with a username/password, I can view pop/imap msgs, no attachemtns yet, and can not list nntp headers for some reason. the whole imap deal looks great but doesnt

[PHP-CVS] cvs: php4 /ext/standard output.c

2001-03-06 Thread Zeev Suraski
zeevTue Mar 6 11:38:33 2001 EDT Modified files: /php4/ext/standard output.c Log: Fix freeing of buffers Index: php4/ext/standard/output.c diff -u php4/ext/standard/output.c:1.47 php4/ext/standard/output.c:1.48 --- php4/ext/standard/output.c:1.47 Tu

Re: [PHP] Background processing / forking

2001-03-06 Thread Anders Johannsen
> Now the problem is that the C program will be running > for longs periods like maybe half or even an hour. So > i would basically want to just execute the program and > return control to the script immediately so that the c > program continues it's work. > > it's easy with forking. but i dont se

Re: [PHP] Background processing / forking

2001-03-06 Thread Mukul Sabharwal
Hi Natasha, Well the probably easiest shitty way to do it is: exec("theprogram 1> /some/file 2>&1 &"); would exec()ute theprogram and will put it's output in /some/file and stderr's output also in the /some/file, and & at last signifies the backgroundness of the program. however as you mention

[PHP] Redirect using PHP to a "new" browser window.

2001-03-06 Thread John Huggins
List, I current use something like this to send some one who clicks on my links to the actual web page. $row = @mysql_fetch_array($result); $url = $row["url"]; $ID = $row["ID"]; header("Location: $url"); header(""); And then the hitcounter for that particular ID is incremented, t

RE: [PHP] removing and item out of a string

2001-03-06 Thread Doug Brewer
what about preg_replace("(\d),(\d)", "$1$2",$your_string); to replace every occurence of a comma surrounded by digits? This works with 4.04, prior to that the "replace" string would by "\\1\\2". Doug | -Original Message- | From: Brian C. Doyle [mailto:[EMAIL PROTECTED]] | Sent: Tuesda

RE: [PHP] Auto Prepend/Append

2001-03-06 Thread Boget, Chris
> Try putting > > php_value auto_prepend_file "foo.php" > > in your httpd.conf file. Once you put this in the conf file > for Apache, restart Apache and see if the changes take place. > That should do what you want it to. Unfortunately, no. Here is what we have in our httpd.conf file:

RE: [PHP] Auto Prepend/Append

2001-03-06 Thread Hoover, Josh
Chris, Try putting php_value auto_prepend_file "foo.php" in your httpd.conf file. Once you put this in the conf file for Apache, restart Apache and see if the changes take place. That should do what you want it to. Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution f

[PHP-CVS] cvs: php4 /ext/standard output.c

2001-03-06 Thread Zeev Suraski
zeevTue Mar 6 10:29:00 2001 EDT Modified files: /php4/ext/standard output.c Log: Fixes to internal output buffering Index: php4/ext/standard/output.c diff -u php4/ext/standard/output.c:1.46 php4/ext/standard/output.c:1.47 --- php4/ext/standard/output.c

[PHP] Background processing / forking

2001-03-06 Thread Natasha
hey, i wanted to know if there's a fork function in php, cause i don't see it in the manual. I basically wanna call a C program from PHP. Now the problem is that the C program will be running for longs periods like maybe half or even an hour. So i would basically want to just execute the progra

Re: [PHP] removing and item out of a string

2001-03-06 Thread Rick St Jean
I really suck with Regular expression but what if you did a replacement on 1, and replaced it with 1 2, and replaced it with 2 3, and replaced it with 3 Kind of a cheap workaround. ?? Rick At 01:07 PM 3/6/01 -0500, Brian C. Doyle wrote: >Hello all, > >I need to remove a comma from inside of 2 q

RE: [PHP] Auto Prepend/Append

2001-03-06 Thread Boget, Chris
> >Is it possible to use the auto prepend/append directives to > >prepend/append particular files only to files with a particular > >extension? > I don't believe you can do this directly with PHP but you > probably can with > Apache: > > php_value prepend_file "foo.php" >

[PHP] strtotime question

2001-03-06 Thread Jason Murray
Hi there, $ob->date is '2000/03/06'. $d = ereg_replace('([0-9]*)-([0-9]*)-([0-9]*)', '\2/\3/\1', $ob->date); $d is now '03/06/2000'. $foo = getdate(strtotime($d)+86400); Here I have to add an entire day to the value of strtotime($d) to get the expected results for below. ec

[PHP] removing and item out of a string

2001-03-06 Thread Brian C. Doyle
Hello all, I need to remove a comma from inside of 2 quotes ie "1,234.56" I need to change that to "1234.56" Unfortunatly I can not do reg_replace(",","","1,234.56"); This is inside a csv file. Brian C. Doyle Coach Team Force Earthlink Technical Support [EMAIL PROTECTED]

[PHP-CVS] cvs: php4 /ext/midgard mgd_internal.h midgard.c

2001-03-06 Thread David Guerizec
davidg Tue Mar 6 09:56:17 2001 EDT Modified files: /php4/ext/midgard mgd_internal.h midgard.c Log: added ability to break tree walking Index: php4/ext/midgard/mgd_internal.h diff -u php4/ext/midgard/mgd_internal.h:1.8 php4/ext/midgard/mgd_internal.h:1.9

Re: [PHP] Calling Perl from PHP -- Help --

2001-03-06 Thread Julian Wood
I think you're looking for passthru (or perhaps system or exec). If your php is like this: and hello.pl is like this: #!/usr/bin/perl print 'Args:'.join(' ', @ARGV); Your web page will read: Args:yay You'll probably need to change the method of input (to use @ARGV instead of <>) on your Po

Re: [PHP-CVS] cvs: php4 /ext/midgard sitegroup.c

2001-03-06 Thread Jon Parise
On Tue, Mar 06, 2001 at 08:12:52AM -, Emiliano Heyns wrote: > emile Tue Mar 6 00:12:52 2001 EDT > > Modified files: > /php4/ext/midgard sitegroup.c > Log: > Bug #123 I assume this fixed _Midgard_ bug #123, not _PHP_ bug #123. Could you please distinguish b

Re: [PHP] How to tell if client has cookies turned off?

2001-03-06 Thread Rick St Jean
you can check the HTTP_COOKIE_VARS array after setting a cookie to see if anything is placed in there. Rick At 08:52 AM 3/6/01 -0800, Chris Adams wrote: >On 6 Mar 2001 07:53:46 -0800, kevin1 <[EMAIL PROTECTED]> wrote: > >How can I tell reliably if someone has cookies turned off? > >Set a cookie

Re: [PHP] time()

2001-03-06 Thread Philip Olson
Hi Augusto, This is a quick hack (nobody freak out please!) that will hopefully explain this question and your other recent thread. Without further ado, play with this : 60*60*24, 'week' => 60*60*24*7, 'month' => 60*60*24*30, 'year'

[PHP] recursive problem

2001-03-06 Thread Doug Brewer
Hello, I've got a script that recurses to build a path name (it's more complex than that). The script uses static variables to do this. Based on certain conditions, the script might cause a redirect. I find that when the script redirects, the value of the static variable is not reset, and I get

Re: [PHP] Set ODBC Timeout Value

2001-03-06 Thread Andrew Hill
Karl, ODBC drivers typically have a timeout configuration. Decreasing that may solve your problem. Best regards, Andrew --- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com On 3/6/0

[PHP] GD Image failure on WindowsNT - Unable to Open temporary File

2001-03-06 Thread John E. Haag
Hi All, First, a general thanks for the helpfulness of everyone in the PHP community over the years. Question: I am using PHP under Windows for the first time, and I'm getting an error message when trying to create images (any kind) using GD. The error is: imagepng: unable to open temporary f

Re: [PHP] How to tell if client has cookies turned off?

2001-03-06 Thread Rick St Jean
Something else to consider is that if someone is kinda smart they can place the variable into the url. So, if it is important you may want to put a checksum or token in there. Rick At 08:52 AM 3/6/01 -0800, you wrote: >On 6 Mar 2001 07:53:46 -0800, kevin1 <[EMAIL PROTECTED]> wrote: > >How can

Re: [PHP] time and date function

2001-03-06 Thread Nick Davies
Just convert the time to unixtime and - 5*60 (5 mins). On Tue, 6 Mar 2001, Augusto Cesar Castoldi wrote: > > Can I do any "subtraction" with times and/or dates on php or mysql? > > I have two times (HH:MM:SS). And I want to know if there is a diference of > 5 min between the times. > > Is t

Re: [PHP] here's a tricky one (well for me)

2001-03-06 Thread george
Thanks Chris george -- 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]

  1   2   >