[PHP] Re: Ora_Fetch_Into function problem

2002-05-26 Thread Michael Virnstein
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

Re: [PHP] Ora_Fetch_Into function problem

2002-05-26 Thread Michael P. Carel
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

[PHP] Re: how to display a file's last updated time using php?

2002-05-26 Thread Michael Virnstein
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

Re: [PHP] Ora_Fetch_Into function problem

2002-05-26 Thread Miguel Cruz
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

Re: [PHP] using array to declare globals in function?

2002-05-26 Thread Jason Wong
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

Re: [PHP] Problem with if statement and while loops

2002-05-26 Thread Jason Wong
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

Re: [PHP] Parse Error(Newbie)

2002-05-26 Thread Miguel Cruz
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

RE: [PHP] Validating forms and showing errors

2002-05-26 Thread David Freeman
> 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

RE: [PHP] Parse Error(Newbie)

2002-05-26 Thread David Freeman
-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

[PHP] Ora_Fetch_Into function problem

2002-05-26 Thread Michael P. Carel
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

[PHP] Re: Parse Error(Newbie)

2002-05-26 Thread David Robley
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

RE: [PHP] Parse Error(Newbie)

2002-05-26 Thread Peter
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

RE: [PHP] Parse Error(Newbie)

2002-05-26 Thread Martin Towell
$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--

[PHP] Parse Error(Newbie)

2002-05-26 Thread webmaster
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

RE: [PHP] Validating forms and showing errors

2002-05-26 Thread Martin Towell
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:

[PHP] Validating forms and showing errors

2002-05-26 Thread Victor Boivie
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

[PHP] passing variable to anti spam mailto script

2002-05-26 Thread Greg Wright
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

[PHP] Re: Pulling one record from a db(newbie)

2002-05-26 Thread David Robley
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

Re: [PHP] PHP and JavaScript

2002-05-26 Thread Mark
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

Re: [PHP] ini_set('register_globals',0) doesn't work

2002-05-26 Thread Rasmus Lerdorf
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

Re: [PHP] --NEWBIE-- T_String parse error ??

2002-05-26 Thread Rasmus Lerdorf
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!!! > >

[PHP] --NEWBIE-- T_String parse error ??

2002-05-26 Thread Kevin J
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

[PHP] Problem with Includes and Variables

2002-05-26 Thread Pete Rippe
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

[PHP] Re: Simulating a FORM POST thing (HELP!)

2002-05-26 Thread Georgie Casey
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

[PHP] Re: Simulating a FORM POST thing (HELP!)

2002-05-26 Thread Peter
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 -0000 Issue 1368

2002-05-26 Thread php-general-digest-help
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

[PHP] Re: Simulating a FORM POST thing (HELP!)

2002-05-26 Thread Georgie Casey
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

[PHP] Re: Simulating a FORM POST thing (HELP!)

2002-05-26 Thread Peter
"; 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

[PHP] Simulating a FORM POST thing (HELP!)

2002-05-26 Thread Georgie Casey
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

[PHP] Calendar

2002-05-26 Thread jtjohnston
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:

[PHP] Calendar

2002-05-26 Thread jtjohnston
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:

[PHP] Calendar

2002-05-26 Thread jtjohnston
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:

[PHP] Calendar

2002-05-26 Thread jtjohnston
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:

[PHP] ini_set('register_globals',0) doesn't work

2002-05-26 Thread Jens Lehmann
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

RE: [PHP] Parsing PHP output

2002-05-26 Thread Ray Hunter
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

[PHP] Parsing PHP output

2002-05-26 Thread Mark
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

Re: [PHP] arrays

2002-05-26 Thread Philip Olson
> 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

Re: [PHP] regex help

2002-05-26 Thread Miguel Cruz
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

[PHP] regex help

2002-05-26 Thread Jeff Field
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

Re: [PHP] 4.2.1 Vars

2002-05-26 Thread Philip Olson
> 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 > $_

Re: [PHP] Need some advice concerning forms (multi select pulldown)and arrays

2002-05-26 Thread Miguel Cruz
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.

Re: [PHP] Extract ZIP archives

2002-05-26 Thread Analysis & Solutions
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

Re: [PHP] Need some advice concerning forms (multi select pulldown) and arrays

2002-05-26 Thread Victor Spång Arthursson
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) . "";

[PHP] Re: NewBie-UPLOADING IMAGE

2002-05-26 Thread Evan
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

[PHP] Re: arrays

2002-05-26 Thread Michael Virnstein
> 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

[PHP] E-mail via WAP

2002-05-26 Thread Rosen
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

[PHP] arrays

2002-05-26 Thread Michael Hall
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

Re: [PHP] Need some advice concerning forms (multi select pulldown) and arrays

2002-05-26 Thread Victor Spång Arthursson
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

RE: [PHP] inspirational

2002-05-26 Thread John Holmes
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

RE: [PHP] Need some advice concerning forms (multi select pulldown) and arrays

2002-05-26 Thread John Holmes
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

[PHP] Re: PHP and JavaScript

2002-05-26 Thread Vincent Kruger
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

Re: [PHP] inspirational

2002-05-26 Thread Michael Virnstein
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

Re: [PHP] inspirational

2002-05-26 Thread Michael Virnstein
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

Re: [PHP] inspirational

2002-05-26 Thread Michael Virnstein
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:

Re: [PHP] Need some advice concerning forms (multi select pulldown) and arrays

2002-05-26 Thread Victor Spång Arthursson
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...

Re[2]: [PHP] please help!!

2002-05-26 Thread Olexandr Vynnychenko
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

RE: [PHP] PHP and JavaScript

2002-05-26 Thread SP
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

[PHP] PHP and JavaScript

2002-05-26 Thread mp
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 -0000 Issue 1367

2002-05-26 Thread php-general-digest-help
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

RE: [PHP] inspirational

2002-05-26 Thread Ray Hunter
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