Can I know the platform on which you are running apache.
-Original Message-
From: Matthew Sims [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 1:57 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] .htaccess and .htpasswd
> # .htaccess
> AuthType Basic
> AuthName "Restricted Area"
>
Hey Matt,
> > /../imgs/blah.jpg should return
> > http://www.textx.com/t1/t2/imgs/blah.jpg
> >
> > but its returning:
> > http://www.textx.com/t1/t2/t3/imgs/blah.jpg
> >
> > and this: /../../imgs/blah.jpg
> > should return:
> http://www.textx.com/t1/imgs/blah.jpg
> >
> > but its returning:
> >
There are several JavaScript solutions for validating forms on the
client side. Search on hotscripts.com and google.com.
Client-side validation (in the browser) is useful, but you shouldn't
depend on it to guarantee that the data that your users submit is
valid. You should also validate the da
On Thursday 14 October 2004 02:40, Dave Grant wrote:
> echo "Thumb image uploaded to ".$thumbPath."\n";
> echo "Full image uploaded to ".$fullPath."\n";
Do these look OK?
> Everything works fine, except that the images are simply not there when we
> go look for them. The best explanation I can
On Thursday 14 October 2004 06:02, Jason FB wrote:
> Does anyone know how I can create a directory which is owned by my
> user account on this server-- or have any other creative suggetions?
If you have it, use FTP.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software S
On Thursday 14 October 2004 04:01, Mark Hubert wrote:
> However, when I send a message to subscribe to the EZMLM list, it sends
> ok, but doesn't get added to the list. When I send a test message to
> myself I noticed that the Return-path in the email sent is not what I
> set in my script, but tha
On Thursday 14 October 2004 06:19, BOOT wrote:
[snip]
> I have been able to do this by means of if comparisons but the more I
> variables I add then the more complicated and messy it becomes. There has
> to be a simpler way. If it makes any difference, the variables could just
> as easily be arra
On Wed, 13 Oct 2004 17:19:28 -0500, BOOT <[EMAIL PROTECTED]> wrote:
> the code should determine that $a and $b have the lowest value, and randomly
> pick one of them. if $a was = 1 instead then it would just pick $a
>
> Thanks for any suggestions!
Use an array.
--
Greg Donald
Zend Certified En
Any help with this would be appreciated.
I am trying to come up with something that will find which variable(s) have
the lowest value and inidicate which variable this is. In the event that
variables have an equally low value then it is to randomly pick one of the
variables and idicate which this
On Thursday 14 October 2004 00:55, Jay Blanchard wrote:
> [snip]
> Hello, I would like to know if there is a patch just for the security
> fix from PHP-4.3.8 to PHP-4.3.9 and where can I found it.
> [/snip]
>
> Looking at http://www.php/net/downloads I do not see one.
Maybe that's why the OP asked
On Thursday 14 October 2004 01:10, Matthew Sims wrote:
> The mail settings in php.ini is for Windows only. When using PHP on
> Unix/Linux, mail() always defaults to the sendmail binary on localhost. So
> you can ignore what it says in phpinfo.
That's incorrect. The
sendmail_path =
setting is
PHP General List,
I am trying to use mkdir() on a shared unix server to create a
directory within my home space. I have to have the ability for my
user on this server to upload to this folder, however I think that
mkdir() creates the directory and makes it owned by the process
running Apache --
* Thus wrote Adil:
>
> As far as the code goes what I'm doing is retrieving each record from the
> database and assigning the "value" attribute of each checkbox the unique id
> from the database. From that point on, when a checkbox is checked and the
> delete button is pressed, I push each checke
Can this be done when the file already exists?
cleong at organic dot com says
29-Mar-2000 04:36
rename() doesn't seem to overwrite files on NT. The behavior is an
OS-dependent side-effect I guess.
on the PHP site @ http://us2.php.net/manual/en/function.rename.php
So this this true, or is there
On Wed, 2004-10-13 at 16:11 -0400, Adil wrote:
> function deleteFiles() {
> foreach($_POST['stack'] as $i) {//This should work but I
> can't
> tell if it is or isn't
> mysql_query("DELETE FROM uploads WHERE upload_id =" . "$i");
> }
>header("Location: http://"; . $_SERV
On Wed, 13 Oct 2004 23:06:29 +0300, Nicolae Serban
<[EMAIL PROTECTED]> wrote:
> I try to install php 5.01 on Windows 2003 Server with Apache 2.052 !
> I try to install as Module and as Cgi !! ( i restart the server if you
> asking of that :-) )
>
> When i try an test.php ( just phpinfo(); ) in th
On Wed, 13 Oct 2004 15:55:46 -0400, Don <[EMAIL PROTECTED]> wrote:
> I'm getting an error trying to install PHP 5.0.2 on a fresh Fedora Core 2
> installation:
>
> "Sorry, I cannot run apxs
> apxs was not found"
>
> I verified this by searching the drive, it is not there. Is Apache
> installed by
* Thus wrote bruce:
> curt...
>
> when i print $rs, i get the following:
> displaying $rs shows that $rs is:
>
> ResultSet Object (
>
> [rows] => Array ( ) <<<
> [pos] => 0 <
>...
> when i print $rs->pos, i get '0'
>
> so a
[snip]
function deleteFiles() {
foreach($_POST['stack'] as $i) {//This should work but I
can't
tell if it is or isn't
mysql_query("DELETE FROM uploads WHERE upload_id =" . "$i");
}
[/snip]
Try print_r $_POST['stack'] and see what you get.
--
PHP General Mailing List (http
Yes, I sent it on wrong place.
:)
Sorry.
-afan
Matthew Sims wrote:
# .htaccess
AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/www/html/path/to/file/admin/.htpasswd"
require valid-user
# .htpasswd
Admin:ChqaxtiTH1e0E
Both files are in same directory.
Why it doesn't work?
Can I use as Auth
Afan Pasalic wrote:
# .htaccess
AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/www/html/path/to/file/admin/.htpasswd"
require valid-user
# .htpasswd
Admin:ChqaxtiTH1e0E
Both files are in same directory.
Why it doesn't work?
Can I use as AuthUserFile ".htpasswd" since they are in the same
Oops!
Sorry guy, sent to wrong place!
I apology.
:)
-afan
Matt M. wrote:
try an apache mailing list.
.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try an apache mailing list.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> # .htaccess
> AuthType Basic
> AuthName "Restricted Area"
> AuthUserFile "/www/html/path/to/file/admin/.htpasswd"
> require valid-user
>
> # .htpasswd
> Admin:ChqaxtiTH1e0E
>
> Both files are in same directory.
>
> Why it doesn't work?
>
> Can I use as AuthUserFile ".htpasswd" since they are in t
# .htaccess
AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/www/html/path/to/file/admin/.htpasswd"
require valid-user
# .htpasswd
Admin:ChqaxtiTH1e0E
Both files are in same directory.
Why it doesn't work?
Can I use as AuthUserFile ".htpasswd" since they are in the same directory?
I know it
Hey everyone, I'm trying to delete multiple records from a database using
PHP. I have a file list page which shows each entry in the database with a
checkbox next to it. At the bottom of the page is a "Delete" button. A
user should be able to check as many items on the file list and hit delete
wh
I try to install php 5.01 on Windows 2003 Server with Apache 2.052 !
I try to install as Module and as Cgi !! ( i restart the server if you
asking of that :-) )
When i try an test.php ( just phpinfo(); ) in the web page apears
just the code of the test.php !!!
When i try to install as module i h
Thanks so much for the insight which is a much simpler way.
I successfully set up a test page (a form) that takes email to, from,
subject and body and sends it.
\r\n";
$headers .= "Return-Path: <$emailfrom>\r\n";
if(mail($emailto, $emailsub, $emailbody, $headers)) {
echo"Email Sent";
Hi,
I'm getting an error trying to install PHP 5.0.2 on a fresh Fedora Core 2
installation:
"Sorry, I cannot run apxs
apxs was not found"
I verified this by searching the drive, it is not there. Is Apache
installed by default without using --enable-so ?
If so, what can I do?
Thanks,
Hello. I am working on a rather large form for my work that accepts, among
other things, 2 images, one smaller one 65 x 93 pixels, and a larger one 105
x 150 pixels, both in JPG format. Let me run through the whole process,
showing my code.
I use simple, standard HTML for the form:
I chec
The Snake from Hell! wrote:
Yes. Try yourself. All 3 ways provided to unsubscribe do no
work.
Just worked for me. I'm subscribed with two email address...one for
home, and one for work...and unsubscribed the home one. Emails kept
coming thru to the work address, but no more to the home address.
Huang, Ou wrote:
I am currently working on a newsletter mailing list project and
developed a form in php. I would like to validate before it is
submitted. What would be the best way to validate a form? Write your own
routines or using a form validator. I just started learning PHP, so
don't have muc
Hello,
On 10/13/2004 01:41 PM, Jed R. Brubaker wrote:
I have been having all kinds of problems with the mail() function in PHP. I
realize that there are problems inheritly, but I think I am still trying to
track down the problem.
My latest theory is that PHP isn't set up to work with the right m
> I've got to use some server side includes (and some SETs).
> And PHP is set up as a CGI program.
>
> If I include the php page from the .shtml page, the php page cannot
> receive queries.
>
> .php files are not set up to process these includes.
>
> And of course virtual(), etc. do not work bec
Yes. Try yourself. All 3 ways provided to unsubscribe do no
work.
Brad
>[snip]Been trying to unsubscribe this email account for
days nowand now go. Anyone on this >list have access to
remove me?
>[/snip]
>
>And you have clicked on the unsub link in the e-mail?
>
>-- PHP General Mailing List (htt
Hello,
On 10/13/2004 03:03 PM, Ou Huang wrote:
I am currently working on a newsletter mailing list project and
developed a form in php. I would like to validate before it is
submitted. What would be the best way to validate a form? Write your own
routines or using a form validator. I just started l
Huang, Ou wrote:
> I am currently working on a newsletter mailing list project and
> developed a form in php. I would like to validate before it is
> submitted. What would be the best way to validate a form? Write your
> own routines or using a form validator. I just started learning PHP,
> so don'
I've got to use some server side includes (and some SETs).
And PHP is set up as a CGI program.
If I include the php page from the .shtml page, the php page cannot
receive queries.
.php files are not set up to process these includes.
And of course virtual(), etc. do not work because PHP is set u
I am currently working on a newsletter mailing list project and
developed a form in php. I would like to validate before it is
submitted. What would be the best way to validate a form? Write your own
routines or using a form validator. I just started learning PHP, so
don't have much experience on t
> So as I am not an administrator, and all I have to go on is phpinfo
> (unless
> anyone has some suggestions), should I be seeing some trace of qmail in
> the
> phpinfo?
>
> That is why I posted. I apologize if I didn't make it clear. I have read
> all
> about mail, and even used the fantastic Lem
- Original Message -
From: "Jed R. Brubaker" <[EMAIL PROTECTED]>
Date: Wednesday, October 13, 2004 1:21 pm
Subject: Re: [PHP] mail problems - phpinfo information
> So as I am not an administrator, and all I have to go on is
> phpinfo (unless
> anyone has some suggestions), should I be
Jed R. Brubaker wrote:
So as I am not an administrator, and all I have to go on is phpinfo (unless
anyone has some suggestions), should I be seeing some trace of qmail in the
phpinfo?
No.
Given the paths phpinfo is reporting, is there anyway that the system could
somehow still be using qmail? O
curt...
when i print $rs, i get the following:
displaying $rs shows that $rs is:
ResultSet Object (
[colNames] =>
Array ( [0] => id [1] => username [2] => password [3] => email [4] =>
is_super )
[colAliases] =>
Array ( )
[colTables] =>
Array ( )
[colTableAliases] =>
Array ( )
[colTypes] =>
Array
Jay Blanchard wrote:
From http://www.php.net/mail, something you have not read apparently
Pt. Read? Why would I do that? ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
So as I am not an administrator, and all I have to go on is phpinfo (unless
anyone has some suggestions), should I be seeing some trace of qmail in the
phpinfo?
That is why I posted. I apologize if I didn't make it clear. I have read all
about mail, and even used the fantastic Lemos MIME proble
Jed R. Brubaker wrote:
I have been having all kinds of problems with the mail() function in PHP. I
realize that there are problems inheritly, but I think I am still trying to
track down the problem.
My latest theory is that PHP isn't set up to work with the right mailing
program. I know that ou
> header('Content-Type: application/ms-excel');
> header('Content-Disposition: attachment; filename="project.htm"'); ?>
>AAA used by
excel to determine translation, I believe
I believe the Content-Type is referred to as a mime header (8-}
> hi...
>
> i'm dealing with an app that's throwing an err/warning msg.. i'm using
> php5,
> on a linux rh8.0 system.
>
> i believe the code was written for php4.
>
> the code is:
>
> if($rec)
> {
> $rs->append($setDefaults);
> $rs->rows[$rs->pos]->fields=$rec; < $rs->rows[$rs->pos]->id=-1;
>
* Thus wrote bruce:
> hi...
>
> i'm dealing with an app that's throwing an err/warning msg.. i'm using php5,
> on a linux rh8.0 system.
>
> i believe the code was written for php4.
>
> the code is:
>
> if($rec)
> {
> $rs->append($setDefaults);
> $rs->rows[$rs->pos]->fields=$rec; <...
>
>
> I have been having all kinds of problems with the mail() function in PHP.
> I
> realize that there are problems inheritly, but I think I am still trying
> to
> track down the problem.
>
> My latest theory is that PHP isn't set up to work with the right mailing
> program. I know that our system is
On Oct 13, 2004, at 11:30 AM, John Holmes wrote:
Philip Thompson wrote:
Well, whenever I click on the link to export to excel (in IE), a
"File Download" box pops up. It says the 'File name: toexcel.php' and
the 'File type: ' (blank). It asks if I want to open or save.
However, the File name shou
[snip]
... making me wonder if a local sendmail is handling the requests
instead.
With all of the above refering to sendmail, is there anyway that my
mail()
can actually be using qmail?
[/snip]
>From http://www.php.net/mail, something you have not read apparently
"For the Mail functions to
$rec is not empty
jason...
1st, if $rec was empty.. the 'if' section would not be called, and the err
would not be thrown
2nd.. i printed the value of '$rec' below the 'if' block of code...
but.. umm thanks...
-Original Message-
From: Jason Davidson [mailto:[EMAIL PROTECTED]
[snip]
Hello, I would like to know if there is a patch just for the security
fix from PHP-4.3.8 to PHP-4.3.9 and where can I found it.
[/snip]
Looking at http://www.php/net/downloads I do not see one.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
In my case it will be actually "product name (product number)" and
always the same. That means Matt's code will do exactly what I need.
But, thanks for your post - could happen to use that on other place
:)
Thanks John
-afan
John Holmes wrote:
Matt M. wrote:
on one place I have string "something
I gather $rec is empty.. :) make sure there is something in it before
you assign it to that object member.
Jason
<[EMAIL PROTECTED]> wrote:
>
> hi...
>
> i'm dealing with an app that's throwing an err/warning msg.. i'm using php5,
> on a linux rh8.0 system.
>
> i believe the code was written
Matt M. wrote:
on one place I have string "something (something_2)"
I have to take out of the string everything in brackets and brackets as
well.
probably I will need to use Regular Expression Functions but I'm really
bad with them :)
$string = "something (something_2)";
$pattern = "/\(.*\)/";
$re
hi...
i'm dealing with an app that's throwing an err/warning msg.. i'm using php5,
on a linux rh8.0 system.
i believe the code was written for php4.
the code is:
if($rec)
{
$rs->append($setDefaults);
$rs->rows[$rs->pos]->fields=$rec; pos]->id=-1;
}
$rec = Array ( [0] => 0 [1]
I have been having all kinds of problems with the mail() function in PHP. I
realize that there are problems inheritly, but I think I am still trying to
track down the problem.
My latest theory is that PHP isn't set up to work with the right mailing
program. I know that our system is supposed to
Hello, I would like to know if there is a patch just for the security
fix from PHP-4.3.8 to PHP-4.3.9 and where can I found it.
Thank you...
Federico Petronio
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Philip Thompson wrote:
Well, whenever I click on the link to export to excel (in IE), a "File
Download" box pops up. It says the 'File name: toexcel.php' and the
'File type: ' (blank). It asks if I want to open or save. However, the
File name should not be toexcel.php (that's the page), it shoul
On Oct 13, 2004, at 10:40 AM, Gryffyn, Trevor wrote:
To all who've helped.
Thanks for your input. [embarrassment] Truthfully, when I gave that
example in my original email, I didn't try that specific one. But it
did work for me also when I attempted that one. [/embarrassment]
The reason I was getti
In an attempt to make amends, have you tried PEAR's
Spreadsheet_Excel_Writer?
http://pear.php.net/package/Spreadsheet_Excel_Writer
It certainly works, we used it last week (although I have no *personal*
experience of it)
Cheers
Chris
Chris Dowell wrote:
sorry
[skulks off into dark corner to cr
On Wed, 13 Oct 2004 10:31:54 -0400, Jerry Swanson <[EMAIL PROTECTED]> wrote:
> I want to send email every 24. What time format you recomend to use?
> In what format the data should be store in mysql?
Your question is more appropriate for php-db or a MySQL list serv.
I'm not sure why you need to s
On Wed, 2004-10-13 at 10:31 -0400, Jerry Swanson wrote:
> I want to send email every 24. What time format you recomend to use?
> In what format the data should be store in mysql?
>
> TH
>
every 24? hours? minutes?
Are you going to be running a script all the time to do this?
You might want to
Hey,
Dont worry about talking crap, I took that risk when I
started this thread :-) I was hopeing that maybe the
image would have the info incoded in it which php
could read before going through the uploador
something like that.
I too am not really sure if its possible, but am
hopeing the "bi
Hello,
that's usually not possible because your webserver can't access the image
on your computer; a possible solution might be to determine the image size
via javascript and submit it with the form, so you can accept or deny the
image upload in your php script - problem: with javascript running on
> Philip Thompson wrote:
>
> > -
> > > header('Content-Type: application/ms-excel');
> > header('Content-Disposition: attachment; filename="project.xls"');
> > ?>
> >
> >
> >
> > Something
> > Something else
> >
> >
> > -
> >
> > I just want i
I want to send email every 24. What time format you recomend to use?
In what format the data should be store in mysql?
TH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That was fast! :)
Thanks Matt
-afan
Matt M. wrote:
on one place I have string "something (something_2)"
I have to take out of the string everything in brackets and brackets as
well.
probably I will need to use Regular Expression Functions but I'm really
bad with them :)
$string = "something (somet
> on one place I have string "something (something_2)"
> I have to take out of the string everything in brackets and brackets as
> well.
> probably I will need to use Regular Expression Functions but I'm really
> bad with them :)
$string = "something (something_2)";
$pattern = "/\(.*\)/";
$replace
sorry
[skulks off into dark corner to cry]
Philip Thompson wrote:
Chris, as you may have (or may have not) noticed, I did that. Look at my
original email. I wasn't sure if there was more to it than that.
~Philip
On Oct 13, 2004, at 8:34 AM, Chris Dowell wrote:
Header("Content-type: application/m
Chris, as you may have (or may have not) noticed, I did that. Look at
my original email. I wasn't sure if there was more to it than that.
~Philip
On Oct 13, 2004, at 8:34 AM, Chris Dowell wrote:
Header("Content-type: application/ms-excel");
or whatever the content type should be (on IE you can pr
Hi,
on one place I have string "something (something_2)"
I have to take out of the string everything in brackets and brackets as
well.
probably I will need to use Regular Expression Functions but I'm really
bad with them :)
Please, any help!
-afan
--
PHP General Mailing List (http://www.php.net/
Paulo JF Silva wrote:
Hi,
I have PHP 4.3.5 and safe mode on. When I create a new image with
imagecreatefromjpeg(), the image owner is 'httpd' and not my ftp user.
[this is in a shared host].
I would like to know if there is any way to create the image with my
user... I can workaround mkdir & st
> It worked for me, for thousands of others, but not for everybody. Some people
> just could not use the site anymore. So I guess the SERVER_PORT var can not
> necessarily be count on.
>
> Has anybody an idea how to overcome this?
try
if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS'
I could
But on massive file uploads the various gateways between clients and
server are timing out.
I've no evidence that PUT would help me solve this problem, but it's an
avenue I thought worth pursuing, as the whole point of the PUT method is
to send large quantities of data to a server. I am hop
Header("Content-type: application/ms-excel");
or whatever the content type should be (on IE you can probably get away
with application/octet-stream as it bases its decisions of file
extensions for a lot of things).
HTH
Chris
Philip Thompson wrote:
How exactly would I change the mime headers?
~Ph
How exactly would I change the mime headers?
~Philip
On Oct 12, 2004, at 5:07 PM, Vail, Warren wrote:
Have you tried changing your file name to project.htm but continue
issuing
the mime headers for excel?
Warren Vail
-Original Message-
From: Philip Thompson [mailto:[EMAIL PROTECTED]
Sent:
Chris Dowell wrote:
Guys
According to the docs, you need to use either php://stdin or php://input
to read from files uploaded via PUT, however I'm unable to get even
that far.
My HTML form is as shown:
However both firefox & IE use GET instead of PUT. Has anyone used PUT
for anything, and
Guys
According to the docs, you need to use either php://stdin or php://input
to read from files uploaded via PUT, however I'm unable to get even
that far.
My HTML form is as shown:
However both firefox & IE use GET instead of PUT. Has anyone used PUT
for anything, and if so, how did you g
[snip]
Is FPDF a suitable replacement to PDFlib or should I be looking to use
another library? Any other comments are welcome about FPDF.
[/snip]
Love it, use it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
Im sure this has been asked before. Im about to start development of an
export section of an intranet where the invoices generated are exported
to a PDF.
I have looked at PDFlib, however I do not wish to pay for the licence
cost, so Im looking for a free alternative, I've found FPDF whic
input must be urlencoded - see http://www.php.net/urlencode for details.
Regards,
Sune Rievers
On Wed, 13 Oct 2004 18:23:25 +0800, Suka Ada, I Nyoman
<[EMAIL PROTECTED]> wrote:
> hi,
> I am wondering how do we pass a GET value that has '&' sign..
> let's say I have this:
>
> process.php?mode=tes
To view the terms under which this email is distributed, please go to
http://disclaimer.leedsmet.ac.uk/email.htm
> -Original Message-
> From: Chris Dowell [mailto:[EMAIL PROTECTED]
> Sent: 13 October 2004 11:57
>
> Note also that you didn't quote the index you were using inside the
>
that solved it! thanks alot Stefan.
-Guido
Stefan Dengscherz wrote:
Hello,
you might try using the urlencoded version of the '&' sign which is '%26'.
Works perfectly for me ;)
Best regards,
-sd
On Wed, Oct 13, 2004 at 06:23:25PM +0800, Suka Ada, I Nyoman wrote:
hi,
I am wondering how do we pass a G
[snip]
Been trying to unsubscribe this email account for days now
and now go. Anyone on this list have access to remove me?
[/snip]
And you have clicked on the unsub link in the e-mail?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
I am wondering how do we pass a GET value that has '&' sign..
let's say I have this:
process.php?mode=test&url=http://someurl.com/index.php?a=10&b=200
that way, process.php will have three variables:
$_GET['mode'] ( = 'test' )
$_GET['url'] ( = 'http://someurl.com/index.php?a=10' )
$_GET['b']
Thanks Chris, that'll help keep my code a bit more 'compact'.
(Sorry Harlequin, kinda hijacked your post here)
Graham
> -Original Message-
> From: Chris Dowell [mailto:[EMAIL PROTECTED]
> Sent: 13 October 2004 11:57
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Query Returning Error
>
>
>
You can get around this problem more easily by putting your variables
inside curly brackets when they appear inside strings.
See here:
http://uk.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex
Or as an example:
$Query01 = "SELECT * FROM Users
WHERE UserID = '{
Besides adding $ to Query01, I have had little luck in the past when using
$_POST or $_GET directly in an evaluated string. If you are still having
problems, try something like:
HTH
Graham
> -Original Message-
> From: Harlequin [mailto:[EMAIL PROTECTED]
> Sent: 13 October 2004 08:32
>
I think you'll find that this is more of a Javascript problem than a
PHP one.
On 13 Oct 2004, at 12:11, Bruno Santos wrote:
hello all.
I've a question that i might think is not much related with PHP, even
the pages are PHP and everything is working with PHP.
I've a FORM in my site to be written
hello all.
I've a question that i might think is not much related with PHP, even
the pages are PHP and everything is working with PHP.
I've a FORM in my site to be written by the user, but, i need to know
before the value of a field to fill another field in the form depending
with the
value of
Concerning PEAR::Auth
I can't tune interaction between PEAR::Auth and MySQL auth table .
Typical code from manual
";
echo "";
echo "";
echo "";
echo "";
}
$a = new Auth("DB", $dsn, "loginFunction");
$a->start();
if ($a->getAuth()){
echo "OK";
}
?>
With typical SQL statement
On Wednesday 13 October 2004 15:08, Francis Chang wrote:
[snip]
> access the post variables. My question is, is the $HTTP_POST_VARS global
> still populated for backwards compatibility? In other words, if I have an
> old script that has the following piece of code running on a PHP5.0
> environm
On Wed, 13 Oct 2004 08:32:17 +0100, Harlequin
<[EMAIL PROTECTED]> wrote:
> Morning all.
>
> this is such a basic question I'm embarrassed to ask but the query worked
> fine a few minutes ago and now returns an error:
>
> I get an error:
>
> Parse error: parse error, unexpected '=' in sample.php
should Query01 have a $ in front of it, i assume its a var
Jason
"Harlequin" <[EMAIL PROTECTED]> wrote:
>
> Morning all.
>
> this is such a basic question I'm embarrassed to ask but the query worked
> fine a few minutes ago and now returns an error:
>
> I get an error:
>
> Parse error:
Doh...!
thanks mate.
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wednesday 13 October 2004 15:32, Harlequin wrote:
>
>> this is such a basic quest
On Wednesday 13 October 2004 15:32, Harlequin wrote:
> this is such a basic question I'm embarrassed to ask but the query worked
> fine a few minutes ago and now returns an error:
Change everything back to what it was a few minutes ago?
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
O
Morning all.
this is such a basic question I'm embarrassed to ask but the query worked
fine a few minutes ago and now returns an error:
I get an error:
Parse error: parse error, unexpected '=' in sample.php on line 2
[CODE]
// Authenticate User:
Query01 = "SELECT * FROM Users
WHERE UserI
1 - 100 of 101 matches
Mail list logo