;
}
print /table;
-Original Message-
From: Brad Bonkoski [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 3:34 PM
To: Steve Gaas
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL and Array's REALLY simple question but I'm not
GETTING it .. Ugh..
Well, when you run the command
Hello, Steve,
When you call mysql_fetch_array the first time, you are accessing the data
from the first row of your results and then moving the pointer to the next
row. So, when you call mysql_fetch_array the second time, it is already
starting with the second row of your results. Try something
: Re: [PHP] MySQL and Array's REALLY simple question but I'm not
GETTING it .. Ugh..
Well, when you run the command:
$sql2_results = mysql_fetch_array($top_level);
The first time, it automatically increments the result...
so you fetch the data bu do nothing with it...
so when you get
$sql2_results = mysql_fetch_array($top_level);
I guess this must be in a loop otherwise your $sq12_results keep getting
overwitten; thus,
the last record will be shown at the end.
$query_sql2_rows = mysql_num_rows($top_level);
echo $query_sql2_rows;
// echo's 2 rows
print table
My main files are located in /var/www/html (the 'DOCUMENT_ROOT' in Apache,
according to php.ini). All sensitive files have been moved to
'/var/www/secure', but now I can't access them! (According to php.ini, the
PHP core 'doc_root=none').
I'm totally confused. If I understand this correctly,
/filename.php);
Works for me assuming I have the right permissions.
Best Regards
Bob Irwin
Server Admin Web Programmer
Planet Netcom
- Original Message -
From: Andre Dubuc [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 11:19 AM
Subject: [PHP] Further Security Clarifications
22, 2002 11:19 AM
Subject: [PHP] Further Security Clarifications [was: Simple Security
Clarifcation]
My main files are located in /var/www/html (the 'DOCUMENT_ROOT' in
Apache, according to php.ini). All sensitive files have been moved to
'/var/www/secure', but now I can't access them
Thanks Bob,
Got a 404: File not Found. Checked the ssl_error_log as suggested, and
found
a rather interesting entry:
No such file: /var/www/html/var/www/secure/test.php
Ahhh - ok - I thought you were including them internally from PHP. You are
actually linking to the file being SERVED by
Thanks again Bob,
First off, the site is still being debugged off-line, and part of the
problem, as you suggested is my confusion over UNIX SERVER and the Apache
Server. OK. Got that.
What I'm trying to do:
Any file that utilizes $_SESSION variables accessed through username/password
Folks:
I just setup a Redhat/Apache/PHP box for testing purposes as I develop some PHP
websites. The weird thing, is that the server takes FOREVER to respond when I make a
very simple error in the code. On other servers it comes up with a 'Parse Error'
message immediately, but not so with
Take a look at the ord() and chr() functions. They'll do what you want.
On Tue, 12 Feb 2002, phantom wrote:
How do I get the ASCII value of a character increment it by one...
and convert back to a character.
For example:
I want to grab a char such as C and increment it to D ???
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
How do I get the ASCII value of a character increment it by one...
and convert back to a character.
For example:
I want to grab a char such as C and increment it to D ???
ord() and chr() will do this.
$oldchar = C;
$newchar =
I have released version 3.0 of my KISGB.
KISGB is a PHP guestbook program that does not require sessions, cookies, or
an rdbms. Can be Public or Private through HTTP Authentication. Automated
install script, fully customizable, clean, and fast. Separate multiple
logging capabilty for tracking
Hello,
I'm trying to replace a couple of lines of code:
$dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.'));
$extension = substr($userfile_name, $dotpos);
with a simpler regular expression:
$extension = eregi_replace( /.*, , $userfile_name);
However it
Ok here is a simple IF statement I am messing around with, yet the parser is
sending back an error message of which I cannot see the cause:
Code:
?php
if ($name == tarrant $username == costtar $password ==
password);
{
print(Your are now logged in $name, thank you.);
}
else
{
Loose the ; after the if
Jeroen
Tarrant Costelloe [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok here is a simple IF statement I am messing around with, yet the parser
is
sending back an error message of which I cannot see the cause:
Code:
?php
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 21, 2001 10:34 PM
Subject: [PHP-DB] super simple... but!
I wrote this code but nothing append. If i look de code in the browser it's
stopping to starting!
What is the problme?
HTMLBODY
?php
echo "starting...";
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 21, 2001 10:34 PM
Subject: [PHP-DB] super simple... but!
I wrote this code but nothing append. If i look de code in the browser it's
stopping to starting!
What is the problme?
HTMLBODY
?php
echo "starting...";
EMAIL PROTECTED]]
Sent: 22 March 2001 11:17
To: [EMAIL PROTECTED]
Subject: [PHP] please help with this simple problem
i am coding a simple script to post a text area into a file. it works, but
it posts it at the bottom and i wanted to have it post to the top of the
text already there..
t";
$fsize = filesize($fname);
fp = fopen(basename($fname));
$data = fread($fp,fsize);
fwrite($fp,$message);
fwrite($fp,$data);
fclose($fp);
-Stewart
-Original Message-
From: adam [mailto:[EMAIL PROTECTED]]
Sent: 22 March 2001 11:17
To: [EMAIL PROTECTED]
Subject: [PHP] ple
t
-Original Message-
From: adam [mailto:[EMAIL PROTECTED]]
Sent: 22 March 2001 12:00
To: [EMAIL PROTECTED]
Subject: Re: [PHP] please help with this simple problem
i tryed it and it ended up having an error that was caused originally by a
lack of a $ on the 3rd line variable... after i
it works now, only it's earasing everything and then writing to the file.
i think we have almost got this figured out. here's what the code looks like
for the entire tag...
---
?
if ($message)
{
/* uncomment the next two lines to strip out html from input */
it works now, only it's earasing everything and then writing to the file.
i think we have almost got this figured out. here's what the code looks like
for the entire tag...
---
?
if ($message)
{
/* uncomment the next two lines to strip out html from input */
Well... I think I probably owe most of the people on this list some serious cash in
consulting fees by now. But we're opensource, so I guess I'm off the hook, right? =)
Anyways, another question for you people. I'm on the last leg of designing this
e-commerce site. All I have left to design is
101 - 124 of 124 matches
Mail list logo