I am trying to use a command line program in Linux using this form:
$result = `/path/prog $arg`;
But this doesn't work as the program is expecting and EOF that never comes.
If I use the program on the command line when I am finished entering all
the data I need to hit return and then CTRL-D to
What about transactions ? In all the discussion noone points that
PostgreSQL uses them. Maybe noone uses transactions so they have no
matter.
--
Krzysztof Dziekiewicz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Original Message -
From: "Jean-Christian Imbeault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 9:52 AM
Subject: [PHP] EOF: how to generate one in a string
> I am trying to use a command line program in Linux using this form:
>
> $result = `/path/prog $
> Here is where I'm running into some problems. I need the file listing to be
> sorted as if I were performing an 'ls -lt' listing on the server itself.
I do not think opendir() or readdir() quarantees any sort. You where
lucky rather you got dirs in the time order. You should use
filemtime() or
> I'm running Apache 2.0 as a service and PHP (like a
> module) onto a Windows Advanced Server. I´m looking
> for a good and free Editor to use with PHP (With
> debugging features). Can anyone with experience guide
> me?
Look up archives. You will get full list of PHP editors.
--
Krzysztof Dzi
$result = `echo | /path/prog $arg`;
should work
Jean-Christian Imbeault wrote:
I am trying to use a command line program in Linux using this form:
$result = `/path/prog $arg`;
But this doesn't work as the program is expecting and EOF that never
comes.
If I use the program on the command lin
You should be able to get around it also by checking
if $_SERVER[REQUEST_METHOD]=='HEAD'
Timothy Hitchens (HiTCHO) wrote:
When they first click on the file their browser will make a request for
type, size etc
then when it display's the dialog box on the screen of the client it
will make another
Marek Kilimajer wrote:
$result = `echo | /path/prog $arg`;
should work
That didn' work ... don't know why.
Isn't there a way to say echo "EOF"?
There must be a way to specify the ascii or hex value for EOF in an echo
statement no?
Jc
--
PHP General Mailing List (http://www.php.net/)
To u
I wish it was as simple as that but in the past it just hasn't always
worked!!
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 8 January 2003 7:29 PM
> To: Timothy Hit
Hello,
I've just installed PHP 4.3.0. The 4.0.6 was installed before. With the
new version, in safe mode, the 'file_exists' function produce this warning:
Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in
effect. The script whose uid is 302 is not allowed to access
/full/
Hello
I try to install php 4.3.0 on FreeBSD 5.0 RC2
Please help
Alexander Rijnbeek
-su-2.05b# make
/bin/sh libtool --silent --mode=compile
gcc -Iext/zlib/ -I/usr/local/src/php4/php-4.3.0/ext/zlib/ -DPHP_ATOM_INC -I
/usr/local/src/php4/php-4.3.0/include -I/usr/local/src/php4/php-4.3.0/main -
I/
Have you checked your php.ini for a safe mode setting to true/on ??
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Emmanuel.Leguy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 8 January 2003 7:49 PM
> To: [EMAIL PROTECTED]
> Sub
I also tried tried with popen with no success.
$fp = popen('/usr/src/bsfmdk/CCCallServer 2>&1', 'r');
fwrite($fp, $query);
$result = fread($fp, 8096);
echo "result is ";
echo "$result ";
I get back and empty result string ...
Any more hints?
Jc
--
PHP General Mailing List (http://www.php.net/
No, there is no such value as far as I know, you may try `/path/prog
$arg < somefile`, but
I doubt it will be different. What prog is it anyway. If it is passwd, I
know this behaves
somewhat different, but I think there is still some workaround, you
should as at a linux list.
Jean-Christian Imb
Marek Kilimajer wrote:
What prog is it anyway.
It is a credit card processing program. It is interactive. You can it,
type values in hit return, then ctrl-D and it spits out a status code.
If I put all the values in a file I can get the prog to work by doing:
#./prog < filename
It does not
I'm at wits end ... I've tried everything from system(), shell_exec(),
bacticks, popen() and still no go ...
I even tried writing the data to file first and then doing a
system("./prog 2>&1 < ./datafile") and that didn't work either.
I know that it shoudl work b/c if from the command line I iss
I would suggest you have a look at:
http://expect.nist.gov/
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 8 January 2003 8:24 PM
> To: [EMAIL PROTECTED]
>
Hi folks,
I've seen a lot phpinfo() on different platforms, different PHP versions
with different web servers.
Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with
Apache2 doesn't
show PATH_TRANSLATED and HTTP_REFERER.
someone knows how to get a consitent content of $_SERVER? Or
On Wednesday 08 January 2003 19:00, Fritzek wrote:
> Hi folks,
>
> I've seen a lot phpinfo() on different platforms, different PHP versions
> with different web servers.
> Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with
> Apache2 doesn't
> show PATH_TRANSLATED and HTTP_REFER
Hmmm. What does it mean? Is PHP deciding at runtime which variable in
$_SERVER have to be filled?
PATH_TRANSLATED should always be filled because you always have a path where
your script is located.
Also HTTP_REFERER because in easiest case you refering on the same script at
localhost (I guess).
Ok, found the problem. The external program I was trying to run is only
happy is it is called from the same directory as the one it resides in.
I guess it needs to access files in it's directory and by calling from
php somehow it gets confused as to where to files are.
Thanks to everyone for th
but there must be a way which causes differences. I've searched the net and
found a page which shows phpinfo(); and this was the same versions of php,
webserver and os and the PATH_TRANSLATED was setted, but not on my server.
"Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED
At 12:00 PM 1/8/03 +0100, Fritzek wrote:
Hi folks,
I've seen a lot phpinfo() on different platforms, different PHP versions
with different web servers. Always the content of $_SERVER is different.
i.e PHP4.3.0 on win32 with Apache2 doesn't show PATH_TRANSLATED and
HTTP_REFERER.
someone knows how
You did not see HTTP_REFERER likely because there was none
Fritzek wrote:
Hi folks,
I've seen a lot phpinfo() on different platforms, different PHP versions
with different web servers.
Always the content of $_SERVER is different. i.e PHP4.3.0 on win32 with
Apache2 doesn't
show PATH_TRANSLATED
Fritzek wrote:
Hmmm. What does it mean? Is PHP deciding at runtime which variable in
$_SERVER have to be filled?
PATH_TRANSLATED should always be filled because you always have a path where
your script is located.
Also HTTP_REFERER because in easiest case you refering on the same script at
loca
> -Original Message-
> From: Mike Tuller [mailto:[EMAIL PROTECTED]]
> Sent: 08 January 2003 01:23
>
> I am working with sessions, and following an example in a book and am
> getting an error that I am not sure of. I have an html doc
> that has the
> fields for username and password and
Hello list,
just a simple question regarding php - compiling:
when I compile php --with-gd="/usr..."
How can I get the exact directory of gd (or gd-libs)???
Qualified answers are welcome.
Oliver Etzel
actually its getting there
$backtrace = debug_backtrace();
foreach ($backtrace as $val) {
if (eregi($val['function'],'query')){
echo $val['file']."";
echo $vale['line']."";
}
}
"Michael Sims" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Wed
I got a simple question. What do you have to do when you want to use
multibytestring functions under
PHP 4.3.0 assuming you're using the windows binaries and you're running
on XP?
Is it standard or do you have to adjust some things?
Cheers,
Simon
--
PHP General Mailing List (http://www.php.net
Please could someone let me know the cause of this error message
"Warning: Unlink failed (Permission denied) in ...".
Regards
Kevin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm working in PHP4 and have suceeded in creating a mySQL table. I can
fill the table using the INSERT command as follows:
The above works fine. Here is the problem: Instead of specifying the
color, red, green, etc. I would like to generate a random color and
store it in a variable, then use the
You are trying to delete/unlink a file with a php script.
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Kevin Meredith [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 8 January 2003 9:54 PM
> To: PHP
> Subject: [PHP] Warning: Unl
MYSQL($Dbname, "INSERT INTO $Tbname_1 VALUES(1, 'John Doe', '$color')");
- single quotes around $color
Jo Ann Comito wrote:
I'm working in PHP4 and have suceeded in creating a mySQL table. I can
fill the table using the INSERT command as follows:
The above works fine. Here is the problem: In
Try using single quotes inside your double quotes,
just like you did with the width and haight values. he
following line:
print "";
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
PHP General M
Try using single quotes inside your double quotes,
just like you did with the width and haight values.
The following line should work:
print "";
Robert Fisher
Axis Solutions, Inc.
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up
Is it possible with php to print the http header and the attached data
for a transmitted http request? How can I do this?
an example of what I want to see:
POST /cgi-bin/CgiMfc1?MyQuery%3dQData HTTP/1.1
Accept: text/*
User-Agent: HttpCall
Accept-Language: en-us
Host: localhost:680
Content-Length
If you are willing to do a rewrite, then have your
main script start a fork, or child process. The child
process would run your script while the parent would
do nothing else but wait for the child. if the child
times out the parent will know and you can then print
out a error message.
See the fo
@mysql_select_db("be"); // this doesn't fail, because only the second
(UPDATE) query fails. The first query (SELECT) is done!
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Nuno Lopes" <[EMAIL PROTECTED]>
Cc: "MySQL List" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sen
Doesn't you have any simpler answer??
Maybe installing the new version of mysql server - I have version 3.23.49 -
should do the trick
- Original Message -
From: "Larry Brown" <[EMAIL PROTECTED]>
To: "Nuno Lopes" <[EMAIL PROTECTED]>; "MySQL List" <[EMAIL PROTECTED]>
Sent: Tuesday, Janua
I don't think there is a single variable, but you can build it from
various variables and functions:
$_SERVER array:
REQUEST_METHOD
REQUEST_URI
SERVER_PROTOCOL
function getallheaders()
|$HTTP_RAW_POST_DATA|
|this should be all you need|
Heiko Mundle wrote:
Is it possible with php t
I use chartDirector (http://www.advsofteng.com) for generating graphs
and reports with PHP. chartDirector charts look really good and the
license is cheap.
There's also jpGraph: http://www.aditus.nu/jpgraph/
-Rosie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wednesday 08 January 2003 06:42, Jean-Christian Imbeault wrote:
> Timothy Hitchens ) wrote:
> > Issue... as I said before the register shutdown won't work because:
> >
> > - output from the shutdown is not visible nor do you have access to some
> > variables
>
> You are right. From the manual:
>
http://www.aditus.nu/jpgraph/
Larry Brown wrote:
Can anyone give any suggestions on the best/most intuitive tools or
libraries for generating graphs with PHP?
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Can't do wildcards like * because thats something that as I found out a few
days ago, is expanded by the shell into a full command, so because your not
running a shell, it can't be expanded and the raw unlink call to *.* fails because
the unlink function doesn't understand wildcards. If you
What is the ASCII value of an EOF? Find that and use
Matt
- Original Message -
From: Jean-Christian Imbeault <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 5:24 AM
Subject: [PHP] Re: EOF: how to generate one in a string
> I'm at wits end ... I've tried eve
Currently I have a script that reads an index file and from that index file it then
loops through all files in that directory based on the index.
Instead of one directory now I have several and I want to loop through each directory
and go to each directory's index file. Since there is no pattern
Hey all. I noticed a string containing slashes was breaking some code
of mine on an w2k/IIS box running php 4.2.3.
For example ->
http://www.apache.org/\"; target=\"_blank\">
When trying to apply stripslashes, the slashes remained. So I applied
str_replace('\"', '', $var) and that worked.
An
--
Ft. Meade cryptographic KGB munitions jihad nitrate class struggle
Semtex radar spy Iran supercomputer Treasury FSF nuclear
[See http://www.aclu.org/echelonwatch/index.html for more about this]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
This is by no means an advertisement, just one of the results I got looking
around for charts. The following link lists a few viable solutions.
http://www.hotscripts.com/PHP/Scripts_and_Programs/Graphs_and_Charts/
Jpgraph renders an excellent image from the examples but the prerequisite
packages
On Wed, 8 Jan 2003, Gerard Samuel wrote:
> http://www.apache.org/\"; target=\"_blank\">
>
> When trying to apply stripslashes, the slashes remained. So I applied
> str_replace('\"', '', $var) and that worked.
> Any idea as to why stripslashes would not remove the slashes in the string?
stripslas
My extreme apologies to jpgraphs. They are more in line with phplot. I
might even end up using them instead. Vagarant is the more difficult
package. Again, their graph examples are pretty smooth but required a lot
of package/dependency updates to RH.
>This is by no means an advertisement, just
On Wed, 8 Jan 2003, Jeff Lewis wrote:
> pattern for the name if the indexes, I assume I need to create an array
> holding the directory name and the associated index file name like so
> $dirs = array("Sports" => "spindex.xml", "Business News" =>
> "business.xml") etc
>
> Now, I need help with the
I figured out the problem. magic_quotes_sybase was turned on, on the
IIS box.
All is well with stripslashes() again.
Chris Wesley wrote:
On Wed, 8 Jan 2003, Gerard Samuel wrote:
http://www.apache.org/\"; target=\"_blank\">
When trying to apply stripslashes, the slashes remained. So I appl
That did it! Thanks.
On Wednesday, January 8, 2003, at 05:16 AM, Ford, Mike [LSS] wrote:
-Original Message-
From: Mike Tuller [mailto:[EMAIL PROTECTED]]
Sent: 08 January 2003 01:23
I am working with sessions, and following an example in a book and am
getting an error that I am not sure
In case any one else needs to know:
I had to erase the rpm version of gd, gd-devel and libpng, libpng-devel The
rpm versions were 1.0.12. For some reason the configure
option -with-png-dir=../libpng-1.2.1 was using the headers from the right
dir, but somehow used the rpm version for compiling inste
Hello,
I want to share the code (php-extension) I have included into php-4.2.2 to
support CDK widgets
(http://gd.tuwien.ac.at/hci/cdk/?file=cdk.tar.gz&type=listing) to enable PHP
to use text based "GUI" in terminal environment.
CDK supports:
-Alphalist (list with alphanumeric search)
-Calend
I thought autocompletion would help you _avoid_ silly mistakes. For example,
defining $varName then trying to use $varname when you really meant to use
$varName.
In php I would say it's a tossup because if you reference a variable that doesn't
exist it will contain a NULL or FALSE value but php
Hello php-general,
I'm trying to figure out why I can't upload any file in php.
Form code
Use this form to upload your new photographs. Note:
only JPEG (.jpg) and PNG (.png) files allowed. Maximimum allowed file size is
40KB.
Photograph:
Description:
PHP code
=
Hy Guys,
I´m a newby here.
I´am trying to compile PHP 4.3.0 with Oracle support. When it
compiles oci8.c , it returns an error, like follows:
/bin/sh libtool --silent --mode=compile
gcc -Iext/oci8/ -I/usr/src/php-4.3.0/ext/oci8/ -DPHP_ATOM_INC -I/usr/src/ph
p-4.3.0/include -I/u
Hi,
I am running a really simple php script to upload files on my server via
ftp. But it always return this warning: ftp_put(): Permission denied
I can't have to do anything with CHMOD can it? I mean it's ftp!! I don't
know what else it is but I guess it's a pretty common problem.
Thx for any help,
I am assuming you have testing from a desktop client.
Are you sure that the PHP script has been logged in??
Can you see via a log file of the successful authentication??
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Oliver Wi
Hi Sean Burlington, et al ...
Sorry for the slow response, been really sick lately ...
Just wanted to thank y'all for offering h & s. Ended up doing it with
hidden fields ... also made it a bit easier to make the validation script
put the info back into the form ...
After testing things out I ac
Does anybody know how to implement the 8 and 16 bit versions of
Fletcher's checksum using PHP? I hit google and came up dry. It's easy
enough to find how to do it in C, but PHP if a different story.
I know there are plenty of perfectly good checksum options that are
standard in PHP, but I'm for
Hello,
I have searched the archives and not been able to find the solution to
the following problem. I would be very grateful if someone here could
help or provide some pointers.
The basic problem is this:
Our apache server will not start if there are system processes running
that were spawned
use: apachectl graceful
It will reload the config's and allow operation to continue!!
See apachectl (help)
start - start httpd
stop - stop httpd
restart- restart httpd if running by sending a SIGHUP or start if
not running
fullstatus - dump a full status screen; requi
ok - let me take that a step further - if I store the SID in the table also
are the files in the /tmp directory stored with the SID? if they are this
may be a way I can delete out inactive session, but be able to allow
extended inactive sessions for users who may be pulling lengthy reports...
"T
If you use a database for session management you have total control over
when and what is garbage collected and therefore extend / delete
whatever
anytime you want.
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Jeff Bluemel [mai
"Timothy Hitchens )" schrieb:
> I am assuming you have testing from a desktop client.
>
> Are you sure that the PHP script has been logged in??
>
> Can you see via a log file of the successful authentication??
>
I logged in using the same information as I used to upload that script.
if ((!$conn_
Using ftp_login() ??
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Oliver Witt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 5:30 AM
> To: [EMAIL PROTECTED]; Timothy Hitchens )
> Subject: Re: [PHP] ftp_put: permis
HI,
Thanks for all the suggestions. I guess I should have given a more detail
description. My employer have just provided me with some background
information of the setup:
Our data come in mostly automatically by FTP on to our Vax, then eventually
moved on to our R30 (RS6000/AIX) and then H
I uploaded that script with a common ftp program on my server in the
internet.
FOr the host, user and pw, I use the same data as I use to log in with
my ftp program. So the mistake can't be there.
This is how that script basically works:
It didn't work";}
else {
echo "It did work";}
ftp_quit($conn
OK, so I've gotten NO responses to my query below so I
thought I'd ask for something slightly different and see what
I get.
If I have a bunch of plain text data, how can I pull out the
strings containing "http". I've tried several different things
but what I end up with is more or less than what
Hi All!
I would like to redirect the user to another php page accordingly to
his/her chosen options, example:
if ($Color == "Yellow") {
go to page
else if ($Color == "Green")
go to page
}
Does anyone knows how to achieve the goal??
Thanks
Teo
--
PHP General Mailing List (http://www.p
Ezequiel Sapoznik wrote:
I am having a parse error in the following sentence:
print "";
it would help if you posted the actual error message !
but try this ...
print '';
or
print "";
--
Sean
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
Hello Sean,
or try to use this:
print "";
or just
print "";
^ ^^
^ - use \ before "
^^- no need to use both \ and " remove those two characters
or try this
your php
?>
" width=104 height=137>
http://www.corwin.sk
PGP key fingerprint
Hello Sean,
oh i must correct myself ;)) .
or try to use this:
print "";
or just
print "";
looks like u have error here:
print "";
^ ^^
^ - use \ before "
^^- no need to use both \ and " remove those two characters
or try this
y
http://groups.google.com/groups?num=30&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&;
q=url+redirect+php
-Kevin
- Original Message -
From: "Teo Petralia" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 1:46 PM
Subject: [PHP] How can I redirect to another php page
>
You could use an include statement in one of two ways. 1) you can just
include the page that you want to show, however the url doesn't change it
will still be select.php 2) if you want to sent them to yellow.php or
green.php you could include an html page that had a meta-refresh in it set
for 0 sec
That will usually work on Unix but will not work on Windows. Rather than
executing an external program you can use PHP itself to do a recursive
delete.
There are examples at http://www.php.net/manual/en/function.rmdir.php if
you read the user notes you will see several posts about doing this.
Jas
header("location: nextpage.php");
the above must be sent before any other text is output
- Original Message -
From: "Teo Petralia" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 2:46 PM
Subject: [PHP] How can I redirect to another php page
Hi All!
I would
it may be, that destiny is wrong.
the error-message tells that you don't have access to where you are trying to upload
the file to.
Thomas
On Wed, 08 Jan 2003 20:59:02 +0100 [EMAIL PROTECTED] (Oliver Witt) wrote:
> I uploaded that script with a common ftp program on my server in the
> internet
On Thursday 09 January 2003 04:07, ELLIOTT,KATHERINE A (HP-FtCollins,ex1)
wrote:
> OK, so I've gotten NO responses to my query below so I
> thought I'd ask for something slightly different and see what
> I get.
With regards to your original query, the answer is in the archives. Try
searching for
hi i am considering the move from fast template to xslt , is there any
benifits for this ? also is there a way to intergrate xsl like fast template
ie parse rows in the php script
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi everyone, I am new to this list, so this is my first post.
I am trying to sen dan HTML email, and so far I got everything running,
except for one very odd problem.
1.) I am setting up all my variables within the .php Script.
2.) I generate my HTML email
3.) I am outputting the email to the bro
On Wed, 8 Jan 2003, ELLIOTT,KATHERINE A (HP-FtCollins,ex1) wrote:
> OK, so I've gotten NO responses to my query below so I
> thought I'd ask for something slightly different and see what
> I get.
The follow-up inquery makes much more sense than the original ;)
> If I have a bunch of plain text d
Is this a php.ini or apache setting?
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You should be able to get around it also by checking
> if $_SERVER[REQUEST_METHOD]=='HEAD'
>
> Timothy Hitchens (HiTCHO) wrote:
>
> >When they first click on t
Hello,
I have a question. First of all, I want to save the data a
user has typed in a form into a MySQL database so they can load it up for later
use but, I need to first submit all the form vars on the current page from a
link. This may be _javascript_, but either way, I'm not sure how to
This may be a no-brainer for everyone but me but ... I have several php
scripts residing on a web site on Server A. In a library file on Server A
are misc. functions, some of which query an underlying database and return a
text string as the result. On another web site on Server B I would like to
example:
location.href="$destination";
or
location.href="";
or
echo "location.href='", $destino, "';";
PLEASE GIVE A IDEA
Ysrael Guzmán Meza
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can anyone see a problem in this? When i run the script i am getting this
error "Notice: Undefined variable: action in
C:\www\Apache2\htdocs\user_poll\2\addpoll.php on line 13"
Could not insert poll\n";
} else {
print "Poll added\n";
}
mysql_close($link);
}
?>
please anyone
If I understand you want to be able to get a value from a script on
another server.
Well I would suggest a really each way would be to do have the calling
server call
a script on the supplying server using include(); which is supported but
please see
this page regarding URL fopen wrappers:
http:/
Hello Paul,
well problem is this: you don't have defined variable $actionmaybe
you are not posting it correctly from form...what is on first 12
lines?
try to add $action="value"; on line 12...just define any suitable
value...
--
Best regards,
Martin mail [EMAIL P
You need to check like this:
if (isset($action) && $action == 'add')
AND if it is 4.1 + and global vars are turned off??
if (isset($_GET['action']) && $_GET['action'] == 'add')
** The above will need to changed if it is POST in the above example!!
Timothy Hitchens (HiTCHO)
Open Platform Consu
location.href=""
should work ... hth ... Bill
-Original Message-
From: Ysrael Guzmán [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] read javascript variable php?
example:
location.href="$destination";
or
location.href="";
Sorry guys ingore the post, i have narrowed the problem down to a problem
with posting the vairables from flash.
cheers
"- -" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can anyone see a problem in this? When i run the script i am getting this
> error "Noti
[EMAIL PROTECTED]
It would help to know where $action is being defined.
- Original Message -
From: "- [ Paul Ferrie ] -" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 3:43 PM
Subject: [PHP] strange problem (user poll)
> Can anyone see a problem in this?
I have no idea what I did but this email was not supposed to go to the
list.. my apologies. *LOL*
-Kevin
- Original Message -
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 08, 2003 4:18 PM
Subject: Fw: [PHP] strange problem (user poll)
> [EMAIL
Yes, I want to get a value from a script on Server A that runs against a
database on Server A, returning that value to a script variable on Server B.
I read the manual but must have missed something. This is what *seemed* as
if it should work:
Server A (containing functions and database)
qotd.ph
Hi,
Thursday, January 9, 2003, 7:31:35 AM, you wrote:
PH> Hi everyone, I am new to this list, so this is my first post.
PH> I am trying to sen dan HTML email, and so far I got everything running,
PH> except for one very odd problem.
PH> 1.) I am setting up all my variables within the .php Script
Issue you have is that if it is on another server you must you a http
etc transport to get it!!
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Bill Arbuckle, Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 9:38 A
1 - 100 of 160 matches
Mail list logo