[PHP] Passing variable with slashes in URL

2001-05-16 Thread Claudia Smith
Currently I have a problem with IE. The IE browser will not bring up my encoded url. When clicking on the link I either receive a script error or nothing happens. The issue is with the double quotes. IE does not recognized the encoded character %22 for quotes. IE does seem to process single

[PHP] Is there a better way to do this

2001-05-16 Thread Richard Kurth
Is there a better way to do thisI want it to look and see if the userdata file is there and if true the bypass everything else run rest of code. If is not then check to see if userdat1 is and if it is change it's name to userdata the run rest of code. If none of the are there then gust shut

[PHP] running a stand-alone PHP program

2001-05-16 Thread midget2000x
I apologize if this has already been covered...I can't seem to find it in the archives... can PHP be coded and run as a stand-alone program? If so, where can I get more info on that? I am running Linux and would like to pass some data to PHP from a CGI program. Thanks! Rory ---

RE: [PHP] Is there a better way to do this

2001-05-16 Thread scott [gts]
what are you trying to do that for? there's probably a much cleaner way to do what you want, but i dont really know what you want to do, so i cannot suggest anything -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 5:10 PM To:

RE: [PHP] running a stand-alone PHP program

2001-05-16 Thread scott [gts]
yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it -Original Message- From: midget2000x [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: [PHP] running a stand-alone PHP program I apologize

Re[2]: [PHP] Is there a better way to do this

2001-05-16 Thread Richard Kurth
Hello scott, I what it to look and see if the file exists if it does not the look and see if the next file exists if it does change its name and run the rest of the script. If nether exists the quit the program all together Wednesday, May 16, 2001, 2:27:19 PM, you wrote: scott [gts] what are

Re: [PHP] Is there a better way to do this

2001-05-16 Thread Christopher Heschong
on 5/16/01 5:10 PM, Richard Kurth at [EMAIL PROTECTED] wrote: Is there a better way to do thisI want it to look and see if the userdata file is there and if true the bypass everything else run rest of code. If is not then check to see if userdat1 is and if it is change it's name to

RE: [PHP] deleting a file

2001-05-16 Thread scott [gts]
read the docs you'll find your answer there. php.net/delete ;) -Original Message- From: Joseph Bannon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 3:53 PM To: PHP (E-mail) Subject: [PHP] deleting a file What is the file function to remove/delete a file from a

RE: [PHP] running a stand-alone PHP program

2001-05-16 Thread midget2000x
I suppose I need to be more clear. I already have PHP running, but I want to run actual PHP code that I write as a stand-alone program. Is this what you're doing? On Wed, 16 May 2001, you wrote: yeah. i run it as a CGI. compile it as a binary, then edit the apache config... that's it

Re: [PHP] running a stand-alone PHP program

2001-05-16 Thread Nathan Cook
Assuming you are running linux... Just remove the --with-apache, from the ./configure statement... should look something like this # ./configure [DIRECTIVES] [--with-mysql=/usr/local/mysql] # make # make install Should install to: # /usr/local/bin/php then you can run scripts by: #

Re: [PHP] Passing variable with slashes in URL

2001-05-16 Thread Chris Lee
cant say for sure, but I dont play around with rawencode and addslasses for urls, just use urlencode() echo a href='index.php?test=. urlencode($text) .test2=. urlencode($test2) .'test/a ; -- Chris Lee [EMAIL PROTECTED] Claudia Smith [EMAIL PROTECTED] wrote in message 9duqke$9g1$[EMAIL

Re: [PHP] running a stand-alone PHP program

2001-05-16 Thread Tomasz Piat
Nathan Cook wrote: then you can run scripts by: # /usr/local/bin/php /path/to/script/scriptname Or you can put: #!/usr/local/bin/php as a first line in your script, then % chown u+x yourscript % ./yourscript HTH, Poncki -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Is there a better way to do this

2001-05-16 Thread Tomasz Piat
Christopher Heschong wrote: I'd use unlink("userfile1") rather than system("rm userfile1") just to be pretty. Or to be more secure :))) Poncki -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Get page height?

2001-05-16 Thread DRN
Hi, I was wondering if it would be possible to get the page height using php? The reason I would like to do this is so that I can include a link to the top of the page if the page is long enough, but not to display it for very short pages (where it would not be needed:) Cheers for your help,

Re: [PHP] working on array of different number of indices

2001-05-16 Thread Chris Lee
Im not sure either what you mean. you want to know if a var is an array ? if (is_array($maybe_array)) if your looking for a way to transverse thought the array, use foreach() function work_on_array($value, $index) { if (is_array($index)) foreach($index as $pos = $val)

[PHP] Array question

2001-05-16 Thread Matthias Roggendorf
Hi, I wrote some code and I do not understand the result I get: while ($data = fgetcsv ($fp, 1000, ,)) $line[$j++] = $data; When I ouput $line[0][0] I get Array[0] instead of the real value. Why is that? Thanks for your help, Matthias -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Get page height?

2001-05-16 Thread Chris Lee
the screen dimensions are not sent to the server, a sniffer is a handy thing, you will be able to see all the headers, and see that one is not in there. plus to compound the fact, javascript might be able to get this data (cant confirm) but javascript will only know what the dimensions are,

Re: [PHP] Permission Problems

2001-05-16 Thread Tomasz Piat
John Vanderzwet wrote: How can I create this file under the owner of 'zeus' so that they can be deleted? Welcome to the unix permissions world ;-) Is for have root access: try to play with groups (nobody/httpd and zeus in same group) and umask and chgrp. [This is not a solution, this is a hint]

RE: Re[2]: [PHP] Is there a better way to do this

2001-05-16 Thread scott [gts]
yes, i know what you're doing i'm just curious what it's for and why you're doing it. maybe you dont have to go to all the trouble of moving/deleting/checking for filenames... maybe you can make the overall logic of the program flow better that's why i asked. -Original Message-

Re: [PHP] Get page height?

2001-05-16 Thread Nathan Cook
DRN [EMAIL PROTECTED] Hi, I was wondering if it would be possible to get the page height using php? This solution is sloppy but in theory it works. I would lean towards using an fopen() to read the bytes of the page on the server, then based on bytes have your script decide what to

[PHP] math - somethings wrong

2001-05-16 Thread Michael Roark
$percentage=(($target_score/($fleet_score+$total_score))*.4)*100; if ($percentage = 10) { $percentage='10'; $capped=$target_roids*($percentage/100); } else { $capped=$target_roids*($percentage/100); } } I get different results

Re: [PHP] math - somethings wrong

2001-05-16 Thread Nathan Cook
There are some comments below. I hope this will point you in the right direction. /* Yours :: $percentage=(($target_score/($fleet_score+$total_score))*.4)*100; */ /* From looking at the math you do on the calculator you may want to try this instead. */

[PHP] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-16 Thread Brandon Orther
Hello, I am making a drop down menu script in PHP so it is compatible with non JavaScript browsers like Netscape 6.0 The problem I am having is that when I make tables it doesn't always load the background in the tables. I suspect that maybe this is something with PHP because when I make html

RE: [PHP] Netscape 6, What a piece of s$#@ , anyone else had problems with php and Netscape 6?

2001-05-16 Thread Jason Murray
I am making a drop down menu script in PHP so it is compatible with non JavaScript browsers like Netscape 6.0 The problem I am having is that when I make tables it doesn't always load the background in the tables. I suspect that maybe this is something with PHP because when I make html

Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-16 Thread Nicole Lallande
Hi Brandon, I don't know if this is the problem, but if you have a DOCTYPE declaration - I have found the only one that works in N6 with dhtml is: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd; this has to do with the

[PHP] getting php run on unix

2001-05-16 Thread Andreas Pucko
Hi there, I am trying to get php running on a unix machine. It does not parse my scripts at all. Has anybody a idea to start looking at? Maybe at apache conf? Cheers andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Uptime script?

2001-05-16 Thread Matthew Schroebel
If you were trying to take a machine down, it might be useful to know it. Plus it's easily faked. It's very difficult to imagine how 'uptime' information could be used to cause mischief... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] - Hard return in readfile

2001-05-16 Thread Ray Iftikhar
I have many text files stored on my server. I call them use using the readfile function. While that works great, it seems to over-write the hard returns. This has hurt the format and readability of my information. ie. text file: This is a test output: This is a test is there someway to get

RE: [PHP] - Hard return in readfile

2001-05-16 Thread Jason Murray
text file: This is a test output: This is a test HTML ignores carriage returns. You could wrap it in PRE/PRE tags, or SPAN STYLE='white-space: pre;'/SPAN tags. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] - Hard return in readfile

2001-05-16 Thread Christopher Heschong
on 5/16/01 8:38 PM, Ray Iftikhar at [EMAIL PROTECTED] wrote: I have many text files stored on my server. I call them use using the readfile function. While that works great, it seems to over-write the hard returns. This has hurt the format and readability of my information. ie. text file:

Re: [PHP] Array question

2001-05-16 Thread David Robley
On Thu, 17 May 2001 08:26, Matthias Roggendorf wrote: Hi, I wrote some code and I do not understand the result I get: while ($data = fgetcsv ($fp, 1000, ,)) $line[$j++] = $data; When I ouput $line[0][0] I get Array[0] instead of the real value. Why is that? Thanks for your help,

[PHP] Escaping from

2001-05-16 Thread Augusto Cesar Castoldi
I'm tring to print the variable tmp, but the echo is just printing abcd, the rest he can't print. Why? regards, Augusto $tmp=abcdefg; echo $tmp.br; echo br; $tmp=addslashes($tmp); echo $tmp.br; echo br; $tmp=stripslashes($tmp); echo $tmp.br; -- PHP General Mailing List

Re: [PHP] Is there a better way to do this

2001-05-16 Thread Tiger Quimpo
On Thu, 17 May 2001, Christopher Heschong wrote: on 5/16/01 5:10 PM, Richard Kurth at [EMAIL PROTECTED] wrote: [snip] if(file_exists(userdata)) { end; } elseif(file_exists(userdata1)) { copy('userdata1','userdata') ; system(rm userdata1); end; } else { exit; } if

Re: [PHP] Escaping from

2001-05-16 Thread Christopher Heschong
on 5/16/01 9:12 PM, Augusto Cesar Castoldi at [EMAIL PROTECTED] wrote: I'm tring to print the variable tmp, but the echo is just printing abcd, the rest he can't print. Why? regards, Augusto $tmp=abcdefg; echo $tmp.br; echo br; $tmp=addslashes($tmp); echo $tmp.br; echo br;

Re: [PHP] Uptime script?

2001-05-16 Thread Ryan Christensen
Take a machine down, knowing it's uptime? (I.e., it's easier to hack a box that's been up for 5 months.. as opposed to one that hasn't been??) Easy to fake.. yes.. however if that were the case, I would be the one doing the faking.. in which case I wouldn't be asking.. :)

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ryan Christensen (on Wed, 16 May 2001 06:35:32PM -0700): Take a machine down, knowing it's uptime? (I.e., it's easier to hack a box that's been up for 5 months.. as opposed to one that hasn't been??) um, why? please don't answer if you use windoze for then the answer is obvious.

Re: [PHP] Uptime script?

2001-05-16 Thread Ryan Christensen
No.. as I said in my original post, this is on Linux.. so I was actually wondering how it would be a risk in Linux.. not win.. Ryan Christensen OlyPen Technical Support [EMAIL PROTECTED] 360.457.3000 800.303.8696 - Original Message - From: MaD dUCK [EMAIL

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ryan Christensen (on Wed, 16 May 2001 06:47:08PM -0700): No.. as I said in my original post, this is on Linux.. so I was actually wondering how it would be a risk in Linux.. not win.. sorry, i haven't really followed the thread. well, *iff* your system is properly configured *and*

[PHP] Help! OCIFetchInto does not work at all

2001-05-16 Thread Grishick
I'm tryibg to execute a simple query on Oracle: $cn=OCILogon($DB_USER, $DB_PASSWORD, $DB_NAME); $stmt=OCIParse($cn,select * from grisha); OCIExecute($stmt); OCIFetchInto ($stmt, $row, OCI_ASSOC); But $row is always empty and OCIFetchInto returns nothing. The table is not empty, I can execute the

RE: [PHP] getting php run on unix

2001-05-16 Thread Maxim Maletsky
re-read INSTALL file of PHP distribution. You must also do few changes in httpd.conf. Look for AddType.. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Andreas Pucko

[PHP] Sending Output Buffer contents to PDFLib

2001-05-16 Thread Nold, Mark
- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are

Re: [PHP] Uptime script?

2001-05-16 Thread David VanHorn
At 08:18 PM 5/16/01 +0200, Christian Reiniger wrote: On Wednesday 16 May 2001 15:16, Matthew Schroebel wrote: Why would you want to advertise that? Seems like you would be leaking information to crackers ... It's very difficult to imagine how 'uptime' information could be used to cause

Re: [PHP] Uptime script?

2001-05-16 Thread David VanHorn
At 03:30 PM 5/16/01 -0500, Ben Gollmer wrote: Uptime.exe is available on the WinNT / Win2k resource kit. You can also download it here: http://www.microsoft.com/ntserver/nts/downloads/management/uptime/default. asp Does the windows version have the ability to count larger than hours? :) --

Re: [PHP] Uptime script?

2001-05-16 Thread Christopher Heschong
On Wednesday, May 16, 2001, at 09:47 PM, Ryan Christensen wrote: No.. as I said in my original post, this is on Linux.. so I was actually wondering how it would be a risk in Linux.. not win.. If you want to get the current uptime in Linux without a system() call, you should be able to

Re: [PHP] Uptime script?

2001-05-16 Thread MaD dUCK
also sprach Ron Pitts (on Wed, 16 May 2001 10:18:06PM -0400): To unsubscribe, e-mail: [EMAIL PROTECTED] This does not work. This list is like the mafia: Once in, never out. That sucks. The list managers are morons. will you chill please? of course it works. you are at fault. do you want me

[PHP] Parsing Phone Numbers

2001-05-16 Thread Jason Caldwell
Is there a way I can modify a phone number programmatically -- for example, if I have the following phone number: 1234567890 Now there are no - or . separators... and I would like to automatically add them when the user hits submit... 123-456-7890 Also, I would like to account for optional

[PHP] --with-imap-ssl

2001-05-16 Thread ilya
Has anyone been able to compile php with imap-2001 cclient with -imap-ssl option? it looks like format of cclient .h changed, and php is not able to find certain fnctions. i was wondering if anyone found a hack around? Looks like --with-imap-ssl is

Re: [PHP] Uptime script?

2001-05-16 Thread Billy Harvey
also sprach Ron Pitts (on Wed, 16 May 2001 10:18:06PM -0400): To unsubscribe, e-mail: [EMAIL PROTECTED] This does not work. This list is like the mafia: Once in, never out. That sucks. The list managers are morons. will you chill please? of course it works. you are at fault. do

Re: [PHP] Parsing Phone Numbers

2001-05-16 Thread dempsejn
this was just asked yesterday...if you have a phone number and it has 10 digits, then use easily use substr to add slashes at the right points...same for the other number... -jack - Original Message - From: Jason Caldwell [EMAIL PROTECTED] Date: Wednesday, May 16, 2001 10:58 pm Subject:

[PHP] Chained Selectors

2001-05-16 Thread Joseph Blythe
Hello, Has anyone used/is using the most excellent chainedSelectors class (by Leon Atkinson) available as a tutorial from zend.com ? I just got this working for use with the states of australia and its postcodes (around 3395 unique pcodes), but have found the result totally unusable due to

[PHP] function ref for experimental fastcgi in 4.05

2001-05-16 Thread Charles Brasted
Hi, The Zend site talks about the 4.05 release having an experimental fastcgi API. I have had absolutely no luck searching the php site(s), google, etc to get info on this. Can anyone help? I've been looking at the 4.05 src, but it isn't really that edifying for what I need (a list of

Re: [PHP] Uptime script?

2001-05-16 Thread Steve Werby
Christopher Heschong [EMAIL PROTECTED] wrote: If you want to get the current uptime in Linux without a system() call, you should be able to fopen() the /proc/uptime file. The first number is the number of seconds the machine has been up, the second is the number of seconds the machine's

[PHP] Links as a query point instead of form drop down box

2001-05-16 Thread Laurie Landry
I understand how to use a dropdown box to make your selection in which that selection is the criteria to display a database content; but I was wondering how I can achieve a query by link. For example, if you went to index.html file where there is a php coding that generates the categories

RE: [PHP] Links as a query point instead of form drop down box

2001-05-16 Thread Jason Murray
how would I add the query criteria to the link? and how would I set up showdata to take the information from the selected link? Where you would usually have a form such as: FORM ACTION='destination.php' SELECT NAME='name' OPTION VALUE='value' Display Value /OPTION /SELECT /FORM ... to use

[PHP] way to protect .php file

2001-05-16 Thread Kittiwat Manosuthi
In a virtual hosting environment, even though a directory permission is set to 751, but you still need to leave world-readable permission on individual php file that is to be read from a browser. In a scenario where there's another user in the same server who can guess (or even get, from URL)

RE: [PHP] way to protect .php file

2001-05-16 Thread Jason Murray
Is there anyway one can protect this? Include the passwords from another file that doesn't need to be web-accessible. Or, find a virtual host that doesn't allow this kind of thing :) Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT What'll Scorpy use wormhole technology

RE: [PHP] way to protect .php file

2001-05-16 Thread Maxim Maletsky
no no and no. You can chown the whole directory with it's contents to a specific user using that directory. In this way no cd is possible. This should be done automatically when creating user accounts. There are even softwares to do that - they create you a directory, user, group, add vhost and

RE: [PHP] way to protect .php file

2001-05-16 Thread Maxim Maletsky
Just to add, if it is possible for user to get out his own box then your whole server is under huge risk. People will start including each-other's files, reading your httpd.conf (a show_source('/usr/local/apache/conf/httpd.conf') is enough, even highlighted! Same to every other file on your

Re: [PHP] way to protect .php file

2001-05-16 Thread MaD dUCK
also sprach Maxim Maletsky (on Thu, 17 May 2001 02:25:47PM +0900): no no and no. oh sure you can. identify the group that apache runs as, then chown the directories 0750 and files 0640 after chgrp'ing them all to the same apache group, and you're set. i have my apache run as user apache and

Re: [PHP] still not friends with RegExps..

2001-05-16 Thread Christian Reiniger
On Tuesday 15 May 2001 22:35, Gyozo Papp wrote: I mean that it seems to me most of the mailers use preg funtions instead of simple ereg functions. Up to now I used only the latter ones. Well, actually preg is more simple IMHO :) Anyway - preg are the Perl-style regexps, so any perl regular

[PHP] no connection to mysql

2001-05-16 Thread Tyler Longren
Hello everyone, PHP just stopped being able to connect to mysql. mysqld-nt is running, and is running alright becuase I can connect, select databases, and execute sql queries through the mysql client. However, when I try to establish a connection through PHP, the connection never gets made.

Re: [PHP] Web Host

2001-05-16 Thread Deependra B. Tandukar
Contact [EMAIL PROTECTED] Warm Regards, Deependra B. Tandukar www.coremag.net/cvs/dt.htm Training and Networking Assistant ICOD/ICIMOD www.icimod.org Co-ordinator CORExpress The Only Native Computer Magazine of Nepal www.coremag.net +++

[PHP] Web Host

2001-05-16 Thread Manesh Manickam
I need a web host with myslq and PHP. Also i would be good if it have a STMP server to! Please just reply to there posts! -- 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

Re: [PHP] Web Host

2001-05-16 Thread John Monfort
We offer hosting with PHP,MySQL, and SMTP. www.pepiedesigns.com __John Monfort_ _+---+_ P E P I E D E S I G N S www.pepiedesigns.com The world is waiting, are you ready? -+___+- On Wed, 16

<    1   2