Is there a valid $id being passed through a query ($_GET) variable, like
so?:
http://www.filecircus.com/somewhere/outthere/gimme.php?id=badphoto103
What happens when you click on that?
--
Jared Farrish
Intermediate Web Developer
Denton, Tx
Abraham Maslow: "If the only tool you have is a ha
I am trying to download a file from MySQL and display it using the
following PHP script,
but it isn't displaying the file just a list of files in the database.
Please help.
Code Begin
Download File From MySQL
";
}
else
{
while(list($id, $name) = mysql_fetch_array($result)
Hello does anyone know the correct way to install PHP and APACHE (last
versions both of them) on WinXP???, Im doing it with the installers and I
cannot even run phpinfo(); script, I see apache's error log and it says that
i cant find SAM directory
Thank you in advance
Rafa
On 5/25/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
Miles Thompson wrote:
> Suggestions will be most welcome. Also, I'm not married to this, so if
> anyone thinks there is a better debugger, please jump in.
I'm not going to jump in there ... I almost drown in that quagmire
everytime I have
I am trying to download a file from MySQL using the following code,
but it doesn't display a file just a list of files in the database.
Anyone have any suggestions?
Code Begin
Download File From MySQL
";
}
else
{
while(list($id, $name) = mysql_fetch_array($result))
Miles Thompson wrote:
> Suggestions will be most welcome. Also, I'm not married to this, so if
> anyone thinks there is a better debugger, please jump in.
I'm not going to jump in there ... I almost drown in that quagmire
everytime I have to get a debugger setup working ... but ...
>
> Re
On 5/25/07, Richard Davey <[EMAIL PROTECTED]> wrote:
Hi Tijnema,
Friday, May 25, 2007, 5:58:46 PM, you wrote:
> On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>> Very. Each directory contains very specific types of code/content.
>> Tracking down where any given function, class, custom t
Ave,
Alright, here's I solved it. Used the array_walk function. This is my code:
function test_alter(&$item1) {
$item1 = mysql_escape_string($item1);
}
array_walk($var, 'test_alter');
$var = implode("','", $var);
$sql = "INSERT INTO
nimo_account(Date,Time,Phone,Account,AccountType,RateC
Ok, I'm not able to use array_map() at all to my benefit, or at least I
can't figure out how to.
I'm trying to generate the string with escape slashes before I put it in the
INSERT statement, but it's not working primarily because values have to be
enclosed in Single Quotes while inserting into m
Hi Tijnema,
Friday, May 25, 2007, 5:58:46 PM, you wrote:
> On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>> Very. Each directory contains very specific types of code/content.
>> Tracking down where any given function, class, custom tag, behaviour,
>> etc is defined is extremely simple.
>
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote:
> On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote:
> > > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > > > On Fri, 2007
On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote:
> On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote:
> > > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > > > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote:
> > > > > I like to
On 5/24/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
If you don't find anything useful in the Zend stuff, don't use it.
Thanks for the useless input captain obvious.
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
On 5/25/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
On 5/24/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
> I only skimmed this, but afaik the only way to get the child PID is to
> "fork" rather than to "exec".
>
> On Thu, May 24, 2007 10:10 am, [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > Summary:
>
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote:
> On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote:
> > > I like to keep it simple, just like this:
> > > /
> > > /data
> > > /
On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote:
> On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote:
> > > I like to keep it simple, just like this:
> > > /
> > > /data
> > > /http
> > > /project1
> > > /includes
> > >
On May 24, 2007, at 6:15 PM, Jochem Maas wrote:
Richard Lynch wrote:
On Wed, May 23, 2007 9:58 am, Greg Donald wrote:
Has anyone looked at the Zend Framework lately?
http://framework.zend.com/manual
I've been playing with a few parts of it off and on the past
couple of
days. It seems re
On 5/24/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
I only skimmed this, but afaik the only way to get the child PID is to
"fork" rather than to "exec".
On Thu, May 24, 2007 10:10 am, [EMAIL PROTECTED] wrote:
> Hi,
>
> Summary:
>
> 1. I execute script1 that will run in the background (daemon)
>
On May 25, 2007, at 10:50 AM, Daniel Brown wrote:
On 5/25/07, Tijnema <[EMAIL PROTECTED]> wrote:
On 5/25/07, blueboy <[EMAIL PROTECTED]> wrote:
> How can I do the equivalent of this in windows or is there a
tool I can
> use?
>
> R.
Windows file systems don't have permissions like Unix-bas
On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote:
> On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote:
> >
> > > -Original Message-
> > > From: Tijnema [mailto:[EMAIL PROTECTED]
> > > > >
> > > > > It's just the way you write script, m
On 5/25/07, Tijnema <[EMAIL PROTECTED]> wrote:
On 5/25/07, blueboy <[EMAIL PROTECTED]> wrote:
> How can I do the equivalent of this in windows or is there a tool I can
> use?
>
> R.
Windows file systems don't have permissions like Unix-bases file systems.
For FAT16/FAT32 there are only a few (R
On 5/25/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote:
I guess one of the problems is that PHP has a limited number of dbase
functions and I'm not able to run SQL Queries on a dbf database. Basically
I
have to make-do with the few dbase() functions I have available in PHP.
But I do get yo
2007. 05. 25, péntek keltezéssel 11.32-kor Rahul Sitaram Johari ezt
írta:
> Ave,
>
> I¹m inserting values out of an array into mySQL. There¹s other values
> besides the array values that are being inserted as well. This is my simple
> INSERT code:
>
> $sql = "INSERT INTO db
> (Date,Time,Phone,Acc
On Fri, 2007-05-25 at 17:26 +0200, Jochem Maas wrote:
> Robert Cummings wrote:
> > On Fri, 2007-05-25 at 09:10 -0400, tedd wrote:
> >> What a hoot!
> >>
> >> When I saw the the number of post to this thread, I figured someone
> >> got their shorts in a knot.
> >>
> >> Only a bunch of geeks could g
On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote:
> On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote:
> >
> > > -Original Message-
> > > From: Tijnema [mailto:[EMAIL PROTECTED]
> > > > >
> > > > > It's just the way you write script, my included files contain only
> > > > > functions & varia
Ave,
I¹m inserting values out of an array into mySQL. There¹s other values
besides the array values that are being inserted as well. This is my simple
INSERT code:
$sql = "INSERT INTO db
(Date,Time,Phone,Account,AccountType,RateClass,VoltLevel,IsoZone,TaxDist,Loa
dProfile,ServiceName,ServiceAddr
I guess one of the problems is that PHP has a limited number of dbase
functions and I'm not able to run SQL Queries on a dbf database. Basically I
have to make-do with the few dbase() functions I have available in PHP.
But I do get your logic and it's pretty helpful. I did re-write the code
using
Robert Cummings wrote:
> On Fri, 2007-05-25 at 09:10 -0400, tedd wrote:
>> What a hoot!
>>
>> When I saw the the number of post to this thread, I figured someone
>> got their shorts in a knot.
>>
>> Only a bunch of geeks could get into this much discussion of what day
>> of the week it is. Aren't
WORKS!!
Thanks.
On 5/24/07 5:34 PM, "Richard Lynch" <[EMAIL PROTECTED]> wrote:
>> $db = dbase_open(try.dbf", 0);
>> if ($db) {
>
> $exists = false;
> $today = false;
>
>> $record_numbers = dbase_numrecords($db);
>> for ($i = 1; $i <= $record_numbers; $i++) {
>> $r
On 5/25/07, tedd <[EMAIL PROTECTED]> wrote:
> If you find
>any bugs --- and I'm sure you will --- report them on the SourceForge
>project page. And don't mind the cluttered code. It's also in the process
>of being revamped.
>
>Thanks.
>
>--
>Daniel P. Brown
Daniel:
Your demo:
http://is
On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote:
> -Original Message-
> From: Tijnema [mailto:[EMAIL PROTECTED]
> > >
> > > It's just the way you write script, my included files contain only
> > > functions & variables, no executing code. 99% I have a class around
> > > it.
> > > If you
On May 25, 2007, at 10:44 AM, Darren Whitlen wrote:
Jared Farrish wrote:
On 5/25/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
I apologize for posting the entire add script, but I wasn't sure
what
was needed to check if I was doing it right or not. I figured in
this
case it was better to g
Jared Farrish wrote:
On 5/25/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
I apologize for posting the entire add script, but I wasn't sure what
was needed to check if I was doing it right or not. I figured in this
case it was better to give to much info rather then not enough. My
big main goal it
> -Original Message-
> From: Tijnema [mailto:[EMAIL PROTECTED]
> > >
> > > It's just the way you write script, my included files contain only
> > > functions & variables, no executing code. 99% I have a class around
> > > it.
> > > If you write it like that, than there's no problem with ex
At 2:46 PM +0100 5/25/07, Richard Davey wrote:
Hi Tedd,
Friday, May 25, 2007, 2:42:34 PM, you wrote:
At 3:28 PM +0100 5/23/07, Richard Davey wrote:
if ($_POST['status_code'] == 'C')
^^
Read-up on the if/else structure and comparison operators. You'd never
use a
On 5/25/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
I apologize for posting the entire add script, but I wasn't sure what
was needed to check if I was doing it right or not. I figured in this
case it was better to give to much info rather then not enough. My
big main goal it to make this bit of s
On Fri, 2007-05-25 at 16:17 +0200, Tijnema wrote:
> On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote:
> > Why are your include files in your web root in the first place? Move them
> > elsewhere on your filesystem and then it's not even possible to access them
> > via the web.
> >
> > Edward
> >
> O
On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote:
> -Original Message-
> From: Tijnema [mailto:[EMAIL PROTECTED]
> Sent: 25 May 2007 15:00
> To: tedd
> Cc: Kevin Murphy; Stephen; php
> Subject: Re: [PHP] Include file questions
>
>
> On 5/25/07, tedd <[EMAIL PROTECTED]> wrote:
> > At 1:5
At 9:49 AM -0400 5/25/07, Robert Cummings wrote:
On Fri, 2007-05-25 at 09:42 -0400, tedd wrote:
At 3:28 PM +0100 5/23/07, Richard Davey wrote:
>
>
>if ($_POST['status_code'] == 'C')
> ^^
>
>Read-up on the if/else structure and comparison operators. You'd never
>
> -Original Message-
> From: Tijnema [mailto:[EMAIL PROTECTED]
> Sent: 25 May 2007 15:00
> To: tedd
> Cc: Kevin Murphy; Stephen; php
> Subject: Re: [PHP] Include file questions
>
>
> On 5/25/07, tedd <[EMAIL PROTECTED]> wrote:
> > At 1:55 PM -0700 5/23/07, Kevin Murphy wrote:
> > >.inc fi
On Fri, 2007-05-25 at 16:00 +0200, Tijnema wrote:
> On 5/25/07, tedd <[EMAIL PROTECTED]> wrote:
> > At 1:55 PM -0700 5/23/07, Kevin Murphy wrote:
> > >.inc files have a disadvantage in that if you view the file:
> > >
> > >http://www.yoursite.com/file.inc
> > >
> > >you can see the php code. I pref
On 5/25/07, tedd <[EMAIL PROTECTED]> wrote:
At 1:55 PM -0700 5/23/07, Kevin Murphy wrote:
>.inc files have a disadvantage in that if you view the file:
>
>http://www.yoursite.com/file.inc
>
>you can see the php code. I prefer not to use those just on the off
>chance that someone can see my code a
On 5/25/07, blueboy <[EMAIL PROTECTED]> wrote:
How can I do the equivalent of this in windows or is there a tool I can
use?
R.
Windows file systems don't have permissions like Unix-bases file systems.
For FAT16/FAT32 there are only a few (Read-Only & Hidden), for NTFS
file system there are mo
On Fri, 2007-05-25 at 09:42 -0400, tedd wrote:
> At 3:28 PM +0100 5/23/07, Richard Davey wrote:
> >
> >
> >if ($_POST['status_code'] == 'C')
> > ^^
> >
> >Read-up on the if/else structure and comparison operators. You'd never
> >use a single equals sign in this example.
>
At this point having gone through all sorts of permissions and running
Apache as User and what not - I'm pretty close to giving up myself.
Fortunately I do have other alternates to running this particular
application - but it would have helped if things worked.
On 5/24/07 6:23 PM, "David Giragos
Hi Tedd,
Friday, May 25, 2007, 2:42:34 PM, you wrote:
> At 3:28 PM +0100 5/23/07, Richard Davey wrote:
>>
>>
>>if ($_POST['status_code'] == 'C')
>> ^^
>>
>>Read-up on the if/else structure and comparison operators. You'd never
>>use a single equals sign in this example.
At 3:28 PM +0100 5/23/07, Richard Davey wrote:
if ($_POST['status_code'] == 'C')
^^
Read-up on the if/else structure and comparison operators. You'd never
use a single equals sign in this example.
Rich:
Read up on different font sizes that people use and you'll nev
At 1:55 PM -0700 5/23/07, Kevin Murphy wrote:
.inc files have a disadvantage in that if you view the file:
http://www.yoursite.com/file.inc
you can see the php code. I prefer not to use those just on the off
chance that someone can see my code and use that as the basis for
figuring out a way
On Fri, 2007-05-25 at 09:10 -0400, tedd wrote:
> What a hoot!
>
> When I saw the the number of post to this thread, I figured someone
> got their shorts in a knot.
>
> Only a bunch of geeks could get into this much discussion of what day
> of the week it is. Aren't we a sad lot?
Only if we tak
At 8:57 AM -0700 5/23/07, Jim Lucas wrote:
kvigor wrote:
if($value != 'Alabama' || $value!= 'AL' || $value != 'Alaska' ||
$value!= 'AK' || $value !=
-snip-
Ok, here is something that might help you.
$states['AL'] => 'Alabama';
$states['AK'] => 'Alaska';
-snip-
$states['WY'] => 'Wyoming';
Richard Lynch wrote:
On Wed, May 23, 2007 4:27 am, Darren Whitlen wrote:
John Comerford wrote:
Not thought about the memory engine actually. Will give that a try and
see how it turns out.
Let us know.
Finaly managed to get it going (uses AJAX which im not to great at..),
and the database me
What a hoot!
When I saw the the number of post to this thread, I figured someone
got their shorts in a knot.
Only a bunch of geeks could get into this much discussion of what day
of the week it is. Aren't we a sad lot?
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com
On May 25, 2007, at 8:47 AM, Jochem Maas wrote:
check this, check that.
granted the OP posted quite a bit of irrelevant code with regard to
SQL injection protection. BUT his use of parameterized queries
should protect
against injection because MySQL knows what to do with the data
(i.e. esc
check this, check that.
granted the OP posted quite a bit of irrelevant code with regard to
SQL injection protection. BUT his use of parameterized queries should protect
against injection because MySQL knows what to do with the data (i.e. escape it),
which only leaves the question as to whether th
Hello Everyone,
I have a problem with GET strings. I use
$_SERVER["REDIRECT_QUERY_STRING"] to get the value-pairs in the URL.
The problem is that there is a cID variable that keeps amending itself
to the string continuously everytime someone clicks on a different
category link on the website. For
How can I do the equivalent of this in windows or is there a tool I can
use?
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 5/24/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote:
You may have something here.
Problem is, I don¹t know how to mess with how & under what user Apache is
running and no one else here does either so basically I have to figure
this one out! I would like to, as you suggested, try and ³ge
57 matches
Mail list logo