Re: [PHP] phpinfo

2002-05-22 Thread Jason Wong
On Thursday 23 May 2002 14:23, Dennis Gearon wrote: > has anyone tried to eval() php info to prevent it from being displayed > so it could be processed for config checking, instead? Try: ob_start(); phpinfo(); $doo = ob_get_contents(); # $doo holds the output of phpinfo() ob_end_clean();

[PHP] phpinfo

2002-05-22 Thread Dennis Gearon
has anyone tried to eval() php info to prevent it from being displayed so it could be processed for config checking, instead? Since what version have the 'subsections' of phpinfo() been available, like phpinfo(INFO_CONFIGURATION); ? --

[PHP] Undefined function Sybase_affected_rows

2002-05-22 Thread Vivek Kumar Agrawal
Hi All, I am unable to call Sybase_affected_rows() function. As I know this function is defined in Sybase CT libraries. So I have installed Sybase via RPM and then configured php with following command ./configure --with-apxs=/the/path/you/like/to/install/apache/bin/apxs --with-sybase-ct=/opt

[PHP] PHP version 4.2 and above

2002-05-22 Thread Opere, James
Hi all. I have aproblem with php >= 4.2.I'm working on graphics but when i install php4.2, i get an error that it doesn't support GD library. Is there anybody who has any idea as to how it can be possible to use the above versions and still run my scripts successfully? Currently i'm using phpdev4

Re: [PHP] ini-options

2002-05-22 Thread Dennis Gearon
What version was magic_quotes_sybase added? -- - Joy is just a thing (to be).. raised on, Love is just the way to Live and Die, John Denver. - He

Re: [PHP] ini-options

2002-05-22 Thread Dennis Gearon
if only there were, 'get_magic_quotes_sysbase();' Jason Wong wrote: >On Thursday 23 May 2002 11:49, Dennis Gearon wrote: >> Is there any way before PHP4 to read: >> magic_quotes_xxx >> settings so that I know what is happening to data escaping? > >get_magic_quotes_gpc() & get_magic_quotes_r

[PHP] Re: functions and scoping

2002-05-22 Thread Michael Virnstein
Why not simply define a set of variables for root dir and the other directories, and use full paths in your includes? $root = "/wwwroot/mydomain/public/"; $homepageroot = "/"; $mydir = "subdir/"; now you can do: include $rootpath.$mydir."inc.php"; and ">Link or ">Link Regards Michael "Dav

RE: [PHP] Quick query question

2002-05-22 Thread Jason Soza
Well it just keeps getting better. I hit reply-to and the response went here. I apologize for this and my earlier off-topic post. I made a blatant mistake in judgement. Jason Soza -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:21 PM To: [E

RE: [PHP] Quick query question

2002-05-22 Thread Jason Soza
I think I'm a little more embarrassed than anything - I don't get upset! Thanks for letting me know, though. BTW, did you know that www.gremlins.com.hk doesn't turn up anything? I get a "Cannot find server or DNS error" -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] ini-options

2002-05-22 Thread Jason Wong
On Thursday 23 May 2002 11:49, Dennis Gearon wrote: > Is there any way before PHP4 to read: > magic_quotes_xxx > settings so that I know what is happening to data escaping? get_magic_quotes_gpc() & get_magic_quotes_runtime() seems to run on most versions of php. -- Jason Wong -> Gremlins

[PHP] ini-options

2002-05-22 Thread Dennis Gearon
Is there any way before PHP4 to read: magic_quotes_xxx settings so that I know what is happening to data escaping? -- - Joy is just a thing (to be).. raised on, Love is just the way to Live and Die, J

Re: [PHP] ONE BANG - Apache, PHP, GD, ZLib,MySql, Perl

2002-05-22 Thread Jason Wong
On Thursday 23 May 2002 20:01, r wrote: > Greetings people, > Special greetings to all of you who have helped me, sorry I have not > written your names but this list is so helpful that if I wrote all the > names down you would have to scroll 2 pages I guess. > > Anyway, I am changing residence and

[PHP] Quick query question

2002-05-22 Thread Jason Soza
Alliteration at its finest... This is slightly off-topic, so please reply offlist. It's a MySQL question that I'm hoping someone can help me with. I figure since a large portion of PHP programmers also use MySQL, this is a valid question to at least -post- here. If I'm completely off about this,

Re: [PHP] Can I delete / update line inside the file ?

2002-05-22 Thread Manisha
Thanks to all to give me good start. I will try out now. Manisha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multi line string replace

2002-05-22 Thread Aaron
Kinda solved it. Basically wanted to do a mass replace on html stored in db. They are all the same. I Just got strpos of a page from the db. and used that string as $match. works fine. must be some character in there that means I cant match it. But then I would expect not being able to match

Re: [PHP] Can I delete / update line inside the file ?

2002-05-22 Thread Philip Olson
> I am thinking - I will take the data in an array first - change it and > flush back to file again. Is there any command to flush back the whole > array in to file (each array element will become one line) or do I need to > write one by one line ? see file() and implode() where you'll implod

RE: [PHP] Can I delete / update line inside the file ?

2002-05-22 Thread John Holmes
Implode() the array into a single string and write that string. Use file() to read your file, find the line in the array you need to change, change it, and re-write the file. Be aware of simultaneous access and the possible problems of two people trying to write the file at the same time. You m

Re: [PHP] Can I delete / update line inside the file ?

2002-05-22 Thread Manisha
It is not possible to get the database as client is not ready for that (Can't help it - you know). I am thinking - I will take the data in an array first - change it and flush back to file again. Is there any command to flush back the whole array in to file (each array element will become one

Re: [PHP] Can I delete / update line inside the file ?

2002-05-22 Thread Bogdan Stancescu
Get a database working! That's definitely worth investing some time in - apart from the obvious speed avdantages, you'd learn a lot. About your question, AFAIK you can only do it by reading from one file and writing to a temp file, then moving the temp over the original - pretty clumsy, if you

[PHP] Can I delete / update line inside the file ?

2002-05-22 Thread Manisha
Hi, I have one file with following format No. | Name | Email | status 1 | Manisha | [EMAIL PROTECTED] | Pending 2 | Neha | [EMAIL PROTECTED] | Reject 3 | Aish | [EMAIL PROTECTED] | Pending ... I want to update status change against that line. e.g For sr no 1 - I want to change the status

RE: [PHP] multi line string replace

2002-05-22 Thread Peter
can we have a looky at ur actual code for this? might help us to let you know where exactly the problem is with ur code... -Original Message- From: Aaron [mailto:[EMAIL PROTECTED]] Sent: Thursday, 23 May 2002 7:41 PM To: [EMAIL PROTECTED] Subject: [PHP] multi line string replace cant

[PHP] multi line string replace

2002-05-22 Thread Aaron
cant seem to get it to work say this is the string " " replace with "hello". problem is, i cant even get other functions to get the position of the string. No problems finding or matching replacing " " or "" but together no luck. strstr,

Re: [PHP] Any execute time limit ?

2002-05-22 Thread Bogdan Stancescu
http://www.php.net/manual/en/function.set-time-limit.php Something many people seem to overlook is this phrase in that page: "When called, *set_time_limit()* restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a

[PHP] Any execute time limit ?

2002-05-22 Thread Manisha
Hi, I am writing an Email blast program. (100 emails at a time). I believe it will take quiet some time. Whether there is any time limit set internally for executing script ? Last time ASP had given some problem - used to come out saying Execution time exceeds - I want know what about PHP ?

Re: [PHP] How to get contents of symbol table?

2002-05-22 Thread Philip Olson
See: http://www.php.net/get_defined_vars Regards, Philip Olson On Thu, 23 May 2002, William_dw -- Sqlcoders wrote: > Hi there!, > I'm looking for a way to loop through the symbol table. > > In other words I want to be able to loop through every variable defined in > the local scope. > >

RE: [PHP] B R A I N F R E E Z E !

2002-05-22 Thread Shane
Thanks gang echo("mm".$moreChocolate) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Problem : track_vars stopped working.

2002-05-22 Thread Philip Olson
To help clear things up for a few: > The globals that PHP sets up have changed since since PHP 4.2.x > See: http://www.php.net/release_4_2_0.php Note, this is only the default value for the fully configurable PHP directive register_globals. Please read: http://www.php.net/manual/en/securit

[PHP] How to get contents of symbol table?

2002-05-22 Thread William_dw -- Sqlcoders
Hi there!, I'm looking for a way to loop through the symbol table. In other words I want to be able to loop through every variable defined in the local scope. I've looked through the manual, but either I couldn't find a function which can do this or I wasn't looking in the right place. If anyon

[PHP] Re: Need help accessing the values of an array in a form ...

2002-05-22 Thread John Kelly
"John Kelly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "John Kelly" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, I have a form using the post method that outputs a dynamic number of > > fields each time with

Re: [PHP] B R A I N F R E E Z E !

2002-05-22 Thread Thalis A. Kalfigopoulos
On Wed, 22 May 2002, Shane wrote: > Too Many HOURS!!! > Too Little M&Ms!! > Forgot... Brain... Ouch! > > Someone please remind me, what the hell the syntax for the short hand of the PHP "IF >THEN" statement is where multiple variables need to be checked > > if($foo == "Panda" and $bar == "bear

[PHP] B R A I N F R E E Z E !

2002-05-22 Thread Shane
Too Many HOURS!!! Too Little M&Ms!! Forgot... Brain... Ouch! Someone please remind me, what the hell the syntax for the short hand of the PHP "IF THEN" statement is where multiple variables need to be checked if($foo == "Panda" and $bar == "bear){ doWhatever(); } Thanks gang! - Shane -- PHP

Re: [PHP] Making varibles (more than one) with a function.

2002-05-22 Thread Sqlcoders.com Programming Dept
Sqlcoders.com Dynamic data driven web solutions - Original Message - From: "David Duong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: May 22 2002 04:21 PM Subject: [PHP] Making varibles (more than one) with a function. > I am aware that return can return strings but is their a set

[PHP] Re: Need help accessing the values of an array in a form ...

2002-05-22 Thread John Kelly
"John Kelly" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, I have a form using the post method that outputs a dynamic number of > fields each time with the same name but different values - this is required. > For example ... > > filename[] > filename[] > f

Re: [PHP] Learning PHP

2002-05-22 Thread Justin French
The manual is excellent, once you ask the right question, or know where to look. It is a bit daunting as a newbie resource. However, the search engine does help in finding a specific function. The best way to get to that point is to work on some tutorials (even for things you don't need immedia

[PHP] Need help accessing the values of an array in a form ...

2002-05-22 Thread John Kelly
Hi, I have a form using the post method that outputs a dynamic number of fields each time with the same name but different values - this is required. For example ... filename[] filename[] filename[] filename[] On the next page I try to access the array using ... for($i=0; $ihttp://www.php.net/)

[PHP] Apache Doesn't' Process php Files

2002-05-22 Thread Bruce Vander Werf
I am having trouble getting Apache to process php files through the PHP interpreter. When I view a *.php file in a browser, I see my PHP source. I am running Apache 1.3.20 on a RAQ4. The web server was installed before I became involved in this project. I have successfully installed PHP 4.1.2 a

[PHP] Making varibles (more than one) with a function.

2002-05-22 Thread David Duong
How could I have a function create variables that can be used in other functions? _Example_: makevars() { list($md5,$pusername,$pproject,$pfile) = explode(":",$authok); $user = $pusername; $project = $pproject; $file = $pfile; } function display () { makevars(); echo "$user,$project,$file"; } I

Re: [PHP] Learning PHP

2002-05-22 Thread r
Hey, Welcome to PHP. I too am a newbie, I agree, php.net is too damn complex for a newbie, I would suggest starting off on webmonkey as its really easy and has some great examples for the beginner, then you can try to download the PHP manual from php.net. Nearly everyone I spoke to swears by the

[PHP] ONE BANG - Apache, PHP, GD, ZLib,MySql, Perl

2002-05-22 Thread r
Greetings people, Special greetings to all of you who have helped me, sorry I have not written your names but this list is so helpful that if I wrote all the names down you would have to scroll 2 pages I guess. Anyway, I am changing residence and computers soon, I once read a few days back on the

[PHP] Learning PHP

2002-05-22 Thread Darren Edwards
hi ppl i am learning PHP and was wondering if there is a good book or web site that i could learn ALOT from. Not PHP.net coz the documentation is just too complex there for a beginner. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL INSERT concatonating one of my values for seemingly no reason...

2002-05-22 Thread Kevin Stone
Nevermind. Three hours after embarking on my voyage to insanity I finally figured it out. If I type cast the variables as strings the error dissapears. I've never had this problem before though.. so its still a bit of a mystery since the data stored in the variables are most certainly strings a

Re: [PHP] tmpfile() errors?

2002-05-22 Thread Jas
Ok I am going to put the entire class here for review... I am not the original author, simply trying to get it to work because I think its pretty neat: Here is the file, asciiartist.php: If you scroll down the page I have commented where the error occurs using * ERRORS * * @version 1.1 2

[PHP] functions and scoping

2002-05-22 Thread David Huyck
I am trying to define a function that is *like* the standard PHP "include()" function but is slightly different, but I am running into trouble with varible scoping. The idea is this: I want to mimic "include()" in a way such that when I include a file, it can then include files relative to itsel

[PHP] MySQL INSERT concatonating one of my values for seemingly no reason...

2002-05-22 Thread Kevin Stone
I have an array containing data from a search engine index. The array contains only two values.. "word" and "pages" which will be stored in a MySQL table. $index[$i]['word'] //contains the keyword. $index[$i]['pages'] // contains a comma delimited list of pages the keyword exists on. If you

Re: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Evan Nemerson
Ah it would be a good idea to use the hash as a checksum- especially if you encrypt in ECB On Wednesday 22 May 2002 01:30 am, Jimmy Lantz wrote: > >I believe that twofish has been successfully broken, so use blowfish > >instead. Typically, for encrypting files you will use an algorithm like > >

Re: [PHP] Mcrypt: Blowfish or Twofish or no fish?

2002-05-22 Thread Evan Nemerson
Ah, when was twofish broken??? That's news to me if it's true. http://www.counterpane.com/twofish.html http://www.counterpane.com/about-twofish.html On Wednesday 22 May 2002 00:43 am, John Horton wrote: > Hi, > I believe that twofish has been successfully broken, so use blowfish > instead.

Re: RE: RE: [PHP] Mcrypt: Blowfish or Twofish or no fish? part 3

2002-05-22 Thread Evan Nemerson
Um, it hasn't been proven as the best algorithm. It merely hasn't been broken... yet. Actually, many people think IDEA is better. According to Bruce Schneier (creator of blowfish and twofish), "...it is the best and most secure block algorithm available to the public at this time..." (Applied

Re: Re: Re: [PHP] Full-Duplex communication

2002-05-22 Thread Evan Nemerson
You're right- this is getting interesting ;) http://www.packetfactory.net/libnet/manual/4.html#s4.1.5 Unless I'm mistaken, you don't need to actually hijack the socket- you merely need to write to the network. Check out section 3.1 of RFC 793. There is source and destination port- that is how

Re: [PHP] PDF w/ large blocks of text.

2002-05-22 Thread Jason Wong
On Thursday 23 May 2002 03:03, Seth Northrop wrote: > Has anyone devised a good solution for handling large blocks of text when > creating pdfs? > > We want to convert otherwise web displayed reports into text keeping in > mind that they span multiple pages (10-1000), and will contain control > ch

Re: [PHP] ini_set('display_errors',1) not working.

2002-05-22 Thread Jason Wong
On Thursday 23 May 2002 04:46, Jeff Bearer wrote: > Update, I can see the errors if I make a fatal error. but not if it's a > parse error. in the php.ini I'm using the default error_reporting: > E_ALL & ~E_NOTICE > > I sill have no explanation as to why. The error reporting is for catching run-t

Re: [PHP] tmpfile() errors?

2002-05-22 Thread 1LT John W. Holmes
You're not even trying to open a file. You're trying to open a Resource, which makes me think that fopen() is being called twice or something. You obviously have something very wrong. Can you show the code around these lines where you're trying to open the file? All of the errors are because of t

Re: [PHP] ini_set('display_errors',1) not working.

2002-05-22 Thread Jeff Bearer
Update, I can see the errors if I make a fatal error. but not if it's a parse error. in the php.ini I'm using the default error_reporting: E_ALL & ~E_NOTICE I sill have no explanation as to why. On Wed, 2002-05-22 at 11:24, Jeff Bearer wrote: > I have the following in my php.ini file: > > dis

RE: [PHP] tmpfile() errors?

2002-05-22 Thread James E. Hicks III
I'd check the owner of the directory you are trying to write to. It needs to be owned by the same user as the httpd process runs as. James -Original Message- From: Jas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] tmpfile() errors?

[PHP] tmpfile() errors?

2002-05-22 Thread Jas
Here are the errors I am recieving: Warning: fopen("Resource id #4","wb") - Permission denied in /path/to/asciiartist.php on line 295 Warning: Supplied argument is not a valid File-Handle resource in /path/to/asciiartist.php on line 296 Warning: Supplied argument is not a valid File-Handle resou

RE: [PHP] voting using text files

2002-05-22 Thread Vail, Warren
Someone saw the value of turning the function you cite into error_log($msg, $type, $dest, $hdr) because it encapsulated a lot of features and approaches into one function. why not functions to initialize/reset polls, log votes, produce counts of votes, and stratify the vote choices (perhaps retu

[PHP] Error in Configuring PHP 4.2.1 httpd.h cannot be found

2002-05-22 Thread Nelson . Broat
Hi, I'm getting errors when trying to install PHP 4.2.1 on Solaris 2.8 with as a Dynamic module and as a Static module. The error for the Static Module creation is: configure: error: Invalid Apache directory - unable to find httpd.h under /usr/l ocal/apache/include The thing is, it does exist

RE: [PHP] Problem : track_vars stopped working.

2002-05-22 Thread Patrick Lynch
Hi Johan, The globals that PHP sets up have changed since since PHP 4.2.x See: http://www.php.net/release_4_2_0.php You can turn on register_globals in the php.ini file but it is recommended to use the more secure $_GET['test'] type variables. Best Regards, Patrick Lynch. Optip Ltd, Internet &

Re: [PHP] fputs() pblm how write on a new line each time ?

2002-05-22 Thread 1LT John W. Holmes
Use \n for newline. \r\n for Windows. fputs($fp,"value\n"); ---John Holmes... - Original Message - From: "arnaud gonzales" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 3:56 PM Subject: [PHP] fputs() pblm how write on a new line each time ? > H

Re: [PHP] fputs() pblm how write on a new line each time ?

2002-05-22 Thread Pushkar Pradhan
How about this: fputs($fic,"on a new line\n"); This works in c. > Hi all, > I' m searching how to write in a file on a new line each times whith > fputs(). > Because i want read the file whith file() and so ,have one line per indice > in a table. > So i need to write on a new line each time. >

[PHP] fputs() pblm how write on a new line each time ?

2002-05-22 Thread arnaud gonzales
Hi all, I' m searching how to write in a file on a new line each times whith fputs(). Because i want read the file whith file() and so ,have one line per indice in a table. So i need to write on a new line each time. TIA. arnaud. -- PHP General Mailing List (http://www.php.n

RE: [PHP] voting using text files

2002-05-22 Thread Scott Hurring
file_append($file, $text); ?? --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Vail, Warren [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 22, 2002 3:46 PM > To: 'Rasmus Lerdorf'; 1LT John W. Hol

[PHP] Re: W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Joshua E Minnie
I even tried adding the mime type for php (application/x-httpd-php). Argh. Thanks for all the help that you guys have provided thus far. -josh > Hey all, > I have a problem, that I can't seem to find the answer to. I have > checked the archives and the website, but to no avail. I have ins

RE: [PHP] voting using text files

2002-05-22 Thread Vail, Warren
I see some real genious in this solution. This would be a great function addition to PHP, anybody? Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, M

Re: [PHP] voting using text files

2002-05-22 Thread Peter
Well done that man! "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I think you guys are making this way more complicated than it needs to be. > Anytime you start talking about locking files, you need to apply a huge > reality check to yoursel

RE: [PHP] voting using text files

2002-05-22 Thread Scott Hurring
Another consdieration with using files written to disk automatically. if there's any chance that the user could get some arbitrary value written to disk, then access the file thru the web-browser, it's a HUGE security risk. aside from all the file-locking and mucking about with permissions and m

Re: [PHP] voting using text files

2002-05-22 Thread Jason Soza
And this is why I'm not an expert! I have a counter script on my page now that uses a flatfile to store IP's, but it also stores a timestamp. When someone visits the page, the current time is compared to the stored timestamp for that IP + whatever timeout period I set. If it's less, then that

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Joshua E Minnie
I am about ready to use the hammer. I know almost nill about IIS. I do know for sure that the PHP interpretter is working. Does anybody who knows about IIS have any advice for me to test if IIS is really working? -frustrated josh "Sqlcoders.Com Programming Dept" <[EMAIL PROTECTED]>: > Ho hum

[PHP] PDF w/ large blocks of text.

2002-05-22 Thread Seth Northrop
Has anyone devised a good solution for handling large blocks of text when creating pdfs? We want to convert otherwise web displayed reports into text keeping in mind that they span multiple pages (10-1000), and will contain control characters (\n, or arbitrary indention tags - ie, it's not just

RE: [PHP] Using the pdf tags.

2002-05-22 Thread Jeff Hatcher
Thanks, That seems to work. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 2:33 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Using the pdf tags. That's why I suggested using PDF_save and PDF_restore. PDF_save saves all sorts of attributes

[PHP] Re: Why cant i refer to $userfile and $userfile_name?

2002-05-22 Thread Philip Hallstrom
Read this section of the manual... http://www.php.net/manual/en/features.file-upload.php Assuming your form input looks like this: then you'll want to use: $_FILES['userfile']['name'] The original name of the file on the client machine. $_FILES['userfile']['type'] The mime type of the file,

[PHP] Re: W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Johan Ekström
This is what you must do. Copy Part ^^ copy php4ts.dll to c:\winnt\system32\ copy php4sapi.dll to c:\winnt\system32\ if you want any extensions, copy them to to c:\winnt\system32\ configuration part ^^^ in php.ini ¨ edit doc_root like : c:/Inetpub/wwwroot ed

[PHP] Re: PHP 4.2.1 install

2002-05-22 Thread Johan Ekström
If you've installed php as a module, set it to "0" if as a cgi, "1" "Ryan Conover" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > What do I set cgi_redirect var in the php.ini if I install php 4.2.1 under > win2k/iis5. > > Ryan Conover > [EMAIL PROTECTED] > [E

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread 1LT John W. Holmes
> If all that fails, there's always: > Have you tried a hammer? I like the 369 rule. Drop it from 3 feet, if it still doesn't work, drop it from 6 feet, and if it still isn't working, drop it from 9 feet. If none of that works then trash it. WARNING: Don't use this rule for children. ---John Hol

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Sqlcoders.com Programming Dept
Ho hum, So it doesn't seem to be script mappings - I stand corrected. Have you checked that the .PHP type is associated in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\Script Map branch of the registry?. You might want to check that it's .PHP, and not .PHP4 , as this

Re: [PHP] voting using text files

2002-05-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Rasmus Lerdorf declared > I think you guys are making this way more complicated than it needs to be. > > In this case could I suggest that you make use of the fact that appends of > less than a blocksize are atomic. Therefore, why no

Re: [PHP] UTF-8/FormMail headaches

2002-05-22 Thread Peter Johansson
On Wed, 22 May 2002, Miguel Cruz wrote: > For detection of encoding, perhaps you could include a hidden field with > some shibboleth characters. Research how they are transformed by various > encodings, and then just look at them to figure out what for that the rest > of the data is in. Yes,

[PHP] Why cant i refer to $userfile and $userfile_name?

2002-05-22 Thread Ragnar
Hi, im a newbie to php and are trying to make a small upload script. So i have read about the variables $userfile and $userfile_name. When i try to run the script i get the following error: Notice: Undefined variable: userfile Notice: Undefined variable: userfile_name Some of the code:

RE: [PHP] Using the pdf tags.

2002-05-22 Thread Miguel Cruz
That's why I suggested using PDF_save and PDF_restore. PDF_save saves all sorts of attributes like the current color, scale, skew, rotation, etc. So you can call that, then make any changes, draw anything that needs to be affected by those changes, then call PDF_restore, and you're back to nor

Re: [PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Sqlcoders.com Programming Dept
Hi there!, I've looked over this thread and from what I gather you want to know if you can/should use JavaScript for redirecting, my usual way of going about things is to put a JavaScript location.href='page.aspx' call in the head of the document (putting JS in the head causes it to execute before

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Sqlcoders.com Programming Dept
Hi there!, In a word - script mappings. In the IIS administrator, you must associate the .php extension with the php interpreter. Use the IIS help wizard to tell you how, or: 1. Start Regedt32.exe and open the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC \Pa

Re: [PHP] voting using text files

2002-05-22 Thread Rasmus Lerdorf
I think you guys are making this way more complicated than it needs to be. Anytime you start talking about locking files, you need to apply a huge reality check to yourself and sit down and approach the problem from a different direction. In this case could I suggest that you make use of the fact

[PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Hunter Vaughn
Okay, looks like I was stupid/lazy for including the pseudo code instead of something closer to what I was using. Also, perhaps I'm being dense, but I don't understand what Michael's response has to do with this situation. Can he or someone else enlighten me? Here's a more accurate/detailed des

RE: [PHP] Using the pdf tags.

2002-05-22 Thread Jeff Hatcher
Yes I'm using the PDFlib. I understand the rotating of the page. So this is what I am doing: I am building a page $pdf. If I rotate the page then everything on the page rotates also. I need to put titles in a 45 degree angle. These titles can change and there can be between 3-6 depending on the

Re: [PHP] Problem : track_vars stopped working.

2002-05-22 Thread Philip Olson
The php directive track_vars is deprecated and is always on. You appear to be referring to the register_globals directive though, which is a hot topic these days in the world of PHP. If register_globals = on, then $text will exist in your example (register_globals will create it). Otherwis

Re: [PHP] session.save_path

2002-05-22 Thread 1LT John W. Holmes
You have to set the session.save_path to a path on your machine that PHP can write session files to. You can make a temp folder in your C: drive and then set the path to c:/temp or c:\\temp or create and set it to any other folder you want. Make sure (if you're using NTFS) that user IUSR_ has perm

Re: [PHP] voting using text files

2002-05-22 Thread 1LT John W. Holmes
> A good structure would be to have one file for each possible answer and each > file contains the number of votes it has recieved. > Then: > --> Open file for the chosen option as read only > --> Read the value in the file > --> Close the file > --> Increase the value by one using ++ > --> Open t

Re: [PHP] UTF-8/FormMail headaches

2002-05-22 Thread Miguel Cruz
For detection of encoding, perhaps you could include a hidden field with some shibboleth characters. Research how they are transformed by various encodings, and then just look at them to figure out what for that the rest of the data is in. miguel On Wed, 22 May 2002, Peter Johansson wrote: >

Re: [PHP] Problem : track_vars stopped working.

2002-05-22 Thread 1LT John W. Holmes
Maybe you should read about what you're installing before you install it. Register_globals is off in PHP 4.1+ by default, so your variables aren't created. You can use $_GET["text"] to get the variable, though. Or you can turn on register_globals in your php.ini and face the security consequences

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Joshua E Minnie
Already tried the other tag, and php extension is setup as a CGI in IIS. That is why this is puzzling me so. -josh "Bruce Vander Werf" <[EMAIL PROTECTED]> wrote: > Josh, > > Try just using > Make sure your php file has the extension php and make sure the php > extension is setup as a CGI extens

RE: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Bruce Vander Werf
Josh, Try just using mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 12:55 PM To: [EMAIL PROTECTED] Subject: [PHP] W2K SP2, PHP 4.2.1, IIS 5 Hey all, I have a problem, that I can't seem to find the answer to. I have checked the archives and the website, but to no avail. I have ins

[PHP] UTF-8/FormMail headaches

2002-05-22 Thread Peter Johansson
Hi all, I've got a problem with character encoding in combination with a FormMail-script (coded in PHP). Everything works fine as long as I stick to ISO-8859-1 as charset, but when I call the script from pages that use UTF-8 as encoding, special characters (e.g. those special chars with dots and

[PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread Joshua E Minnie
Hey all, I have a problem, that I can't seem to find the answer to. I have checked the archives and the website, but to no avail. I have installed PHP 4.2.1 on my local machine with IIS running W2K Pro. When I run php -i, I get the html output expected. But when I try to open the simple ph

Re: [PHP] Problem with install php 4.2.1

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002, Roman Duriancik wrote: > I want install php 4.2.1 (download from www.php.net) on ma linux red hat 7.0 > server. configure ran good with no errors > but when i do make install i get this error message. > make[3]: *** [gettext.lo] Error 1 > make[3]: Leaving directory `/update/ph

Re: [PHP] unable to register session variables

2002-05-22 Thread Jim lucas
not that I am aware of. Jim Lucas - Original Message - From: "Pushkar Pradhan" <[EMAIL PROTECTED]> To: "Jim lucas" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 10:43 AM Subject: Re: [PHP] unable to register session variables > Aren't there two method to regi

[PHP] Re: Executebale code from a databse

2002-05-22 Thread Peter
The security shouldn't be a problem. The user will be taken to www.whatever.com/index.php?page=thispage index.php then searches for a record with name = thispage and then evaluates the code stored in a different column of the database. If the name isn't found, "This page cannot be found" is displa

Re: [PHP] voting using text files

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002, Jason Soza wrote: > Using file locking, if two people tried to use the script at the same > time, wouldn't there be an error for one of them? The second session would just have to wait for the first to finish (which should be an infinitessimal amount of time). > My first g

Re: [PHP] unable to register session variables

2002-05-22 Thread Pushkar Pradhan
Aren't there two method to register variables: 1. session_start() as you suggested with track_vars enabled 2. !session_is_registered() with register_globals enabled I tried session_start also but didn't work, phpinfo() doesn't show any $HTTP_SESSION_VARS > Are you starting the session first? > >

[PHP] Re: read from flatfile and convert

2002-05-22 Thread Peter
I copied some data from a web page straight into Excel then saved it as tab delimited which allowed me to import it into MySQL. Try opening the file in a spreadsheet program - it might understand the file! Alternatively, if the data was stored in a flat file previously, there must have been a scr

Re: [PHP] Using the pdf tags.

2002-05-22 Thread Miguel Cruz
On Wed, 22 May 2002, Jeff Hatcher wrote: > Does anyone know of a way to rotate text in a pdf? > I can rotate an image and rotate a page but can not seen to rotate text. You're using PDFlib? It works just fine, but you have to understand how PostScript works. Calling PDF_rotate rotates the entir

[PHP] Problem : track_vars stopped working.

2002-05-22 Thread Johan Ekström
Okay, mystery to me, when I installed PHP 4.2.1 on Apache 2.0.35, the track_vars function, stopped working. a simple command like, example : file : default.php ¨ then I type in the address in ie6, like : http://127.0.0.1/default.php?text=this but it doesn't show anything

  1   2   >