have you tried compiling php with oci again,
by installing the Oracle8i Client libraries?
Should work as far as i have read.
The oci interface is much better than the ora
interface. And I am not familiar with the
ora functions, only used to oci.
Michael
"Michael P. Carel" <[EMAIL PROTECTED]> sch
thanks miguel but i've already checked it, i've included return values
checking where it stop. Here's my full source test script.
There where no Ora_Error_Code returned.
";
exit;
}
$cursor= Ora_Open($connection);
if($cursor==false){
echo Ora_ErrorCode($connection).":". Ora_Error($connecti
look here:
http://www.php.net/manual/en/ref.filesystem.php
and especially here:
http://www.php.net/manual/en/function.filemtime.php
Michael
"Rui Huang" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> Hi, friends,
>
> I want to display the last updated time of a file using
Check the return values from your ora_logon, ora_open, ora_parse, and
ora_exec calls to see whether they worked. That way you can know at
which stage it stopped working.
miguel
On Mon, 27 May 2002, Michael P. Carel wrote:
> Finally i've set-up my AIX server with PHP and oracle support. Thanks
On Saturday 25 May 2002 05:21, Jeff Field wrote:
> Anyone know how to declare globals in a function from an array? The
> following doesn't seem to work:
>
> foreach($_POST as $key => $value)
> global $form_var[$key];
Not sure what you're trying to do. If you're trying to extract all the valu
On Saturday 25 May 2002 04:26, Miguel Cruz wrote:
> On Sat, 25 May 2002, Jason Wong wrote:
> > Your biggest problem is that you're trying to nest mysql_query() but
> > you're only using 1 link identifier. You need to establish another
> > connection using another mysql_connect().
>
> The same link
On Mon, 27 May 2002 [EMAIL PROTECTED] wrote:
> I know it is probably something obvious but the following gives me a
> parse error and as a newbie I am having trouble locating it.
>
> $query = "select * from news WHERE id = "$_get['id']"";
A lot of people have answered this already, but just for
> I want to validate a form (in page1.php) to check if the
> user has entered a correct email-adress and more, and if he
> needs to correct some fields, I'd like to display the form
> again with all correct values filled in and the incorrect
> fields hightlighted.
I tend to do this sort
-Original Message-
I know it is probably something obvious but the following gives me a
parse error and as a newbie I am having trouble locating it.
$query = "select * from news WHERE id = "$_get['id']"";
-Original Message-
Any time you end up with two " characters together is a
Hi to all;
Finally i've set-up my AIX server with PHP and oracle support. Thanks for
all who helps me for the configure setup.
Now I have a problem in oracle function regarding the retrieval of entries
in the oracle table. The Ora_Fetch_Into function doesnt work properly to me
or i have an error
In article <003601c20541$fdc31970$0100a8c0@JohnH>, [EMAIL PROTECTED]
says...
> I know it is probably something obvious but the following gives me a parse error and
>as a newbie I am having trouble locating it.
>
> $query = "select * from news WHERE id = "$_get['id']"";
>
> JJ Harrison
> [EMAIL
can you show us the lines above that line? say the previous 2 lines?.. also
depending on what server your on you might want to try
$query = "SELECT * FROM news WHERE id = "$_get['id']"";
but that line is ok ... with parse errors it's often, well i've found this
any way, that it's the line above
$query = "select * from news WHERE id = "$_get['id']"";
you've got quotes within quotes - either change the inner quotes to single
quotes, or escape them
$query = "select * from news WHERE id = '$_get[id]'";
or
$query = "select * from news WHERE id = \"$_get['id']\"";
-Original Message--
I know it is probably something obvious but the
following gives me a parse error and as a newbie I am having trouble locating
it.
$query = "select * from news WHERE id =
"$_get['id']"";
JJ Harrison[EMAIL PROTECTED]www.tececo.com
--
PHP General Mailing List (http://www.php.net/)
To unsub
These are the five methods I know of getting the data back to the original
form.
1. Client side cookies
2. Server side cookies/session variables
3. URL
4. hidden form
5. submit back on yourself
Take your pick
Martin
-Original Message-
From: Victor Boivie [mailto:[EMAIL PROTECTED]]
Sent:
Hi everybody,
This might be a RTFM or STFW-question, but I haven't found it.
I want to validate a form (in page1.php) to check if the user has entered a
correct email-adress and more, and if he needs to correct some fields, I'd
like to display the form again with all correct values filled in and
Hello All,
What is the best way (or opinions rather) to pass variables to a anti spam
script.
This is used in place of mailto links in webpages, but am looking for any
simple way to pass information so more than one address can easily be used
in the script, I could use mysql or other, however wa
In article <034501c2052b$0b8abed0$0100a8c0@JohnH>, [EMAIL PROTECTED]
says...
> Hi,
>
> I know how to use limit to pull 2 or more records out of a database.
>
> What I wish to do is only pull one record from a database.
>
> I am using the following query:
> $query = "select * from news limit LI
On Sun, 26 May 2002 10:05:03 +0300, mp wrote:
>Hi, php-general,
>
>I make this kind of PHP script(script.php):
>script.php
>$variable = "Some some long long Text Blah blah";
>echo "document.write(\"".$variable."\")";
>?>
>
>And in HTML (other.html) file I write:
>
>
>But there is some mistake. Doe
register_globals affects things that happen before PHP parsing begins, so
by the time you get to your ini_set() it is too late. So no, that won't
work. You need to set it in your php.ini, httpd.conf or .htaccess.
-Rasmus
On Sun, 26 May 2002, Jens Lehmann wrote:
> I tested ini_set('register_gl
You probably missed a quote or something. Show us line 1.
On Sun, 26 May 2002, Kevin J wrote:
>
> Hello all,
>
> I am new to PhP, and I just bought the Beginning PhP 4 book, and i got my
> first parse error, and I have no idea what it is i done wrong, cause its not
> covered in this book!!!
>
>
Hello all,
I am new to PhP, and I just bought the Beginning PhP 4 book, and i got my
first parse error, and I have no idea what it is i done wrong, cause its not
covered in this book!!!
this is the message i get:
Parse error: parse error, unexpected T_STRING in
c:\inetpub\wwwroot\example1.php
Hey, im running Apache 2.0.36, and PHP 4.2.1, and im having problems with my site,
which relies alot on includes. On each site page, it includes a file called
"global.php" which contains the path's to the include folder, and various other
directories needed. After that, it includes files for th
that function doest exist!
"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Windows Bitmap = BMP file
> a WBMP is a wireless bitmap image and is designed for display on mobile
> phones. A lot of software doesn't understand the format.
>
> You need to use
Windows Bitmap = BMP file
a WBMP is a wireless bitmap image and is designed for display on mobile
phones. A lot of software doesn't understand the format.
You need to use createfrombmp() not createfromwbmp()
"Georgie Casey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PRO
php-general Digest 26 May 2002 20:04:59 - Issue 1368
Topics (messages 99286 through 99317):
PHP and JavaScript
99286 by: mp
99287 by: SP
99293 by: Vincent Kruger
Re: please help!!
99288 by: Olexandr Vynnychenko
Re: Need some advice concerning forms (multi s
i'm getting an error message saying my BMP file i'm trying to convert isnt a
valid WBMP file? is dere a difference between BMP and WBMP? I just opened my
GIF file into PSP7 and and saved as a windows bmp.
why isnt it working?
"Peter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[E
";
print "";
?>
you get the idea
I think PHP does have other funtions for file uplading though.
"Georgie Casey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Rite, when you see a web form, you know you can simulate the submit by
> filling in the values in th
Rite, when you see a web form, you know you can simulate the submit by
filling in the values in the address field, just like a GET method, and it
usually works the exact same. But how do you do it when one of the fields in
the form is a file upload?!?!?!
For the record, its a GIF file you've to u
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
Can somone take a look at this? I found this on sourceforge, but cannot
reach author.
http://www.collegesherbrooke.qc.ca/languesmodernes/calendar/example.php
This month won't display properly. It's missing somewhere.
Every other month seems to work.
Can someone help please? Here is the code:
I tested ini_set('register_globals',0) and ini_set('register_globals','Off')
for turning register_globals off. It doesn't work and it doesn't produce any
notice, warning or error.
Here's a quick example:
$test";
?>
This prints out $test, what it shouldn't do with register_globals turned
The problem is that you are sending this output to the browser and not
the server. You can do this with XML because IE and Netscape have XML
parsers built-in. You should create a form that will catch the data
from CGI then handle it on the server. There might be other work
arounds as well...how
Dear folks,
Has anyone ever been able to get a CGI to produce valid PHP output??
Whatever I do, my browser ALWAYS wants to open or save the non-parsed PHP
text produced by the CGI file. And yes, I have set the proper ExecCGI and
PHP entries in my vhosts.conf; and yes, I restarted the server.
Ba
> Can arrays be passed to functions just like a simple variable?
Yes.
> Can arrays be passed as values in hidden form fields just like a
> simple variable?
Yes, with a little work.
> I've been playing around with these and getting inconsistent
> results. I've been trying things like seriali
I use this, but it's a preg rather than ereg pattern:
'/([a-z0-9]+[a-z0-9\-]*\.)+[a-z0-9]+[a-z0-9\-]*[a-z0-9]+$/i'
Two problems (which in practice are so slight that I've foregone my usual
standards-analness to ignore them)
1) It will allow a domain name component (except the final one) to
This is not really specific to PHP (although the information might be useful
for all that form validation we all do), and for that I apologize in advance
(does anyone know of a regex mailing list?), but maybe someone here can help
with the following:
I find no good regex for checking valid domain
> With register_globals OFF in your php.ini file, all of the user input is
> present in the _GET, _POST, _REQUEST, or _COOKIE array. With
> register_globals ON, then the variables are registered as regular variables.
> If you have a URL like page.php?id=1, then with them OFF, you have to use
> $_
On Sun, 26 May 2002, Victor Spång Arthursson wrote:
>
change this to:
>
and this to:
because you want animals[2] and animals[4] to be arrays, not scalar
values.
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
On Sat, May 25, 2002 at 05:41:24PM -0600, Kevin Stone wrote:
> If so what would the unix command be to expand and create ZIP
> archives?
> How would I tie that into my PHP script using the system() function?
system("unzip $filename");
or
exec("unzip $filename");
or
passthru("unzip $f
Ok, I can't get this right...
Have the following code:
'dog', 2 => 'cat', 3 => 'mouse', 4 => 'frog');
if (is_array($_REQUEST['animals']))
{
// get the number of selectcases
echo "get the number of selectcases: " . count($animals) . "";
This works for me (WinXPpro, IIS, PHP 4.1.2):
Hope it will help
bye,
evan
"Dani" <[EMAIL PROTECTED]> ha scritto nel messaggio
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I want to upload image file into a folder in webserver using HTML form.
> What function do I use fo this purpose
> Can arrays be passed to functions just like a simple variable?
yes, no difference. You can pass every variable to a function, you can pass
constants or your values directly. You have to use a variable if a function
requires passing by reference or if you want to pass by refernce, because
only va
Hi,
can someone tell me is there a script for sending and receiving a mail via
WAP ?
Thanks,
Rosen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A couple of simple ones here ... the usual references don't appear to give
a straightforward answer on these:
Can arrays be passed to functions just like a simple variable?
Can arrays be passed as values in hidden form fields just like a
simple variable?
I've been playing around with these and
On Sunday, May 26, 2002, at 01:14 PM, John Holmes wrote:
> Just give each select its own name.
Can't do that, don't know from time to time how many there'll be And
I've to have some case which iterates on the following page...
> Or name them all the same followed
> by an [] and you'll end
If you're getting this discouraged over creating a URL, then maybe you
should give this stuff up. There's no variable that gives you the full
URL of your script, deal with it.
What is this parse() function you're using? What does it do? Why is this
"over kill and BS"?
Try this:
$myurlvar = http
Just give each select its own name. Or name them all the same followed
by an [] and you'll end up with a multi-dimensional array if things go
right...
...
---John Holmes...
> -Original Message-
> From: Victor Spång Arthursson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 26, 2002 5:4
You need to define the type of file you are creating.
Like when you create wml pages with php.
Header("Content-Type: text/javascript");
or summing to that effect.
have a look at www.weberdev.com
"Mp" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, php-ge
but the scriptname itself will be included there.
Try this, if you don't want the scriptname to be included.:
$url = preg_replace('/^(http:\/\/)[^\/]+((\/[^\/])*\/)([^\/]+)$/',
'\\1$SERVER_NAME\\2', $SCRIPT_URI);
Haven't tested them, but should work.
Michael
"Michael Virnstein" <[EMAIL PROTECT
typo:
$url = preg_replace('/^(http:\/\/)[^\/]+(\/.*)$/', '\\1$SERVER_NAME\\2',
$SCRIPT_URI);
Michael
"Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> try:
>
> $url = preg_replace('/^(http:\/\/)[^\/]+(\/.*)$, '\\1$SERVER_NAME\\2',
> $S
try:
$url = preg_replace('/^(http:\/\/)[^\/]+(\/.*)$, '\\1$SERVER_NAME\\2',
$SCRIPT_URI);
Michael
"Jtjohnston" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I want to detect the url my .php lies in.
>
> This is over kill and BS:
>
> $myurlvar = "http:
Hello and thanks for your fast answer!
I'ld like to know if there is any possibility to distinguish the selects
if I've multiple multiple selects, that is, more than one on the same
page? What I'm loooking for is the possibility to have an unknown number
of multiple selects on the same page...
Hello Jolly,
Sunday, May 26, 2002, 10:58:45 AM, you wrote:
JN> Olexandr,
JN> /* I can get the values from these */
JN> foreach ($HTTP_POST_VARS as $var => $value) {
JN> echo "$var = $value\n";
JN> }
JN> /**/
JN> /*however empty for this sentence*/
JN> echo "equal
It worked for me, what error are you getting?
In the other.html, did you have this?
-Original Message-
From: mp [mailto:[EMAIL PROTECTED]]
Sent: May 26, 2002 3:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and JavaScript
Hi, php-general,
I make this kind of
Hi, php-general,
I make this kind of PHP script(script.php):
script.php
And in HTML (other.html) file I write:
But there is some mistake. Does anybody can help me?
Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
php-general Digest 26 May 2002 07:23:25 - Issue 1367
Topics (messages 99255 through 99285):
4.2.1 Vars
99255 by: Kurth Bemis (List Monkey)
99258 by: Jeff Lewis
99260 by: 1LT John W. Holmes
99261 by: Kurth Bemis (List Monkey)
99263 by: 1LT John W. Holm
Why don't you try something like this...do a system call to pwd and
strip out the portion of the url that you know is the upper directory.
Then you can exchange that for the http://www.site.com/ and then add
the additional directories to the end and call the script name...there
might not be a fun
60 matches
Mail list logo