I am getting a the follwing error:
Warning: fopen(/home/jon/pgpfiles/sgsdgsdg,w) - Permission denied in
/home/ethiorg/public_html/test.php on line 2
Warning: Supplied argument is not a valid File-Handle resource in
/home/ethiorg/public_html/test.php on line 3
Warning: Supplied argument is not
Hi everybody,
First of all, Excuse me for my english but I'm french.
I would like to know if somebody already used the com functions of PHP to
retrieve data from Reuters terminal using IDNDDE.
I'm a newbie in PHP, so i would appreciate if you could detailed the
answers
Regards
Laurent Drouet
Strange, are you sure it's 4.0.4 ??
The manual for array_shift() says it's supported from 4.0.0 .
Maybe try the alias array_pop() ?
otherwise there'll be other ways to strip the first part of the directory,
for example using regexp, try something like:
?
ereg(^[^/]/(.*)$,
I copied you script and ran it no probelm.
are you sure that apache is running as nobody?
run
ps -aux | grep httpd
mine is like this
apache6320 0.0 5.8 49120 7248 ?S10:54 0:00
/usr/sbin/httpd -
but yours might say
nobody6320 0.0 5.8 49120 7248 ?S
Hi Jon,
Warning: fopen(/home/jon/pgpfiles/sgsdgsdg,w) - Permission denied in
/home/ethiorg/public_html/test.php on line 2
the directory /home/jon/pgpfiles has mode 777 and is owned by nobody and
group is nobody. Apache runs under user nobody.
looks like you try to open a file outside the
Hi,
I am having a problem with any type of loop, for, foreach, while. I have a
PHP script that loops through an array that contains the contents of a text
file and processes the data it recieves.
My problem is that the loop will only manage about 18 iterations before
processing dies. I know
Hi Jon,
Warning: fopen(/home/jon/pgpfiles/sgsdgsdg,w) - Permission denied in
/home/ethiorg/public_html/test.php on line 2
the directory /home/jon/pgpfiles has mode 777 and is owned by nobody and
group is nobody. Apache runs under user nobody.
looks like you try to open a file outside
Hi All,
When I try to run apache, I get this error message:
Cannot load /usr/local/libexec/apache/libphp4.so into server:
/usr/local/libexec/apache/libphp4.so: Undefined symbol 'iconv_module_entry'
Any idea what I need to fix?
Thanks,
Brian
--
PHP General Mailing List
Hi,
I'm trying to let Webmin execute a script where I can use php as scripting
language... (It will be good to work with a language as php in a remote administration
server, as root!)
Now the STRANGE problem:
When I execute a test.cgi program from Webmin, it's executed as root, as it was
Show the loop code.
On Thu, 10 Jan 2002, Ash Young wrote:
Hi,
I am having a problem with any type of loop, for, foreach, while. I have a
PHP script that loops through an array that contains the contents of a text
file and processes the data it recieves.
My problem is that the loop
Hi,
Sorry about not showing the code, there is a lot of it. Now this script
works in my pc, running IIS5 but not on my web host.
If you remove various parts of the main if statments then it manages more
than 20. Depending which if statement is removed, changes how many
iterations it will last
On Thursday 10 January 2002 17:38, [EMAIL PROTECTED] wrote:
Strange, are you sure it's 4.0.4 ??
The manual for array_shift() says it's supported from 4.0.0 .
Maybe try the alias array_pop() ?
array_pop() and array_shift are *different* :)
array_pop() takes an element off the END of the
I'm not sure what function I need to use, but I want to test if a picture exists in a
directory and if it does to display it but if not display another graphic that says
'No Graphic Available'.
Would that be fopen()? or something else? I'm still new to PHP so any feedback would
be very
Yeah its 4.0.4. I figure it strange also since array_shift was there
since 4.0.0.
array_pop(), isn't that for the last element. I want to take out the
first element, thus array_shift.
Ill try the regexp and see how it goes...
Ill report back
Thanks
[EMAIL PROTECTED] wrote:
Strange, are you
On Thursday 10 January 2002 18:19, Dean Householder wrote:
I'm not sure what function I need to use, but I want to test if a picture
exists in a directory and if it does to display it but if not display
another graphic that says 'No Graphic Available'.
Would that be fopen()? or something
If I want to access Reuters using VBA I can do :
Sub Request ()
Rem Initiate a conversation with the IDN Server
ChannelNumber = DDEInitiate(REUTER, IDN)
Rem Issue a request and place value in cell A1 of the active
sheet
ActiveSheet.Cells(1,
You are right, I should've known (used it before) ..
Ofcourse you could do an array_reverse() before and after,
don't know about the performance impact of that however.
bvr.
array_pop() and array_shift are *different* :)
array_pop() takes an element off the END of the array.
array_shift()
Thats my biggest concern now, performance with whatever alternatives
that can be dreamed up...
Anyway, its 6 in the morning, time for sleep. Maybe Ill dream up
something else
[EMAIL PROTECTED] wrote:
You are right, I should've known (used it before) ..
Ofcourse you could do an
Hi,
I just installed IIS 5.0 and PHP 4.1.1 on Win 2000, and I'm wondering what happened to
the HTTP_X_FORWARDED_FOR? I doesn't seem to exist on my system. Is it just a variable
that needs to be changed, or has it been removed from PHP? Thanks.
Sebbe
On Thursday 10 January 2002 18:54, [EMAIL PROTECTED] wrote:
You are right, I should've known (used it before) ..
Ofcourse you could do an array_reverse() before and after,
LOL !!
don't know about the performance impact of that however.
array_pop() and array_shift are *different* :)
--
Actually, my 'don't know' was more like 'does anyone know?' .
But I figured I could find that out for myself.
Wrote a small script that creates an array (numeric indexed range) of
10,000 elements.
Then it calls array_reverse() on it 100 times.
This took a little more than 3 secs. on a P3,
Thank you for your prompt reply...
The problems seem to be some env variables (maybe I'm wrong) when
executing PHP as CGI...
I better explain with 2 samples:
file aaa.cgi
#!/bin/bash
echo Content-type: text/plain
echo
echo aaa
touch /home/test.txt
file bbb.cgi
Hi,
I have a little problem with a function. It calls him self and the var i is
lost! after the call!
can anybody help me?
(it's javascript)
function change_check_all(tree_item) {
a = document.all[tree_item + _check];
b = document.all[tree_item + _count];
for(i=0;ib.value;i++) {
This is because it creates a new thread, atleast I think it so. Use
global variables to prevent this from happening:
i = 0;
function change_check_all(tree_item) {
a = document.all[tree_item + _check];
b = document.all[tree_item + _count];
// changed the line below
for(i =
Hi!
I'm a PHP newcomer with session troubles, perhaps somebody would help me?
I've WIN 98, Apache 1.3.22. as localhost, PHP 4.0.6 and the FoxServ.
Everthing works fine but session_start (); gives me always an error:
Warning: open(/tmp\sess_628ded31c4a8b6f2ebb579e6eb4ec29a, O_RDWR) failed: m
-Original Message-
From: Eric McKeown [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2002 05:53
I
could store the list in a conventional serial array...
$valid[0] = Valid One;
$valid[1] = Valid Two;
$valid[2] = Valid Three;
.
and so on, and then use a for loop to iterate
Brian,
first off, Martin your suggestion looks great but I don't think its SQL
syntax is supported by MySQL. It's a good start though - gives me something
to work with :)
=until it is tried, you won't know! From an SQL point of view it looks ok. In fairness
to Martin, from the
'further
Hy,
[EMAIL PROTECTED] wrote:
Hi,
I just installed IIS 5.0 and PHP 4.1.1 on Win 2000, and I'm wondering what happened
to the HTTP_X_FORWARDED_FOR? I doesn't seem to exist on my system. Is it just a
variable that needs to be changed, or has it been removed from PHP? Thanks.
This has
Hi!
I'm trying to make a webpage which can be edited online. My problem is
the text that I need to be edited will contain of title and sub title
(here is an example of the layout)
Room for Rent
(picture of the room) bala bala
.
sorry I accidently send my message before I finished typing.
--
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 administrators, e-mail: [EMAIL PROTECTED]
hi
try something like
$_SERVER[HTTP_X_FORWARDED_FOR]
best regards
attila
Hy,
[EMAIL PROTECTED] wrote:
Hi,
I just installed IIS 5.0 and PHP 4.1.1 on Win 2000, and I'm wondering
what happened to the HTTP_X_FORWARDED_FOR? I doesn't seem to exist on my
system. Is it just a variable
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2002 19:22
I'm trying to write my code in accordance with the PHP 4.1.0 security
advisory -- that is, I want to use the $_GET and $_POST arrays when
grabbing variables passed with GET and POST forms.
-Original Message-
From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2002 20:56
while (!feof ($fp)) {
$line = fgets($fp, 4096);
$data = explode(,, str_replace(\, , $line)); //using
str_replace to get rid of quote marks
//following line to
Hi!
Could someone please help...
How do I send variable(s) over the url and I want to send it to the the
same page (not opening a new page)
Thank you very much for reviewing my email.
Dani
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi all,
you can find the PowerPoint-/StarOffice-/PHPPres-/whatever-
slides of nearly all sessions from the International PHP
Conference 2001 at
http://www.phpconference.de/2001/slides_en.php
or at the end of each session description in each track.
--
PHP trainings from experts in
On Friday 11 January 2002 00:21, Dani wrote:
Hi!
Could someone please help...
How do I send variable(s) over the url and I want to send it to the the
same page (not opening a new page)
Thank you very much for reviewing my email.
Dani
Hi Jason!
thanks for your email.
I have tried
http://www.mywebsite.com/mypage.php?myvariable1=value1myvariable2=value2
and adding this into my form
form = form1 method = post action =?php echo
$PHP_SELF?myvariable1=$myvariable1myvariable2=$myvariable2; ?
input type = text name=myvariable1
On Friday 11 January 2002 00:50, Dani wrote:
Hi Jason!
thanks for your email.
I have tried
http://www.mywebsite.com/mypage.php?myvariable1=value1myvariable2=value2
and adding this into my form
form = form1 method = post action =?php echo
Dani, you need to aska a specific question for us to help you.
-Original Message-
From: Dani [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 10:01 AM
To: PHP LIST
Subject: [PHP] Getting data from DB
Hi!
I'm trying to make a webpage which can be edited online. My problem is
Hi again!
I'm trying to develop a website where the user can edit the article
online. What is the best way to do this?
is it better using database or fopen() functions?
in mycase because the text (article ) is containing some pre formated
text, which one is the best way to do it?
Thank you!
Go to http://www.thickbook.com and look at Julie Meloni's tutorials,
particularly the one for custom error messages as she very nicely works it
up over about 3 iterations of the same simple script which includes a form
which calls its own script (PHP_SELF).
Miles Thompson
At 11:50 PM
Hi Dani,
i do prefer using a database. I think it is the most dynamic way
for creating and (important !!!) managing a website. Preformatted text
isn't a problem with a database.
Bye, Marcel
-Ursprüngliche Nachricht-
Von: Dani [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag,
On Friday 11 January 2002 01:11, Dani wrote:
First of all, please keep the discussion on the list :)
actually I'm trying to put a value from user input and then send the
variable and the value to the same page so that I can call other php
script.
Does this make any sense?
If I understand
Typically, when people talk about 'native' database access, they're
referring to accessing the database using the database's native interface,
not that the language directly supports the database. (i.e.: not limiting
everything to the lowest common denominator). The advantage you get from
Just a couple of thoughts here:
1. Now() outputs the date, so ASP does have that.
2. I hate the concept of saying that one of these products is superior to
the other. Why not just lay out the technical points of both, and let the
reader decide. I'm okay with somebody choosing ASP (or PHP) as
Hello Friends,
I've some performance problem, when I do sum() functions on my tables it
took 5-7 minutes to return the results.. here is my story:
I've table with 2461566 rows here is my table structure:
mysql describe imp_log;
Hey guys,
Has anyone used this before?? If so, is it a pain in the a$$?
I read the
documentation.. and sounds like you would need to re-code your
authentication system, sessions blah blah to work with it? or
am i going waay of target here??
All i wanna do is, customize my html...
I thought that $_GET[] and $_POST[] could be used in place of regular
variables... that is,
$sql = SELECT * FROM tablename WHERE
tablename.column=$_GET['criteria_integer'];
but unfortunately, this isn't working.
On Thursday, January 10, 2002, at 08:18 AM, Ford, Mike [LSS] wrote:
I thought that $_GET[] and $_POST[] could be used in place of regular
variables... that is,
$sql = SELECT * FROM tablename WHERE
tablename.column=$_GET['criteria_integer'];
but unfortunately, this isn't working. It resulted in the following
error message in the browser:
Parse error: parse
Yes, but $sql is passed to the database, which has no understanding of
$_GET. Will it take PHP that much longer to make this assignment:
$criteria_integer = $_GET['criteria_integer'];
With the benefit that the SQL is much easier to read
$sql = SELECT * FROM tablename WHERE
Would that be fopen()? or something else? I'm still new to PHP so any
feedback would be very appreciated.
Use file_exists() to check whether a file exists.
file_exists() function is quite slow.
in your case, better do fopen() to check if the file exist,
because you gonna do fopen() anyway
Is it possible to create a new pop account and a new alias on a server
with php ?
How ?
Ilic.
--
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 administrators, e-mail: [EMAIL
I may need some help on a project I am working on.
Does anyone know of a good source of PHP developers where I can advertise my
needs?
Rick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Dear List,
I have this sql command that grabs a result of 3 tables. What i want is if
there's a way to do a while printing the site and url and after it's finish
begin, printing site_2 and url_2.
SELECT celebridades.*, links_relacionados.Nome_Link as
site,links_relacionados.Url_link as url,
As a small, personal, enjoy-myself-project I'd like to run a
perpetual-running socket server. Problem is; I also want it to be
self-modifying so I can insert, remove and change functions as the
server is running.
The problem is; under normal circumstances, PHP won't let the script
redeclare
Okay, thanks. 'Cause I mean, the REMOTE_ADDR is still there. So you mean that the
HTTP_X_FORWARDED_FOR isn't working while I'm working localhost?
Sebbe
Hy,
[EMAIL PROTECTED] wrote:
Hi,
I just installed IIS 5.0 and PHP 4.1.1 on Win 2000, and I'm wondering what
happened
Here.
Grin - Miles Thompson
At 11:48 AM 1/10/2002 -0500, Richard Spangenberg wrote:
I may need some help on a project I am working on.
Does anyone know of a good source of PHP developers where I can advertise my
needs?
Rick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Erik,
Although, I've not proved this I think the PHP parser gets confused when
it sees a complex variable reference, $_GET[ 'criteria_integer' ]
embedded within double quotes. I've run into similar error messages so
I've been breaking out the variable from the double quotes as follows:
$sql =
Yeah, I've tried that and the $HTTP_SERVER_VARS but I keep getting this error:
PHP Warning: Undefined index: HTTP_X_FORWARDED_FOR in C:\Web\byenighte\phpinfo.php on
line 2
I'm using the recommended php.ini, by the way.
Sebbe
hi
try something like
Does anyone know of a good source of PHP developers where I can advertise
my
needs?
mailto:[EMAIL PROTECTED] :-)
While advertising isn't very welcome, we often see emails along the lines of
I have a project involving foo and bar, and I need someone who understands
xyzzy to work on it. Please
Okay, thanks. 'Cause I mean, the REMOTE_ADDR is still there. So you
mean that the HTTP_X_FORWARDED_FOR isn't working while I'm working
localhost?
REMOTE_ADDR contains the IP of the computer that requested your page.
If it was a proxy doing the request, you'll have the proxy's IP in this
If I understand you correctly, use Javascript to open a second browser
window for url_2.
Miles Thompson
At 02:49 PM 1/10/2002 -0200, Rodrigo Peres wrote:
Dear List,
I have this sql command that grabs a result of 3 tables. What i want is if
there's a way to do a while printing the site and
Good day,
I can not seem to get the h or H options to work at all with unpack().
I'm pretty sure that I have this right, although the documentation for this
function is bit sparse.
The code:
print The data has been encoded (.strlen($varbind). bytes in size).;
print Hex: PRE ;
Sorry, Ithink that I not explain right. I nedd to create a list, something
like:
url site br
url site br
url_2 site_2 br
url_2 site_2 br
When the values returned by url and site finished them proceed to url_2 and
site_2 values.
Thank's
Rodrigo
on 1/10/02 3:16 PM, Miles Thompson at [EMAIL
Richard Spangenberg wrote:
I may need some help on a project I am working on.
Does anyone know of a good source of PHP developers where I can advertise my
needs?
Rick
We've got a list at Yahoo! Groups
http://groups.yahoo.com/group/phpjobs/
for this sort of thing - though it's been
Thanks to the help of Philip Hallstrom we discovered a solution to my
problem. I'm posting it for posterity.
Apache seems to be able to use the mime type for SetHandler, so...
SetHandler application/x-httpd-php
...works perfectly.
Thanks,
--Chris
C J Michaels wrote in message [EMAIL
Jon Farmer wrote:
I am getting a the follwing error:
Warning: fopen(/home/jon/pgpfiles/sgsdgsdg,w) - Permission denied in
/home/ethiorg/public_html/test.php on line 2
the directory /home/jon/pgpfiles has mode 777 and is owned by nobody and
group is nobody. Apache runs under user nobody.
Two ways actually ...
You could execute two separate SQL statements, and process them one after
another.
or
You could process your result set, echo()'ing or print()'ing the first
elements of the result set, then go back to the beginning and do the second
set, something like this ...
for ($i
Okay, thanks. 'Cause I mean, the REMOTE_ADDR is still there. So you
mean that the HTTP_X_FORWARDED_FOR isn't working while I'm working
localhost?
REMOTE_ADDR contains the IP of the computer that requested your page.
If it was a proxy doing the request, you'll have the proxy's IP in
Hello list.
Need you help.
My aim is to str_replace ($word,b$word/b,$str). But: i want
str_replace not to differ uppers and lowers:
Rector = bRec/btor
after str_replace ('rec',brec/b,Rector) in other words.
It seemes to me ereg can help, but i'm still not good at it. Help please
Valentin
dn -
thanks SO much for your detailed reply. :)
yes there are tons of problems :( the last 3 consecutive Months issue is
tricky enough - but the fact that the database is set up all wrong for this
type of query is the real problem.
unfortunately changing the structure and field formats then
I've got this problem that won't go away.
The headers are showing up at the top of the page when I run php in
cgi mode. any ideas?
thanks,
- Mark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Hi group:
I've following question:
How could I determine whether I have in the array's key integers *and*
strings or integers only?
i.e.
$a = new array('one', 'two', 'three'); // this has only integers (am I
wrong?)
$b = new array('one' = 'bla', 'two' = 'blabla', 'three' = 'blablabla');
//
When using MySQL to Authenticate users for a specific directory (i.e.
www.mysite.com/user) how would it know to go to that directory (/user).
How would it know to not let someone access a file directory in that
directory (i.e. www.mysite.com/user/page2.php)? If I am using MySQL to
query a row in
How can I echo an image from other location than the mysql using this kind
of script?? since I'm using php to output the image from database, there's a
way to change it to a ftp link for example if image doesn't exists??
this is my script:
?
$sql = SELECT Imagem_data,Imagem_type FROM
#!/usr/local/bin/php -q
on 1/10/02 12:16 PM, Mark at [EMAIL PROTECTED] wrote:
I've got this problem that won't go away.
The headers are showing up at the top of the page when I run php in
cgi mode. any ideas?
-- mike cullerton
--
PHP General Mailing List (http://www.php.net/)
To
If != is the opposite of ==
What is the opposite of === ??
Thanks...
--
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 administrators, e-mail: [EMAIL PROTECTED]
what does your code look like?
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 1:17 PM
To: PHP
Subject: [PHP] headers showing up in browser
I've got this problem that won't go away.
The headers are showing up at the top of the page when I run
If != is the opposite of ==
What is the opposite of === ??
I believe that is !==
Kirk
--
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 administrators, e-mail: [EMAIL
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Gerard Samuel) wrote:
If != is the opposite of ==
What is the opposite of === ??
!($something===$somethingelse)
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
On Thu, 10 Jan 2002 12:53:33 -0700, mike cullerton wrote:
#!/usr/local/bin/php -q
I don't think you understood what I meant. I want the headers to get
sent, but they're showing up in the browser as part of the page
content.
I had this working before on a different machine where everything to
do
lets say I have a page that contains just this code:
?
header(Location: /myfile.html);
?
the output I get is:
Location: /myfile.html Content-type: text/html
- Mark
On Thu, 10 Jan 2002 14:03:26 -0600, Rick Emery wrote:
what does your code look like?
-Original Message-
From: Mark
Hi there, how do I keep values in a form if the user has to go back and fill
in some missing fields?
Thx Joe :)
--
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 administrators,
Just let the browser cache it.
On Thu, 10 Jan 2002 16:30:01 -0400, Lerp wrote:
Hi there, how do I keep values in a form if the user has to go back
and fill
in some missing fields?
Thx Joe :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
keep the data in a variable and do something like
INPUT TYPE=text NAME=name VALUE=?php print($name); ?
on 1/10/02 1:30 PM, Lerp at [EMAIL PROTECTED] wrote:
Hi there, how do I keep values in a form if the user has to go back and fill
in some missing fields?
Thx Joe :)
-- mike
IE5.5 actualy has a bug that will not cache certain form fields under
certain conditions. There are other situations in which a browser won't
cache the information at all. So it's best to do this within the script by
either printing the form from within the script its self, or include() the
You could try guru.com
LJ
Richard Spangenberg [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I may need some help on a project I am working on.
Does anyone know of a good source of PHP developers where I can advertise
my
needs?
Rick
--
PHP General
I've noticed on some web pages that when the back button is pressed the data
in the fields is still there and sometimes it isnt. I would expect this with
a password field but why does it only save the data sometimes?
Mark [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Hello All,
I have a php script that i tested first through my browser.
If has a simple mail() command.
It workd fine and I received the email.
not I tried to run it as a cron job by adding
#!/usr/local/bin/php -q
My webmaster account receives the confirmation that cron
job has run, but I do not
It seems that I have a parse error somewhere in the following code
(since that's the only code in my script, it's a test script):
// arraytest.php
$tempsql = SELECT COUNT(*) AS count
FROM divisions;
$tempresult = mysql_query($tempsql, $db);
$temprow =
Hmm I believe that the mysql_query() function requires quotes around the
query statement even it it is being passed as a variable..
mysql_query($tempsql, $db);
-Kevin
It seems that I have a parse error somewhere in the following code
(since that's the only code in my script, it's a test
I am trying to pass variables from a CGI/Perl script
to a php page. I know how to pass it through the url
(i.e. page.php?tmp=[var1]tmp2=[var2]) but need to
know how to pass it so that the information does not
show up in the url.
Benjamin
__
Do
what eact parse error you are getting ? and what is that line ?
Is it giving an error like undefined variable $temprow[count];
or some thing like that ?
You may try to change the mysql_fetch_row line to the following
$temprow = mysql_fetch_array($tempresult, MYSQL_ASSOC);
- Original
I tried that... I get the same error (same line and everything).
As a side note, I haven't ever had to quote the first argument in
mysql_query() before...
This is quite a conundrum, eh?
Erik
On Friday, January 11, 2002, at 04:25 AM, Kevin Stone wrote:
Hmm I believe that the mysql_query()
Show all your code. Did you open a connection to the MYSQL server? If so,
show the code.
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 3:29 PM
To: PHP
Subject: [PHP] does this work?
It seems that I have a parse error somewhere in the
Show all your code. Did you open a connection to the MYSQL server? If so,
show the code.
What is the exact error that you get?
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 10, 2002 3:29 PM
To: PHP
Subject: [PHP] does this work?
It seems that
quotes are not needed
-Original Message-
From: Kevin Stone [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 3:26 AM
To: Erik Price; PHP (E-mail)
Subject: Re: [PHP] does this work?
Hmm I believe that the mysql_query() function requires quotes around the
query statement even it
On Thursday, January 10, 2002, at 04:39 PM, Rick Emery wrote:
Show all your code. Did you open a connection to the MYSQL server? If
so,
show the code.
Okay, but I changed some personal info (that I know is definitely
correct):
?php
// arraytest.php
$db = mysql_connect(hostname,
Wait, my bad. Typo... all my fault.
I feel like an ass.
Erik
--
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 administrators, e-mail: [EMAIL PROTECTED]
If you send a form on an HTML page using GET then the variables show up in
the URL. If you send it using POST then they dont.
With PHP 4.1.0 even if the variable is typed in the URL, PHP should only
read the real variables which were submitted if $_GET[$varname] is used (or
whatever it is!)
I
1 - 100 of 167 matches
Mail list logo