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
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
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
---
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:
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
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
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
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
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
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:
#
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
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,
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
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,
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)
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
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,
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]
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-
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
$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
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. */
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
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
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
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,
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
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
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,
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:
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,
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
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
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;
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.. :)
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.
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
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*
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-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
-
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
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
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? :)
--
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
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
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
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
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
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:
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
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
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
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
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
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)
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
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
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
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
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
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.
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
+++
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
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
101 - 164 of 164 matches
Mail list logo