|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help_at_lists.php.net
Date: Mon Nov 18 2002 - 12:56:00 CST
php-general Digest 18 Nov 2002 18:56:00 -0000 Issue 1712
Topics (messages 124881 through 124964):
decode
124881 by: Roman Duriancik
124944 by: Maxim Maletsky
sunrise/sunset programs?
124882 by: Adam
124906 by: Jason Wong
124943 by: Maxim Maletsky
Re: Cannot Print Web-based Report in Netscape
124883 by: Jason Wong
124910 by: Marek Kilimajer
Re: OOP-classes in PHP
124884 by: Tim Ward
Re: Problem with Class - incomplete object error
124885 by: Tim Ward
124891 by: Paul
124912 by: Ford, Mike [LSS]
124917 by: Marek Kilimajer
PHP Newbie question
124886 by: Bryan Cassidy
124888 by: Stolen
124940 by: Maxim Maletsky
Re: SQLCODE=-930
124887 by: Matthieu Le Corre
124927 by: Oliver Fänger
124930 by: Matthieu Le Corre
Browsing directory
124889 by: Helen Muller
124915 by: DL Neil
124941 by: Maxim Maletsky
session_start() and utf-8
124890 by: Marco Schmitz
Get
124892 by: Shaun
124894 by: David Russell
Re: Get[Scanned]
124893 by: Michael Egan
php, forms, mysql
124895 by: Adrian Partenie
124902 by: Marek Kilimajer
Query string???
124896 by: Cyclone Médias
124898 by: Justin French
124899 by: Marek Kilimajer
124911 by: Justin French
Re: imap_open
124897 by: Michael Sims
124926 by: Rasmus Lerdorf
Re: preg_replace_callback
124900 by: Bikeman
Re: [PHP-DOC] Re: [PHP] preg_replace_callback
124901 by: Derick Rethans
Re: Ereg meadache
124903 by: Mako Shark
Help with variables in email
124904 by: Clint Tredway
124905 by: Marek Kilimajer
124922 by: rw.xend.net
124923 by: Clint Tredway
124925 by: Jason Wong
124938 by: Maxim Maletsky
Re: session handling
124907 by: Ford, Mike [LSS]
Re: can I retrieve jsp varibable with get or post???
124908 by: Ford, Mike [LSS]
Re: running php as cgi script
124909 by: Ford, Mike [LSS]
What is wrong with this expression?
124913 by: JohnMeyer
124924 by: Marek Kilimajer
124931 by: DL Neil
Re: howto pass javascript variable to php
124914 by: Marek Kilimajer
124920 by: Jeff Bluemel
Undefined variables?
124916 by: Martin Magnusson
124919 by: Ernest E Vogelsinger
124936 by: Maxim Maletsky
explicit dot in open_basedir
124918 by: Marc Delisle
124946 by: BigDog
124962 by: Marc Delisle
Re: Query to select every other record
124921 by: Marek Kilimajer
Re: post files array and registered globals off
124928 by: Marek Kilimajer
GD imagettftext problem
124929 by: adrian murphy.2020tourism.com
124932 by: Matthieu Le Corre
best php ide
124933 by: Edward Peloke
124934 by: Chris Hewitt
Problems with Caching
124935 by: Adam Humphrey
124937 by: Maxim Maletsky
124939 by: Marek Kilimajer
Post Problem
124942 by: Dave J. Hala Jr.
124945 by: BigDog
124947 by: Rick Emery
124948 by: Dave J. Hala Jr.
124950 by: BigDog
124953 by: Dave J. Hala Jr.
124954 by: BigDog
124955 by: Ford, Mike [LSS]
124960 by: Maxim Maletsky
124964 by: Dave J. Hala Jr.
Re: echoing date of first and last day of current week.
124949 by: BigDog
124951 by: Maxim Maletsky
Re: testing
124952 by: Maxim Maletsky
How to use string as variable name?
124956 by: -<[ Rene Brehmer ]>-
124957 by: Adam Voigt
124958 by: Marek Kilimajer
Why Yahoo chose PHP
124959 by: Paul Wilczynski
enable-gd-native-ttf or tt?
124961 by: adrian murphy.2020tourism.com
Apache Module vs CGI, both??
124963 by: Peter Janett
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Please Help me !
This is not a php problem but if someone knows how to decode this :
I have document in encryption type : B*C*N**N but I don't know how do
decode.
for example : baaaa abbab abbab baaba
thanks
roman
attached mail follows:
where is that coming from? What encoding is that? Any info of the "baaaa abbab abbab baaba"
part?
-- Maxim Maletsky maximphp.net
"Roman Duriancik" <rduriancik
indprop.gov.sk> wrote... :
> Please Help me ! > This is not a php problem but if someone knows how to decode this : > I have document in encryption type : B*C*N**N but I don't know how do > decode. > for example : baaaa abbab abbab baaba > > thanks > > roman > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
Does anyone know if PHP has the capabilities of being able to calculate sunrise/sunset times by entering longitude/latitude values if someone was smart enough to write code for it? If not, is there any programs/applications around that allow for times to be entered into php after values have been worked out by the program/app?
Thanks for any help. Adam.
attached mail follows:
On Monday 18 November 2002 15:45, Adam wrote: > Does anyone know if PHP has the capabilities of being able to calculate > sunrise/sunset times by entering longitude/latitude values if someone was > smart enough to write code for it?
I should think so.
> If not, is there any > programs/applications around that allow for times to be entered into php > after values have been worked out by the program/app?
Have you tried googling around?
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* The Lord prefers common-looking people. That is the reason that He makes so many of them. -- Abraham Lincoln */
attached mail follows:
I saw some similar code once... But PHP does not have it installed by default.
Try searching on Google, HotScripts and SourceForge... I'm sure you will come up with something
-- Maxim Maletsky maximphp.net
"Adam" <adamsbarker
hotmail.com> wrote... :
> Does anyone know if PHP has the capabilities of being able to calculate > sunrise/sunset times by entering longitude/latitude values if someone was > smart enough to write code for it? If not, is there any > programs/applications around that allow for times to be entered into php > after values have been worked out by the program/app? > > Thanks for any help. > Adam. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
On Monday 18 November 2002 14:57, Hakkan Lui wrote: > Dear all, > > I used PHP to generate a report on a browser, using forms. When I print the > report using Netscape->Print, a page with the following page appeared > instead of the report. > > --------------------------------------------------------------------------- >- ---------------------- > Data Missing > > This document resulted from a POST operation and has expired from the > cache. If you wish you can repost the form data to recreate the document by > pressing the "reload" button. > --------------------------------------------------------------------------- >- ---------------------- > > How can I solve this problem?
This is a browser issue, use a different browser. NN is being stupid having to reload a page just because you want to print it.
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Did YOU find a DIGITAL WATCH in YOUR box of VELVEETA? */
attached mail follows:
You may try sending some expire headers, but probably won't help you
Hakkan Lui wrote:
>Dear all, > >I used PHP to generate a report on a browser, using forms. When I print the >report using Netscape->Print, a page with the following page appeared >instead of the report. > >---------------------------------------------------------------------------- >---------------------- >Data Missing > >This document resulted from a POST operation and has expired from the cache. >If you wish you can repost the form data to recreate the document by >pressing the "reload" button. >---------------------------------------------------------------------------- >---------------------- > >How can I solve this problem? >Or should I set the timeout value larger (currently 300)? > >P. S. This problem occurs only in Netscape, but not IE. > > >Thanks for any help. > > >Regards, >Hakkan Lui > > > > >
attached mail follows:
you can't access $overall->foo because you've never defined it you need:
function load($class){ eval("\$this->$class = new $class;"); return true; }
Tim
> -----Original Message-----
> From: Tularis [mailto:tularis
xmbforum.com]
> Sent: 17 November 2002 22:21
> To: php-general
lists.php.net
> Subject: OOP-classes in PHP
>
>
> currently I have the followig script:
>
> everything works fine, except for the fact that it doesn't seem to
> understand $overall->foo->foo();. It returns this error:
> "Fatal error: Call to a member function on a non-object in
> d:\apache\htdocs\classes.php on line 32"
>
> Now, I know the object is loaded, because the constructor is run, and
> puts out a 1 onscreen... I wish to know how to make this work...
> any help plz?
>
> thanx
> - Tularis
> <?php
>
> class overall {
> var $loaded;
>
> function load($class){
> eval("\$$class = new $class;");
> return true;
> }
> }
>
> class foo {
> var $bar;
>
> // Constructor
> function foo(){
> if(!isset($this->bar)){
> $this->bar = 1;
> }else{
> $this->bar++;
> }
> echo $this->bar."<br>";
> }
> }
>
> // Start actual loading
> $overall = new overall;
> $overall->load('foo');
>
> // As of here it won't work anymore... somehow
> $overall->foo-> doesn't
> work...
>
> $overall->foo->foo();
> ?>
>
> (and if possible, I would also like to change $overall->foo->foo() to
> $foo->foo(), but still keeping that class as a 'subclass' to
> the overall
> one.)
>
>
attached mail follows:
you've included the class definition at the top of every page, right?
and why don't you just use $_SESSION["cart"] directly instead of using $cart? that way you don't have to worry about scoping issues and continually passing $cart through to functions.
Tim
> -----Original Message-----
> From: Paul [mailto:pax
cfl.rr.com]
> Sent: 18 November 2002 02:59
> To: php-general
lists.php.net
> Subject: Problem with Class - incomplete object error
>
>
> Hi All:
>
> I have a simple page that checks for existence of object in a session.
> If the object is not stored in session object, it creates new one:
>
> If (isset ($_SESSION["cart"])) {
> $cart=$_SESSION["cart"];
> } else {
> $cart = new ShoppingCart ();
> $_SESSION["cart"]= $cart;
> }
>
> So the object cart is available in every page. At this point
> the cart is
> a simple class:
>
> class ShoppingCart {
>
> var $items = array();
>
> function AddItem ($item){
> if ($this->items[$item]) {
> $this->items[$item]=$this->items[$item]+1;
> } else {
> $this->items[$item]=1;
> }
> } // additem
> }
>
> So the cart is either retrieved from the session or created (if non
> existent), however, every time the script calls :
> $cart->AddItem($_GET['item_id']);
>
> I get the following error:
> Fatal error: The script tried to execute a method or access a property
> of an incomplete object. Please ensure that the class definition
> shoppingcart of the object you are trying to operate on was loaded
> _before_ the session was started in .... on line 59
>
> Where line 59 is pointing to $cart->AddItem($_GET['item_id'])
>
> Session_start is present in every page.
>
> Could anyone help me understand where the problem is?
>
> Thanks
> Paul
>
>
>
attached mail follows:
Yes, I have included class definition on the top of the page.
The reason that was using $cart is the fact that I was calling methods/functions of the object such as $cart->AddItem()..and I was not sure whether $_Session['cart']->AddItem would be a correct way or not
Paul
-----Original Message-----
From: Tim Ward [mailto:Tim.ward
stivesdirect.com]
Sent: Monday, November 18, 2002 4:17 AM
To: 'Paul'; php-general
lists.php.net
Subject: [PHP] RE: Problem with Class - incomplete object error
you've included the class definition at the top of every page, right?
and why don't you just use $_SESSION["cart"] directly instead of using $cart? that way you don't have to worry about scoping issues and continually passing $cart through to functions.
Tim
> -----Original Message-----
> From: Paul [mailto:pax
cfl.rr.com]
> Sent: 18 November 2002 02:59
> To: php-general
lists.php.net
> Subject: Problem with Class - incomplete object error
>
>
> Hi All:
>
> I have a simple page that checks for existence of object in a session.
> If the object is not stored in session object, it creates new one:
>
> If (isset ($_SESSION["cart"])) {
> $cart=$_SESSION["cart"];
> } else {
> $cart = new ShoppingCart ();
> $_SESSION["cart"]= $cart;
> }
>
> So the object cart is available in every page. At this point
> the cart is
> a simple class:
>
> class ShoppingCart {
>
> var $items = array();
>
> function AddItem ($item){
> if ($this->items[$item]) {
> $this->items[$item]=$this->items[$item]+1;
> } else {
> $this->items[$item]=1;
> }
> } // additem
> }
>
> So the cart is either retrieved from the session or created (if non
> existent), however, every time the script calls :
> $cart->AddItem($_GET['item_id']);
>
> I get the following error:
> Fatal error: The script tried to execute a method or access a property
> of an incomplete object. Please ensure that the class definition
> shoppingcart of the object you are trying to operate on was loaded
> _before_ the session was started in .... on line 59
>
> Where line 59 is pointing to $cart->AddItem($_GET['item_id'])
>
> Session_start is present in every page.
>
> Could anyone help me understand where the problem is?
>
> Thanks
> Paul
>
>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> -----Original Message-----
> From: Paul [mailto:pax
cfl.rr.com]
> Sent: 18 November 2002 11:49
> To: 'Tim Ward'; php-general
lists.php.net
> Subject: RE: [PHP] RE: Problem with Class - incomplete object error
>
>
> Yes, I have included class definition on the top of the page.
And are you 100% sure it's before your session_start()?
> > The reason that was using $cart is the fact that I was calling > methods/functions of the object such as $cart->AddItem()..and > I was not > sure whether $_Session['cart']->AddItem would be a correct way or not
Well, no, but $_SESSION['cart']->AddItem would...;)!
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
As noted in the error, you must declare the class definition _before_ session_start():
require_once('includes/cart.php'); session_start();
methods are not stored within session
Paul wrote:
>Hi All: > >I have a simple page that checks for existence of object in a session. >If the object is not stored in session object, it creates new one: > >If (isset ($_SESSION["cart"])) { > $cart=$_SESSION["cart"]; > } else { > $cart = new ShoppingCart (); > $_SESSION["cart"]= $cart; > } > >So the object cart is available in every page. At this point the cart is >a simple class: > >class ShoppingCart { > > var $items = array(); > > function AddItem ($item){ > if ($this->items[$item]) { > $this->items[$item]=$this->items[$item]+1; > } else { > $this->items[$item]=1; > } > } // additem >} > >So the cart is either retrieved from the session or created (if non >existent), however, every time the script calls : >$cart->AddItem($_GET['item_id']); > >I get the following error: >Fatal error: The script tried to execute a method or access a property >of an incomplete object. Please ensure that the class definition >shoppingcart of the object you are trying to operate on was loaded >_before_ the session was started in .... on line 59 > >Where line 59 is pointing to $cart->AddItem($_GET['item_id']) > >Session_start is present in every page. > >Could anyone help me understand where the problem is? > >Thanks >Paul > > > > >
attached mail follows:
This might sound stupid but what the hell. I am running Red Hat 8.0 with Apache. I have apache working fine right now. I am wanting to learn some php but really don't know where to start/look or anything to tell the truth. I do "everything" from my FreeBSD 4.6.2 box but Apache runs on Red Hat. With me? Could someone give me a very "basic" PHP script or whatever they are called, tell me where I "should" or "need" to put it on my Red Hat 8.0 box and what else I need to do to see the script on my webpage? Put it like this. I will make a html file in /var/www/html/ called php and inside php i will make a file named php.ini ( i think it should be .ini right?) and I will edit my index.html file, add a link and point it to the php.ini file and see what happens. I just want to get a very basic idea of php, what it does, where to put the php file and how to get started on the web. I really hope this e-mail doesn't get ignored so could someone just help me out a lil bit here? I would appreciate it.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD)
iD8DBQE92LD49+Gasy4++tcRApVrAJ44wbd5fed+K2vYwt4o8wGmt+cfVQCfd/Zp VmcIuluB4IXuZKUEWLz05iM= =kaWt -----END PGP SIGNATURE-----
attached mail follows:
http://www.php.net/manual/en/tutorial.php
Bryan Cassidy wrote:
>This might sound stupid but what the hell. I am running Red Hat 8.0 >with Apache. I have apache working fine right now. I am wanting to >learn some php but really don't know where to start/look or anything >to tell the truth. I do "everything" from my FreeBSD 4.6.2 box but >Apache runs on Red Hat. With me? Could someone give me a very "basic" >PHP script or whatever they are called, tell me where I "should" or >"need" to put it on my Red Hat 8.0 box and what else I need to do to >see the script on my webpage? Put it like this. I will make a html >file in /var/www/html/ called php and inside php i will make a file >named php.ini ( i think it should be .ini right?) and I will edit my >index.html file, add a link and point it to the php.ini file and see >what happens. I just want to get a very basic idea of php, what it >does, where to put the php file and how to get started on the web. I >really hope this e-mail doesn't get ignored so could someone just help >me out a lil bit here? I would appreciate it. > >
attached mail follows:
Steps:
1. Install PHP. Already installed? 2. make a file accessible via browser and call it test.php 3. put this into it:
<? echo "Hello World<br>"; phpinfo(); ?>
4. Now, access that file.
If you see "Hello World" outputted followed by a long blue-gray table with lots of server data - means everything worked and you could go to the sites like PHP Beginner (www.phpbeginner.com) or many others to read some tutorials and still code to keep testing.
If you get asked to download a .php file then make sure you installed your PHP with Apache right (requires some editing of httpd.conf, read the manual)
Cheers,
-- Maxim Maletsky maximphp.net
Bryan Cassidy <bryanc2000
insightbb.com> wrote... :
> This might sound stupid but what the hell. I am running Red Hat 8.0 > with Apache. I have apache working fine right now. I am wanting to > learn some php but really don't know where to start/look or anything > to tell the truth. I do "everything" from my FreeBSD 4.6.2 box but > Apache runs on Red Hat. With me? Could someone give me a very "basic" > PHP script or whatever they are called, tell me where I "should" or > "need" to put it on my Red Hat 8.0 box and what else I need to do to > see the script on my webpage? Put it like this. I will make a html > file in /var/www/html/ called php and inside php i will make a file > named php.ini ( i think it should be .ini right?) and I will edit my > index.html file, add a link and point it to the php.ini file and see > what happens. I just want to get a very basic idea of php, what it > does, where to put the php file and how to get started on the web. I > really hope this e-mail doesn't get ignored so could someone just help > me out a lil bit here? I would appreciate it.
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
oki im traying with php 4.2.2 ..... but according to the changelog ... it seems that nothing as change between 4.2.2 and 4.2.3 so ... i don't understand .... bah this must the voodoo part of the informatics :P
Le Vendredi 15 Novembre 2002 16:11, vous avez écrit : > Hello Matthieu, > > i've got the the same problem with apache-2.0.40 and php-4.2.3. > 4.2.2 works fine. > > i have rebuild the php-4.2.2 rpm package for rh8. > (added a few changes for informix: > LD_LIBRARY_PATH="/opt/informix/lib:/opt/informix/lib/esql"; export > LD_LIBRARY_PATH > INFORMIXDIR="/opt/informix"; export INFORMIXDIR > > LDFLAGS="-L/usr/kerberos/lib -L/opt/informix/lib > -L/opt/informix/lib/esql > -L/usr/src/redhat/BUILD/php-4.2.2/build-cgi/ext/informix"; export > LDFLAGS > > and added configure option --with-informix\ > ) > > if try to install the php-4.2.3.rpm i get > > error: Failed dependencies: > libifasf.so is needed by php-4.2.3-1 > libifgen.so is needed by php-4.2.3-1 > libifgls.so is needed by php-4.2.3-1 > libifglx.so is needed by php-4.2.3-1 > libifos.so is needed by php-4.2.3-1 > libifsql.so is needed by php-4.2.3-1 > libthasf.so is needed by php-4.2.3-1 > libthgen.so is needed by php-4.2.3-1 > libthos.so is needed by php-4.2.3-1 > libthsql.so is needed by php-4.2.3-1 > > > with php-4.2.2 just: > error: Failed dependencies: > libifasf.so is needed by php-4.2.2-8.0.5 > libifgen.so is needed by php-4.2.2-8.0.5 > libifgls.so is needed by php-4.2.2-8.0.5 > libifglx.so is needed by php-4.2.2-8.0.5 > libifos.so is needed by php-4.2.2-8.0.5 > libifsql.so is needed by php-4.2.2-8.0.5 > > (maybe this could somebody a hint) > > > > Oliver
- --
__________
/ Matthieu Le Corre
| Service Informatique
| ____________________
| Inspection Academique de la Sarthe
| 72000 LE MANS
| ____________________________
| Tel : 02 43 61 58 91
| Mail : Matthieu.lecorre
ac-nantes.fr
\____________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE92MR+iQG6YxCcev4RAgPzAJ957hdRDnCFxmjr/kCoM/XZ4vZFcwCfSYll LhErmzkKYqf9FMavCILp8s0= =DaGC -----END PGP SIGNATURE-----
attached mail follows:
could somebody tell me why libphp4.so (php-4.2.3 --with-informix, httpd-2.43, RH8, Intel) links against
libthasf.so libthgen.so libthos.so libthsql.so
and misses
libifasf.so libifgen.so libifos.so libifsql.so
4.2.2 works fine with these libs and does not have the above ones.
and why do i have to set LDFLAGS="-L/opt/informix/lib -L/opt/informix/lib/esql -L/tmp/src/php-4.2.3/ext/informix"
i saw something like this in the macro file (/ext/informix/config.m4):
PHP_ADD_LIBPATH($INFORMIXDIR/lib, INFORMIX_SHARED_LIBADD) PHP_ADD_LIBPATH($INFORMIXDIR/lib/esql, INFORMIX_SHARED_LIBADD)
(INFORMIXDIR is set)
php-4.2.3: libdl.so.2 => /lib/libdl.so.2 (0x40192000) libpam.so.0 => /lib/libpam.so.0 (0x40196000) libthsql.so => /opt/informix/lib/esql/libthsql.so (0x4019e000) libthasf.so => /opt/informix/lib/libthasf.so (0x401e1000) libthgen.so => /opt/informix/lib/esql/libthgen.so (0x40217000) libthos.so => /opt/informix/lib/esql/libthos.so (0x40269000) libifgls.so => /lib/libifgls.so (0x40280000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x402bb000) libifglx.so => /lib/libifglx.so (0x402e8000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402ea000) libpspell.so.4 => /usr/lib/libpspell.so.4 (0x4030a000) libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40323000) libgmp.so.3 => /usr/lib/libgmp.so.3 (0x40362000) libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x4038f000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x403c0000) libz.so.1 => /usr/lib/libz.so.1 (0x403e3000) libdb-4.0.so => /lib/libdb-4.0.so (0x403f1000) libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40499000) libcurl.so.2 => /usr/lib/libcurl.so.2 (0x404a0000) libbz2.so.1 => /usr/lib/libbz2.so.1 (0x404c2000) libssl.so.2 => /lib/libssl.so.2 (0x404d1000) libcrypto.so.2 => /lib/libcrypto.so.2 (0x40501000) libresolv.so.2 => /lib/libresolv.so.2 (0x405d5000) libm.so.6 => /lib/i686/libm.so.6 (0x405e7000) libttf.so.2 => /usr/lib/libttf.so.2 (0x40609000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40630000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40679000) libnsl.so.1 => /lib/libnsl.so.1 (0x40697000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0x406ac000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) libltdl.so.3 => /usr/lib/libltdl.so.3 (0x40754000) libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1 (0x4075c000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4075e000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40810000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
php-4.2.2:
libdl.so.2 => /lib/libdl.so.2 (0x40184000) libpam.so.0 => /lib/libpam.so.0 (0x40188000) libifsql.so => /lib/libifsql.so (0x40190000) libifasf.so => /lib/libifasf.so (0x401d0000) libifgen.so => /lib/libifgen.so (0x40206000) libifos.so => /lib/libifos.so (0x40254000) libifgls.so => /lib/libifgls.so (0x40268000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x402a3000) libifglx.so => /lib/libifglx.so (0x402d0000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402d2000) libpspell.so.4 => /usr/lib/libpspell.so.4 (0x402f2000) libncurses.so.5 => /usr/lib/libncurses.so.5 (0x4030b000) libgmp.so.3 => /usr/lib/libgmp.so.3 (0x4034a000) libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x40377000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x403a8000) libz.so.1 => /usr/lib/libz.so.1 (0x403cb000) libm.so.6 => /lib/i686/libm.so.6 (0x403d9000) libxml2.so.2 => /usr/lib/libxml2.so.2 (0x403fb000) libdb-4.0.so => /lib/libdb-4.0.so (0x404a3000) libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x4054c000) libcurl.so.2 => /usr/lib/libcurl.so.2 (0x40553000) libcrypto.so.2 => /lib/libcrypto.so.2 (0x40574000) libssl.so.2 => /lib/libssl.so.2 (0x40648000) libbz2.so.1 => /usr/lib/libbz2.so.1 (0x40678000) libresolv.so.2 => /lib/libresolv.so.2 (0x40687000) libttf.so.2 => /usr/lib/libttf.so.2 (0x4069a000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x406c0000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40709000) libnsl.so.1 => /lib/libnsl.so.1 (0x40727000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) libltdl.so.3 => /usr/lib/libltdl.so.3 (0x4073c000) libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1 (0x40744000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40746000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x407f8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
arf ... I failed to compile php 4.2.2 .... du to compiling error in sapi/apachefilter module for http2.0.43 on a RH 7.2 it's not my days ....
Le Lundi 18 Novembre 2002 15:42, Oliver Fänger a écrit : > could somebody tell me why libphp4.so (php-4.2.3 --with-informix, > httpd-2.43, RH8, Intel) links against > > libthasf.so > libthgen.so > libthos.so > libthsql.so > > and misses > > libifasf.so > libifgen.so > libifos.so > libifsql.so > > 4.2.2 works fine with these libs and does not have the above ones. > > and why do i have to set LDFLAGS="-L/opt/informix/lib > -L/opt/informix/lib/esql -L/tmp/src/php-4.2.3/ext/informix" > > i saw something like this in the macro file (/ext/informix/config.m4): > > PHP_ADD_LIBPATH($INFORMIXDIR/lib, INFORMIX_SHARED_LIBADD) > PHP_ADD_LIBPATH($INFORMIXDIR/lib/esql, INFORMIX_SHARED_LIBADD) > > (INFORMIXDIR is set) > > php-4.2.3: > libdl.so.2 => /lib/libdl.so.2 (0x40192000) > libpam.so.0 => /lib/libpam.so.0 (0x40196000) > libthsql.so => /opt/informix/lib/esql/libthsql.so (0x4019e000) > libthasf.so => /opt/informix/lib/libthasf.so (0x401e1000) > libthgen.so => /opt/informix/lib/esql/libthgen.so (0x40217000) > libthos.so => /opt/informix/lib/esql/libthos.so (0x40269000) > libifgls.so => /lib/libifgls.so (0x40280000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0x402bb000) > libifglx.so => /lib/libifglx.so (0x402e8000) > libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402ea000) > libpspell.so.4 => /usr/lib/libpspell.so.4 (0x4030a000) > libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40323000) > libgmp.so.3 => /usr/lib/libgmp.so.3 (0x40362000) > libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x4038f000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x403c0000) > libz.so.1 => /usr/lib/libz.so.1 (0x403e3000) > libdb-4.0.so => /lib/libdb-4.0.so (0x403f1000) > libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40499000) > libcurl.so.2 => /usr/lib/libcurl.so.2 (0x404a0000) > libbz2.so.1 => /usr/lib/libbz2.so.1 (0x404c2000) > libssl.so.2 => /lib/libssl.so.2 (0x404d1000) > libcrypto.so.2 => /lib/libcrypto.so.2 (0x40501000) > libresolv.so.2 => /lib/libresolv.so.2 (0x405d5000) > libm.so.6 => /lib/i686/libm.so.6 (0x405e7000) > libttf.so.2 => /usr/lib/libttf.so.2 (0x40609000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40630000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40679000) > libnsl.so.1 => /lib/libnsl.so.1 (0x40697000) > libxml2.so.2 => /usr/lib/libxml2.so.2 (0x406ac000) > libc.so.6 => /lib/i686/libc.so.6 (0x42000000) > libltdl.so.3 => /usr/lib/libltdl.so.3 (0x40754000) > libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1 > (0x4075c000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4075e000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40810000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > > php-4.2.2: > > libdl.so.2 => /lib/libdl.so.2 (0x40184000) > libpam.so.0 => /lib/libpam.so.0 (0x40188000) > libifsql.so => /lib/libifsql.so (0x40190000) > libifasf.so => /lib/libifasf.so (0x401d0000) > libifgen.so => /lib/libifgen.so (0x40206000) > libifos.so => /lib/libifos.so (0x40254000) > libifgls.so => /lib/libifgls.so (0x40268000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0x402a3000) > libifglx.so => /lib/libifglx.so (0x402d0000) > libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402d2000) > libpspell.so.4 => /usr/lib/libpspell.so.4 (0x402f2000) > libncurses.so.5 => /usr/lib/libncurses.so.5 (0x4030b000) > libgmp.so.3 => /usr/lib/libgmp.so.3 (0x4034a000) > libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x40377000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x403a8000) > libz.so.1 => /usr/lib/libz.so.1 (0x403cb000) > libm.so.6 => /lib/i686/libm.so.6 (0x403d9000) > libxml2.so.2 => /usr/lib/libxml2.so.2 (0x403fb000) > libdb-4.0.so => /lib/libdb-4.0.so (0x404a3000) > libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x4054c000) > libcurl.so.2 => /usr/lib/libcurl.so.2 (0x40553000) > libcrypto.so.2 => /lib/libcrypto.so.2 (0x40574000) > libssl.so.2 => /lib/libssl.so.2 (0x40648000) > libbz2.so.1 => /usr/lib/libbz2.so.1 (0x40678000) > libresolv.so.2 => /lib/libresolv.so.2 (0x40687000) > libttf.so.2 => /usr/lib/libttf.so.2 (0x4069a000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x406c0000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40709000) > libnsl.so.1 => /lib/libnsl.so.1 (0x40727000) > libc.so.6 => /lib/i686/libc.so.6 (0x42000000) > libltdl.so.3 => /usr/lib/libltdl.so.3 (0x4073c000) > libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1 > (0x40744000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40746000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x407f8000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
- --
__________
/ Matthieu Le Corre
| Service Informatique
| ____________________
| Inspection Academique de la Sarthe
| 72000 LE MANS
| ____________________________
| Tel : 02 43 61 58 91
| Mail : Matthieu.lecorre
ac-nantes.fr
\____________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE92RzGiQG6YxCcev4RAh7cAJ9pl0sBHJvh0uBRP/OOjFZwdebrHwCglH6U 6zEW/R2le5OG1WTYHGaqvyc= =ug+V -----END PGP SIGNATURE-----
attached mail follows:
I would like to create a web page which allow people to browse the directory structure and the files listed in every directory. If you have experience about that, could you kindly give me some advice or references? Thanks in advance.
Cheers,
Helen
--------------------------------- Get a bigger mailbox -- choose a size that fits your needs.
attached mail follows:
Helen,
> I would like to create a web page which allow people to browse the directory structure and the files listed in every directory. If you have experience about that, could you kindly give me some advice or references? Thanks in advance.
=To this simple boy it seems like a strange, even a potentially insecure sort of thing to do, but ...
=Suggest you don't try to implement in PHP. Use your web server, eg Apache, and allow it to display the filesystem if no index.htm or default.htm web page is available.
=dn
attached mail follows:
look at here:
www.php.net/dir
-- Maxim Maletsky maximphp.net
Helen Muller <helen20020918
yahoo.co.uk> wrote... :
> > I would like to create a web page which allow people to browse the directory structure and the files listed in every directory. If you have experience about that, could you kindly give me some advice or references? Thanks in advance. > > Cheers, > > Helen > > > > > > > --------------------------------- > Get a bigger mailbox -- choose a size that fits your needs.
attached mail follows:
hi,
i'm having a little problem with session_start() and utf-8 and i want just to figure out if this is a bug or just my incompetence.
this is the code:
<?PHP session_start();?> <html> <head> <title>TITLE</title> </head> <body> <?PHP //just to check if other function are working well echo phpversion(); ?> </body> </html>
saving this little piece in ansi encoding everything is working just fine. BUT, saving this with enconding is set to UTF-8 the php-parser says:
Warning: Cannot send session cookie - headers already sent by (output started at *:\*****\*****\*****\*****\check2.php:1) in *:\*****\*****\*****\*****\check2.php on line 1
Warning: Cannot send session cache limiter - headers already sent (output started at *:\*****\*****\*****\*****\check2.php:1) in *:\*****\*****\*****\*****\check2.php on line 1
the line "echo phpversion()" is working well with both encodings.
i checked this with windows2000server, linux red-hat and unix operating systems, with apache and IIS webserver and with different php-versions including the 4.2.2. everytime there was the same warning message.
it would be very nice if someone could tell me if i am doing something wrong or not and if (s)he is getting the same error.
cheers, marco
attached mail follows:
Hi,
I pass arguments in the url, how do i pass multiple args?
eg. href="test.php?num=1" (only one arg)
Do i use commas , please show me !
Thanks , Shaun
attached mail follows:
Like this:
http://fqdn.domain.com/path/path/page.php?var1=value1&var2=value2&...
Page.php can then reference $var1 and $var2 if register globals is on (bad idea) or $_GET['var1'] and $_GET['var2']
hth
David Russell
IT Support Manager
Barloworld Optimus (Pty) Ltd
Tel: +2711 444-7250
Fax: +2711 444-7256
e-mail: DavidR
BarloworldOptimus.com
web: www.BarloworldOptimus.com
-----Original Message-----
From: Shaun [mailto:johan
novtel.co.za]
Sent: 18 November 2002 02:06 PM
To: php-general
lists.php.net
Subject: [PHP] Get
Hi,
I pass arguments in the url, how do i pass multiple args?
eg. href="test.php?num=1" (only one arg)
Do i use commas , please show me !
Thanks , Shaun
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- application/x-pkcs7-signature attachment: smime.p7s
attached mail follows:
href='test.html?var1=1&var2=2'
Michael Egan
-----Original Message-----
From: Shaun [mailto:johan
novtel.co.za]
Sent: 18 November 2002 12:06
To: php-general
lists.php.net
Subject: [PHP] Get[Scanned]
Hi,
I pass arguments in the url, how do i pass multiple args?
eg. href="test.php?num=1" (only one arg)
Do i use commas , please show me !
Thanks , Shaun
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hello, I could use some help.
I have two framed pages, upperframe.html and lowerframe.html. In upper frame.html:
echo "<table border=1>"; echo "<tr><td></td><td>ID</td><td>Subject</td><td>Open</td><td>Close</td></tr>"; while($row = MySQL_fetch_array($result)) { echo "<tr><td><form><input type=\"checkbox\" method=\"post\" name=\"linia\"></form></td>"; echo "<td><a href=\"????\" target=\"_parent\">{$row['id']}</a></td>"; ?????????????? echo "<td>{$row['subject']}</td>"; echo "<td>{$row['open']}</td>"; echo "<td>{$row['close']}</td></tr>"; } echo "</table>";
I display the content of the main table, which has an autoincrement index. For every index I have another table, something like tableID. What I want is to press on the id from a row in upperframe table and to display in lowerframe the tableID. How can I do that?
Thanks a lot,
Adrian
attached mail follows:
Message-ID: <3DD8EEC8.5020607
webglobe.sk>
Date: Mon, 18 Nov 2002 14:44:40 +0100
From: Marek Kilimajer <kilimajer
webglobe.sk>
MIME-Version: 1.0
To: PHP <php-general
lists.php.net>
Content-Type: text/plain; charset=us-ascii; formatowed
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP] php, forms, mysql
You don't need to use forms (which you got wrong), but simple links with target="lowerframe" and href="lowerframe.php?tableID=$tableID", then you get in your lowerframe.php $_GET['tableID']
Adrian Partenie wrote:
>Hello, >I could use some help. > > >I have two framed pages, upperframe.html and lowerframe.html. In upper frame.html: > >echo "<table border"; >echo "<tr><td></td><td>ID</td><td>Subject</td><td>Open</td><td>Close</td></tr>"; while($row = MySQL_fetch_array($result)) { >echo "<tr><td><form><input type=\"checkbox\" method=\"post\" name=\"linia\"></form></td>"; >echo "<td><a href=\"????\" target=\"_parent\">{$row['id']}</a></td>"; ?????????????? >echo "<td>{$row['subject']}</td>"; >echo "<td>{$row['open']}</td>"; >echo "<td>{$row['close']}</td></tr>"; >} >echo "</table>"; > >I display the content of the main table, which has an autoincrement index. For every index I have another table, something like tableID. What I want is to press on the id from a row in upperframe table and to display in lowerframe the tableID. How can I do that? > > > >Thanks a lot, > >Adrian > > >
attached mail follows:
Hi!
I need to solve this problem:
I have a menu bar on my main page and a dynamic zone on the others levels of my html/php site. When I am clicking the 'item 1' on my menu, I want to load item1.php3 in the dynamic section of the next page.
So I think I have to use sometinng like get variable in the adress bar and after put on my 'next page' <include $var.php3> or something like that ?
As you can see I'm a newbie and a quebecer so, sorry for my english and thanks for your help!
Ben
attached mail follows:
So, the link might look like:
<a href="page.php?item=1">item 1</a>
Then page.php might look like this:
<? include("{$item}.php"); ?>
BUT this would be smarter:
<? // uncomment this next line if you have register_globals OFF // $item = $_GET['item'];
if(empty($item)) { // set a default item number $item = 1; }
$file = "{$item}.php3"; if(file_exists($file)) { include($file); } else { echo "sorry, file {$file} not found"; } ?>
Enjoy!
Justin
on 18/11/02 11:07 PM, Cyclone Médias (benjamin.trepanier
cyclonemedias.com)
wrote:
> Hi! > > I need to solve this problem: > > I have a menu bar on my main page and a dynamic zone on the others levels of > my html/php site. When I am clicking the 'item 1' on my menu, I want to load > item1.php3 in the dynamic section of the next page. > > So I think I have to use sometinng like get variable in the adress bar and > after put on my 'next page' <include $var.php3> or something like that ? > > > As you can see I'm a newbie and a quebecer so, sorry for my english and > thanks for your help! > > Ben >
Justin French -------------------- http://Indent.com.au Web Developent & Graphic Design --------------------
attached mail follows:
instead of if(empty($item)) { ... I would recomend if(is_numeric($item)) { ...
Justin French wrote:
>So, the link might look like:
>
><a href="page.php?item=1">item 1</a>
>
>Then page.php might look like this:
>
><?
>include("{$item}.php");
>?>
>
>BUT this would be smarter:
>
><?
>// uncomment this next line if you have register_globals OFF
>// $item = $_GET['item'];
>
>if(empty($item))
> {
> // set a default item number
> $item = 1;
> }
>
>$file = "{$item}.php3";
>if(file_exists($file))
> {
> include($file);
> }
>else
> {
> echo "sorry, file {$file} not found";
> }
>?>
>
>
>Enjoy!
>
>
>Justin
>
>
>on 18/11/02 11:07 PM, Cyclone Médias (benjamin.trepanier
cyclonemedias.com)
>wrote:
>
>
>
>>Hi!
>>
>>I need to solve this problem:
>>
>>I have a menu bar on my main page and a dynamic zone on the others levels of
>>my html/php site. When I am clicking the 'item 1' on my menu, I want to load
>>item1.php3 in the dynamic section of the next page.
>>
>>So I think I have to use sometinng like get variable in the adress bar and
>>after put on my 'next page' <include $var.php3> or something like that ?
>>
>>
>>As you can see I'm a newbie and a quebecer so, sorry for my english and
>>thanks for your help!
>>
>>Ben
>>
>>
>>
>
>Justin French
>--------------------
>http://Indent.com.au
>Web Developent &
>Graphic Design
>--------------------
>
>
>
>
attached mail follows:
on 19/11/02 12:31 AM, Marek Kilimajer (kilimajer
webglobe.sk) wrote:
> instead of > if(empty($item)) { ... > I would recomend > if(is_numeric($item)) { ...
very true -- thanks for picking that up!
Justin French -------------------- http://Indent.com.au Web Developent & Graphic Design --------------------
attached mail follows:
On Sun, 17 Nov 2002 22:08:36 -0800 (PST), you wrote:
>> The function imap_open() is for opening an connection to an IMAP >> server. It doesn't operate directly on a file system and it is >> ignorant of the actual mailbox implementation as this is all >> abstracted by the IMAP protocol. Where the mail is stored is a >> function of your IMAP server, not PHP. > >That's not actually true. The imap functions are an abstraction on top of >many different backends, not just imap. You can talk to pop and nntp >servers as well, for example, and yes, even a local mailstore with no >server involved at all.
Oops, my mistake. I was not aware. And of course I see now the second sentence on the IMAP documentation which says "local mailbox access methods". Is there any more documentation on using this approach?
attached mail follows:
> >That's not actually true. The imap functions are an abstraction on top of > >many different backends, not just imap. You can talk to pop and nntp > >servers as well, for example, and yes, even a local mailstore with no > >server involved at all. > > Oops, my mistake. I was not aware. And of course I see now the > second sentence on the IMAP documentation which says "local mailbox > access methods". Is there any more documentation on using this > approach?
Yes, see the c-client docs.
-Rasmus
attached mail follows:
Me again.
I think this really badly documented in the documentation. I hope this is solved soon. To be more detailed: The preg_replace_callback()-function documentation says it is the same as the preg_replacec()-function, except for the second argument. Apparently, it is not, since it doesn't support multiple patterns to be recognized and replaced. I think this should be made clear. I suppose I'll be using the preg_replace(), then. Maybe I'll try to find the way-in-between, with the /e-modifier ... I thought the callback-variant was more elegant, but I have to get it to work, so ...
Greetz, Bikeman
"John W. Holmes" <holmes072000
charter.net> wrote in message
news:006101c28e91$4609e190$7c02a8c0
coconut...
> "callback" should be the name of a function that determines what the
> matched pattern will be replaced with.
>
> Maybe you just need the regular preg_replace(), instead of the one with
> callback?
>
> ---John Holmes...
>
> > -----Original Message-----
> > From: Bikeman [mailto:bikeman82
hotmail.com]
> > Sent: Sunday, November 17, 2002 2:23 PM
> > To: phpdoc
lists.php.net; php-general
lists.php.net; php-
> > lang
lists.php.net
> > Subject: [PHP] preg_replace_callback
> >
> > Hello.
> >
> > I have totally no clue at all wether I am posting in the right
> newsgroup
> > here, and I was not planning on caching all messages in my (first time
> > used,
> > I prefer Outlook) Outlook Express before searching. So if I am
> disobeying
> > all rules here ... I'm sorry ... I just am not an experienced news-
> > service
> > user ...
> >
> > Now, my question/remark/bug report. It concerns, ad you could guess,
> the
> > preg_replace_callback function. The manual is very short on this
> > function,
> > and the comments posted on the online-version of the manual, are not
> > helping
> > me, either ... I am trying to use this function as the regular
> > preg_replace
> > can be used, namely woth a patterns-array, a replacement-array (which
> gets
> > the callback-array) and a subject. This doesn't work, though ... It
> > appears as if the callback-variant of the preg_replace version isn't
> > capable
> > of handling multiple patterns at a time. This is the error-message I
> get:
> > "Warning: preg_replace_callback() requires argument 2, 'Array', to be
> a
> > valid callback in ...". I pass it, as a second argument, an Array
> that
> > consists of strings containing the names of functions I defined later
> in
> > my
> > php-file. (Hmmm ... Could that be the problem? Tha fact that I
> define
> > the
> > functions AFTER I give the Array tot the functions? Don't think so,
> > though
> > ...)
> >
> > Did anybody have the same experience, or am I really doing something
> > wrong?
> >
> > Tnx in advance for any reply!!
> >
> > Bikeman
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
attached mail follows:
On Mon, 18 Nov 2002, Bikeman wrote:
> Me again. > > I think this really badly documented in the documentation. I hope this is > solved soon. To be more detailed: The preg_replace_callback()-function > documentation says it is the same as the preg_replacec()-function, except > for the second argument. Apparently, it is not, since it doesn't support > multiple patterns to be recognized and replaced. I think this should be > made clear. I suppose I'll be using the preg_replace(), then. Maybe I'll > try to find the way-in-between, with the /e-modifier ... I thought the > callback-variant was more elegant, but I have to get it to work, so ...
Please file a bugreport in the "Documentation problem" so that we won't forget this.
Derick
> "John W. Holmes" <holmes072000
charter.net> wrote in message
> news:006101c28e91$4609e190$7c02a8c0
coconut...
> > "callback" should be the name of a function that determines what the
> > matched pattern will be replaced with.
> >
> > Maybe you just need the regular preg_replace(), instead of the one with
> > callback?
> >
> > ---John Holmes...
> >
> > > -----Original Message-----
> > > From: Bikeman [mailto:bikeman82
hotmail.com]
> > > Sent: Sunday, November 17, 2002 2:23 PM
> > > To: phpdoc
lists.php.net; php-general
lists.php.net; php-
> > > lang
lists.php.net
> > > Subject: [PHP] preg_replace_callback
> > >
> > > Hello.
> > >
> > > I have totally no clue at all wether I am posting in the right
> > newsgroup
> > > here, and I was not planning on caching all messages in my (first time
> > > used,
> > > I prefer Outlook) Outlook Express before searching. So if I am
> > disobeying
> > > all rules here ... I'm sorry ... I just am not an experienced news-
> > > service
> > > user ...
> > >
> > > Now, my question/remark/bug report. It concerns, ad you could guess,
> > the
> > > preg_replace_callback function. The manual is very short on this
> > > function,
> > > and the comments posted on the online-version of the manual, are not
> > > helping
> > > me, either ... I am trying to use this function as the regular
> > > preg_replace
> > > can be used, namely woth a patterns-array, a replacement-array (which
> > gets
> > > the callback-array) and a subject. This doesn't work, though ... It
> > > appears as if the callback-variant of the preg_replace version isn't
> > > capable
> > > of handling multiple patterns at a time. This is the error-message I
> > get:
> > > "Warning: preg_replace_callback() requires argument 2, 'Array', to be
> > a
> > > valid callback in ...". I pass it, as a second argument, an Array
> > that
> > > consists of strings containing the names of functions I defined later
> > in
> > > my
> > > php-file. (Hmmm ... Could that be the problem? Tha fact that I
> > define
> > > the
> > > functions AFTER I give the Array tot the functions? Don't think so,
> > > though
> > > ...)
> > >
> > > Did anybody have the same experience, or am I really doing something
> > > wrong?
> > >
> > > Tnx in advance for any reply!!
> > >
> > > Bikeman
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
>
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
----------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ JDI Media Solutions --------------[ if you hold a unix shell to your ear, do you hear the c? ]-
attached mail follows:
<<this is probably not at all what you want, but i wrote it just in case.>> . . . <<if 1 is in the string it will return either "middle", "left", "right" or "only".. if it is not it will return false.>>
The problem with this is that I need to do it at the Linux level, or else I'm not saving PHP the trouble of searching through every file to find it.
__________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com
attached mail follows:
I am trying to send an email with form vars inside it but I cannot seem to get the vars to be parsed.
Here is my code: /* message */ $message = ' <html> <head> <title>Products Purchased:</title> </head> <body> <p>Customer Information:</p> <table> <tr> <td>Name</td> <td>{$name}</td> </tr> <tr> <td>Title</td> <td>.$title.</td> </tr> <tr> <td>Email</td> <td>.$email.</td> </tr> <tr> <td>Company</td> <td>.$company.</td> </tr> <tr> <td>Phone</td> <td>.$phone.</td> </tr> <tr> <td>Fax</td> <td>.$fax.</td> </tr> <tr> <td>Address</td> <td>.$address.</td> </tr> <tr> <td>City</td> <td>.$city.</td> </tr> <tr> <td>State</td> <td>.$state.</td> </tr> <tr> <td>Postal Code</td> <td>.$postalcode.</td> </tr> <tr> <td>Country</td> <td>.$country.</td> </tr> <tr> <td colspan=2> </td> </tr> <tr> <td colspan=2>Billing Information</td> </tr> <tr> <td>Card Type</td> <td>.$methodofpay.</td> </tr> <tr> <td>Card Name</td> <td>.$cardname.</td> </tr> <tr> <td>Exp Date</td> <td>.$cardexp.</td> </tr> </table> </body> </html> ';
This outputs this: Customer Information:
Name {$name} Title .$title. Email .$email. Company .$company. Phone .$phone. Fax .$fax. Address .$address. City .$city. State .$state. Postal Code .$postalcode. Country .$country. Billing Information Card Type .$methodofpay. Card Name .$cardname. Exp Date .$cardexp.
Please help me figure this out. I know its simple, but I cannot see it ;)
Thanks, Clint
attached mail follows:
You are using single quotes, either do $message = '<html> .... '. $some_var . ' .....'; or $message = "<html> ..... $some_var ....."; // using double quotes
Clint Tredway wrote:
>I am trying to send an email with form vars inside it but I cannot seem >to get the vars to be parsed. > >Here is my code: >/* message */ > $message = ' > <html> > <head> > <title>Products Purchased:</title> > </head> > <body> > <p>Customer Information:</p> > <table> > <tr> > <td>Name</td> > <td>{$name}</td> > </tr> > <tr> > <td>Title</td> > <td>.$title.</td> > </tr> > <tr> > <td>Email</td> > <td>.$email.</td> > </tr> > <tr> > <td>Company</td> > <td>.$company.</td> > </tr> > <tr> > <td>Phone</td> > <td>.$phone.</td> > </tr> > <tr> > <td>Fax</td> > <td>.$fax.</td> > </tr> > <tr> > <td>Address</td> > <td>.$address.</td> > </tr> > <tr> > <td>City</td> > <td>.$city.</td> > </tr> > <tr> > <td>State</td> > <td>.$state.</td> > </tr> > <tr> > <td>Postal Code</td> > <td>.$postalcode.</td> > </tr> > <tr> > <td>Country</td> > <td>.$country.</td> > </tr> > <tr> > <td colspan=2> </td> > </tr> > <tr> > <td colspan=2>Billing Information</td> > </tr> > <tr> > <td>Card Type</td> > <td>.$methodofpay.</td> > </tr> > <tr> > <td>Card Name</td> > <td>.$cardname.</td> > </tr> > <tr> > <td>Exp Date</td> > <td>.$cardexp.</td> > </tr> > </table> > </body> > </html> > '; > >This outputs this: >Customer Information: > >Name {$name} >Title .$title. >Email .$email. >Company .$company. >Phone .$phone. >Fax .$fax. >Address .$address. >City .$city. >State .$state. >Postal Code .$postalcode. >Country .$country. > >Billing Information >Card Type .$methodofpay. >Card Name .$cardname. >Exp Date .$cardexp. > >Please help me figure this out. I know its simple, but I cannot see it >;) > >Thanks, >Clint > > > >
attached mail follows:
Seems to me that you are missing the opening and closing PHP tags (<??>)
Quoting Clint Tredway <ctredway
fishermenstudios.com>:
### I am trying to send an email with form vars inside it but I cannot seem ### to get the vars to be parsed. ### ### Here is my code: ### /* message */ ### $message = ' ### <html> ### <head> ### <title>Products Purchased:</title> ### </head> ### <body> ### <p>Customer Information:</p> ### <table> ### <tr> ### <td>Name</td> ### <td>{$name}</td> ### </tr> ### <tr> ### <td>Title</td> ### <td>.$title.</td> ### </tr> ### <tr> ### <td>Email</td> ### <td>.$email.</td> ### </tr> ### <tr> ### <td>Company</td> ### <td>.$company.</td> ### </tr> ### <tr> ### <td>Phone</td> ### <td>.$phone.</td> ### </tr> ### <tr> ### <td>Fax</td> ### <td>.$fax.</td> ### </tr> ### <tr> ### <td>Address</td> ### <td>.$address.</td> ### </tr> ### <tr> ### <td>City</td> ### <td>.$city.</td> ### </tr> ### <tr> ### <td>State</td> ### <td>.$state.</td> ### </tr> ### <tr> ### <td>Postal Code</td> ### <td>.$postalcode.</td> ### </tr> ### <tr> ### <td>Country</td> ### <td>.$country.</td> ### </tr> ### <tr> ### <td colspan=2> </td> ### </tr> ### <tr> ### <td colspan=2>Billing Information</td> ### </tr> ### <tr> ### <td>Card Type</td> ### <td>.$methodofpay.</td> ### </tr> ### <tr> ### <td>Card Name</td> ### <td>.$cardname.</td> ### </tr> ### <tr> ### <td>Exp Date</td> ### <td>.$cardexp.</td> ### </tr> ### </table> ### </body> ### </html> ### '; ### ### This outputs this: ### Customer Information: ### ### Name {$name} ### Title .$title. ### Email .$email. ### Company .$company. ### Phone .$phone. ### Fax .$fax. ### Address .$address. ### City .$city. ### State .$state. ### Postal Code .$postalcode. ### Country .$country. ### ### Billing Information ### Card Type .$methodofpay. ### Card Name .$cardname. ### Exp Date .$cardexp. ### ### Please help me figure this out. I know its simple, but I cannot see it ### ;) ### ### Thanks, ### Clint ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ###
attached mail follows:
I just pulled out the code that I needed help with.
I did as was suggested before and now it only outputs to the first variable.
I still need some help with this..
-----Original Message-----
From: rw
xend.net [mailto:rw
xend.net]
Sent: Monday, November 18, 2002 9:11 AM
To: Clint Tredway
Cc: php-general
lists.php.net
Subject: Re: [PHP] Help with variables in email
Seems to me that you are missing the opening and closing PHP tags (<??>)
Quoting Clint Tredway <ctredway
fishermenstudios.com>:
### I am trying to send an email with form vars inside it but I cannot seem ### to get the vars to be parsed. ### ### Here is my code: ### /* message */ ### $message = ' ### <html> ### <head> ### <title>Products Purchased:</title> ### </head> ### <body> ### <p>Customer Information:</p> ### <table> ### <tr> ### <td>Name</td> ### <td>{$name}</td> ### </tr> ### <tr> ### <td>Title</td> ### <td>.$title.</td> ### </tr> ### <tr> ### <td>Email</td> ### <td>.$email.</td> ### </tr> ### <tr> ### <td>Company</td> ### <td>.$company.</td> ### </tr> ### <tr> ### <td>Phone</td> ### <td>.$phone.</td> ### </tr> ### <tr> ### <td>Fax</td> ### <td>.$fax.</td> ### </tr> ### <tr> ### <td>Address</td> ### <td>.$address.</td> ### </tr> ### <tr> ### <td>City</td> ### <td>.$city.</td> ### </tr> ### <tr> ### <td>State</td> ### <td>.$state.</td> ### </tr> ### <tr> ### <td>Postal Code</td> ### <td>.$postalcode.</td> ### </tr> ### <tr> ### <td>Country</td> ### <td>.$country.</td> ### </tr> ### <tr> ### <td colspan=2> </td> ### </tr> ### <tr> ### <td colspan=2>Billing Information</td> ### </tr> ### <tr> ### <td>Card Type</td> ### <td>.$methodofpay.</td> ### </tr> ### <tr> ### <td>Card Name</td> ### <td>.$cardname.</td> ### </tr> ### <tr> ### <td>Exp Date</td> ### <td>.$cardexp.</td> ### </tr> ### </table> ### </body> ### </html> ### '; ### ### This outputs this: ### Customer Information: ### ### Name {$name} ### Title .$title. ### Email .$email. ### Company .$company. ### Phone .$phone. ### Fax .$fax. ### Address .$address. ### City .$city. ### State .$state. ### Postal Code .$postalcode. ### Country .$country. ### ### Billing Information ### Card Type .$methodofpay. ### Card Name .$cardname. ### Exp Date .$cardexp. ### ### Please help me figure this out. I know its simple, but I cannot see it ### ;) ### ### Thanks, ### Clint ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ###
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Monday 18 November 2002 23:19, Clint Tredway wrote: > I just pulled out the code that I needed help with. > > I did as was suggested before and now it only outputs to the first > variable.
> ### <td>.$title.</td>
You did not do as was suggested.
You need to do something like:
$message = 'some html stuff and now here comes a variable called name ' . $name . ' and some more html and another variable ' . $title . ' etc etc';
Try something simple first with a couple of lines. When you get the hang on of it then build something more complex.
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Schshschshchsch. -- The Gorn, "Arena", stardate 3046.2 */
attached mail follows:
add single quote ['] before and after every dot [.] :
/* message */ $message = ' <html> <head> <title>Products Purchased:</title> </head> <body> <p>Customer Information:</p> <table> <tr> <td>Name</td> <td>'.$name.'</td> </tr> <tr> <td>Title</td> <td>'.$title.'</td> </tr> <tr> <td>Email</td> <td>'.$email.'</td> ..... . .. . ...
-- Maxim Maletsky maximphp.net
"Clint Tredway" <ctredway
fishermenstudios.com> wrote... :
> I am trying to send an email with form vars inside it but I cannot seem > to get the vars to be parsed. > > Here is my code: > /* message */ > $message = ' > <html> > <head> > <title>Products Purchased:</title> > </head> > <body> > <p>Customer Information:</p> > <table> > <tr> > <td>Name</td> > <td>{$name}</td> > </tr> > <tr> > <td>Title</td> > <td>.$title.</td> > </tr> > <tr> > <td>Email</td> > <td>.$email.</td> > </tr> > <tr> > <td>Company</td> > <td>.$company.</td> > </tr> > <tr> > <td>Phone</td> > <td>.$phone.</td> > </tr> > <tr> > <td>Fax</td> > <td>.$fax.</td> > </tr> > <tr> > <td>Address</td> > <td>.$address.</td> > </tr> > <tr> > <td>City</td> > <td>.$city.</td> > </tr> > <tr> > <td>State</td> > <td>.$state.</td> > </tr> > <tr> > <td>Postal Code</td> > <td>.$postalcode.</td> > </tr> > <tr> > <td>Country</td> > <td>.$country.</td> > </tr> > <tr> > <td colspan=2> </td> > </tr> > <tr> > <td colspan=2>Billing Information</td> > </tr> > <tr> > <td>Card Type</td> > <td>.$methodofpay.</td> > </tr> > <tr> > <td>Card Name</td> > <td>.$cardname.</td> > </tr> > <tr> > <td>Exp Date</td> > <td>.$cardexp.</td> > </tr> > </table> > </body> > </html> > '; > > This outputs this: > Customer Information: > > Name {$name} > Title .$title. > Email .$email. > Company .$company. > Phone .$phone. > Fax .$fax. > Address .$address. > City .$city. > State .$state. > Postal Code .$postalcode. > Country .$country. > > Billing Information > Card Type .$methodofpay. > Card Name .$cardname. > Exp Date .$cardexp. > > Please help me figure this out. I know its simple, but I cannot see it > ;) > > Thanks, > Clint > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
> -----Original Message-----
> From: OrangeHairedBoy [mailto:me
orangehairedboy.com]
> Sent: 16 November 2002 07:23
> To: php-general
lists.php.net
> Subject: [PHP] Re: session handling
>
>
> Here's what you need:
>
> on page 1.php:
>
> <?php
> session_start();
> $temp = 'someValue';
> session_register("temp");
> ?>
>
> on page 2.php:
>
> <?php
> session_start();
> print $temp; /* PHP sets the variables back the way they were
> for you! */
> ?>
>
> You have to register the variable with the session first so
> it knows that
> it's a variable that needs monitored and, when the script
> finishes, needs
> saved.
Actually, Anjali is right on this one, so long as (s)he's using a PHP version that defines the $_SESSION array; in this case, it's actually recommended to use only the $_SESSION array, and not use session_register at all.
That said, I can't see anything wrong with the original scripts posted, so the obvious questions are:
(1) are you sure you're using a recent version that supports the $_* superglobals arrays?
(2) If so, please show how you're reaching 2.php from 1.php.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
> -----Original Message-----
> From: Jeff Bluemel [mailto:jeff
domintcom.com]
> Sent: 17 November 2002 17:50
>
> ok - the more I look at this the more I'm a bit lost.
> passing the variables
> from php to java makes sense. however, from your scripts you
> listed it is
> only possible to pass jsp variables to php by opening a new
> page, or by
> activating a form.
Whoa, hold on a minute here -- are we talking Java or JavaScript? You, Jeff, say Java (and reinforce this with reference to Java Server Pages, which most likely wouldn't actually involve PHP at all!), whereas Marek is talking JavaScript. So, let's get our basics clear before we start talking at cross-purposes!!
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
> -----Original Message-----
> From: Scott [mailto:gildedpage
comcast.net]
> Sent: 17 November 2002 20:55
> To: php-general
> Subject: Re: [PHP] running php as cgi script
>
>
> Well, I've got a few test scripts to run by following the
> suggestions from
> the posts. There's just one thing that's not quite right yet. The
> "#!/usr/bin/php" line appears at the top of the page. For
> instance when I
> run the following script from the cgi-bin:
>
> #!/usr/bin/php
> <?
> phpinfo();
> ?>
>
> The phpinfo page comes up fine, but "#!/usr/bin/php" appears
> at the top.
> This happens whether I call the script "test.php" or
> "test.cgi". Appreciate
> any tips on how to get rid of it or why it's there.
H'mm -- there's at least one reasonably recent version of PHP where this behaviour is recorded as a known bug, so it's probably worth checking at http://bugs.php.net/ to see which one this is (a search for "shebang" should do it). It's 99.9% sure it's been fixed, so just searching "Closed" bug reports should be sufficient.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
if (is_uploaded_file($_FILES["imagefile"]["tmp_name"]) && ($_FILES["imagefile"]["type"] != "image/jpeg" && $_FILES["imagefile"]["type"] != "image/gif" && $_FILES["imagefile"]["type"] != "image/jpg" && $_FILES["imagefile"]["type"] != "image/png"))
I'm trying to weed out everything that isn't a .jpg, .gif, or .png. What's wrong with this?
attached mail follows:
Nothing I can see. What is not working?
JohnMeyer wrote:
> if (is_uploaded_file($_FILES["imagefile"]["tmp_name"]) && > ($_FILES["imagefile"]["type"] != "image/jpeg" && > $_FILES["imagefile"]["type"] != "image/gif" && > $_FILES["imagefile"]["type"] != "image/jpg" && > $_FILES["imagefile"]["type"] != "image/png")) > > I'm trying to weed out everything that isn't a .jpg, .gif, or .png. > What's wrong with this? > > >
attached mail follows:
JohnMeyer
> if (is_uploaded_file($_FILES["imagefile"]["tmp_name"]) && > ($_FILES["imagefile"]["type"] != "image/jpeg" && > $_FILES["imagefile"]["type"] != "image/gif" && $_FILES["imagefile"]["type"] > != "image/jpg" && $_FILES["imagefile"]["type"] != "image/png")) > > I'm trying to weed out everything that isn't a .jpg, .gif, or .png. What's > wrong with this?
=when you have a complex question, simplify! =It would be called the KISS principle if you were better looking!
=It doesn't seem to be bothering you, so let's assume that the is_uploaded section works.
=First let's plug in an imagefile-type of .TIF TIF != "image/jpeg" is true TIF != "image/gif" is true TIF != "image/jpg" is true TIF != "image/png" is true
=So true AND true AND true AND true is true, and presumably you will "weed out" that file***. But...
=next let's plug in an imagefile-type of .GIF TIF != "image/jpeg" is true TIF != "image/gif" is false TIF != "image/jpg" is true TIF != "image/png" is true
=So true AND false AND true AND true is false, and presumably you will "weed in" that file***. But...
=Let's come back to that first phrase that looked so good: is_uploaded_file($_FILES["imagefile"]["tmp_name"])
=(***with such limited visibility as you have afforded us - an incomplete PHP statement -> cries of "unfair" are heard in the land!) It seems that if this is an uploaded file the logic will result in true, but if it is not, false.
=Now add that to the above: our .TIF resulted in true so an uploaded file that is in .TIF format will be weeded out. But...
=our .GIF resulted in false so regardless of whether we have an uploaded file or not, the result of the ANDs must be false! In other words, a JP(e)G, GIF, or .PNG file will be treated in the same way as a non-uploaded file!? Should the is_uploaded_file() question be separated from the question about the (un)acceptable types of file? =dn
attached mail follows:
You can still use onclick event to pass value kept in a javascript variable:
<a href="file.php?" onclick="return action('file.php')">
function action(url) { location.href='http://www.domain.net/' + url + '&var=' + javascript_var; return false; }
Jeff Bluemel wrote:
>it's easy enough to pass php variable to javascript, but doing this the >other way around without a form submit, or location (passing as a php $_GET >variable) seems to be a little nightmare. it's easy enough to do it with >the form submit, or a location command. > >thanks, > >Jeff > > > > >
attached mail follows:
I apologize - javascript.
Jeff
"Marek Kilimajer" <kilimajer
webglobe.sk> wrote in message
news:3DD8FEF0.9090609
webglobe.sk...
> You can still use onclick event to pass value kept in a javascript
variable:
>
> <a href="file.php?" onclick="return action('file.php')">
>
> function action(url) {
> location.href='http://www.domain.net/' + url + '&var=' +
javascript_var;
> return false;
> }
>
> Jeff Bluemel wrote:
>
> >it's easy enough to pass php variable to javascript, but doing this the
> >other way around without a form submit, or location (passing as a php
$_GET
> >variable) seems to be a little nightmare. it's easy enough to do it with
> >the form submit, or a location command.
> >
> >thanks,
> >
> >Jeff
> >
> >
> >
> >
> >
>
attached mail follows:
I installed php 4.2.3 on Apache2.
When I write <? echo $anyvariable; ?> I get an error message telling me that I have an undefined variable $anyvariable. Is this something new that one must declare all variables?
In my previous version of php the expression above would return an empty string - no error messages...
Hope you understand my problem...
Martin Magnusson
attached mail follows:
Message-Id: <5.1.1.6.2.20021118155548.00b4ae48
mail.vogelsinger.at>
Date: Mon, 18 Nov 2002 15:59:30 +0100
To: "Martin Magnusson" <martin.magnusson
alltomit.com>
From: Ernest E Vogelsinger <ernest
vogelsinger.at>
Cc: <php-general
lists.php.net>
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="=====================_1143458656==.ALT"
Subject: Re: [PHP] Undefined variables?
--=====================_1143458656==.ALT Content-Type: text/plain; charset="us-ascii"
At 15:57 18.11.2002, Martin Magnusson spoke out and said: --------------------[snip]-------------------- >I installed php 4.2.3 on Apache2. > >When I write <? echo $anyvariable; ?> I get an error message telling me that >I have an undefined variable $anyvariable. Is this something new that one >must declare all variables? > >In my previous version of php the expression above would return an empty >string - no error messages... --------------------[snip]--------------------
This is defined by the setting of error_reporting in your php.ini file. What you get is not an error but a notice message that you are using an undefined variable.
This can be handy if you want to spot the error when your script doesn't behave like it should... anyway, to turn it off:
- in php.ini: error_reporting = E_ALL & ~E_NOTICE
- in your script: error_reporting(E_ALL & ~E_NOTICE);
- avoiding this: if (isset($anyvariable)) echo $anyvariable;
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--=====================_1143458656==.ALT--
attached mail follows:
set error reporting to 55
-- Maxim Maletsky maximphp.net
"Martin Magnusson" <martin.magnusson
alltomit.com> wrote... :
> I installed php 4.2.3 on Apache2. > > When I write <? echo $anyvariable; ?> I get an error message telling me that > I have an undefined variable $anyvariable. Is this something new that one > must declare all variables? > > In my previous version of php the expression above would return an empty > string - no error messages... > > Hope you understand my problem... > > Martin Magnusson >
attached mail follows:
Hi,
I am using PHP 4.2.2 and would like to know what is the expected behavior when I don't put an explicit dot in the open_basedir path.
Should I be able to open a file in "./tmp" ?
Another question: let's say my document root is /www and I put a /www in open_basedir, then should I be able to open a file in "./tmp", which is a subdir under /www/marc?
Thanks,
Marc Delisle
attached mail follows:
The explicit dot is to tell the system that you want the current working directory.
So by saying "./tmp" you want the tmp (directory or file) that is located in the current working directory.
If i understand what you are saying is that "./tmp" is a directory in the current working directory. If there is a file in that directory that you can open then yes you should be able to open a file in that directory.
just remember that "./" means that you want the current working directory.
Also, "../" means that you want to move up one in the directory structure.
On Mon, 2002-11-18 at 14:58, Marc Delisle wrote: > Hi, > > I am using PHP 4.2.2 and would like to know what is the expected behavior when > I don't put an explicit dot in the open_basedir path. > > Should I be able to open a file in "./tmp" ? > > Another question: let's say my document root is /www and I put a /www in open_basedir, > then should I be able to open a file in "./tmp", which is a subdir under /www/marc? > > Thanks, > > Marc Delisle
-- .: B i g D o g :.
attached mail follows:
My question was: what is supposed to happen if there is no dot in the open_basedir path, for example:
open_basedir = /www
Should I be able to open a file in ./tmp ?
The way I understand the open_basedir doc, I should not be able. But another PHP user is telling me that he can open a file in ./tmp with no explicit dot in the path of open_basedir, and I cannot reproduce this behavior on my server.
Marc
BigDog wrote:
> The explicit dot is to tell the system that you want the current working > directory. > > So by saying "./tmp" you want the tmp (directory or file) that is > located in the current working directory. > > If i understand what you are saying is that "./tmp" is a directory in > the current working directory. If there is a file in that directory > that you can open then yes you should be able to open a file in that > directory. > > just remember that "./" means that you want the current working > directory. > > Also, "../" means that you want to move up one in the directory > structure. > > > > On Mon, 2002-11-18 at 14:58, Marc Delisle wrote: > >>Hi, >> >>I am using PHP 4.2.2 and would like to know what is the expected behavior when >>I don't put an explicit dot in the open_basedir path. >> >>Should I be able to open a file in "./tmp" ? >> >>Another question: let's say my document root is /www and I put a /www in open_basedir, >>then should I be able to open a file in "./tmp", which is a subdir under /www/marc? >> >>Thanks, >> >>Marc Delisle >>
attached mail follows:
You need this:
while($row=mysql_fetch_array($res)) { echo first column; if($row=mysql_fetch_array($res)) { echo second column; } }
Darren McPhee wrote:
>Does anybody know of a SELECT QUERY that will select every other record of a >table ? I want to do this so that I can display my products in 2 columns (I >will also be using arrays of course). > >The first column would show the result of the first query starting at record >1. The second column would show the result of the second query starting at >record 2. Each query just needs to skip a record so that products are >ordered correctly (1,2 in first row. 3,4 in second row...) > >And I want the query to work without relying on ID fields. The reason being >is that when you delete a record, you can end up with a column ID of say >1,2,3,5 (like if you delete record 4). > >Originally, I set up my tables up using Dreamweaver with repeat regions. >But that's only ok if you want one record per row going down vertically. >The Macromedia web site does show you how to display all your records >repeating horizontally but doesn't tell you how to limit to 2 columns. So >both ways are useless to me. > >Darren. > > > > >
attached mail follows:
you need to do it another way, e.g.:
for($i=0; $i < MAX_FILES; $i++) { if(!$_FILES['photo']['tmp_name']) break;
... now work with the file.
}
electroteque wrote:
>hi i need to do a foreach on post files array ie > ><input type=file name=photo[]> > >_REQUEST['photo'] or _POST['photo'] doesnt work > >only _FILES['photo'] works and if i do a foreach on this it gets the 5 >associated array values for it not on the input value array ? say i had 2 >input files i should get a count of 2 not 5 :| > > > > >
attached mail follows:
Hi, I create images on the fly using imagettftext my isp recently upgraded apache and the images no longer appear.
here's the example given in the manual with imagettftext() i've commented out the content type so you can see the error http://www.sitestogo.biz/testimage.php
and here's phpinfo().
http://217.114.163.70/info.php
tia adrian murphy
----- Original Message -----
From: "Oliver Fänger" <oliver.faenger
intern.cityweb.de>
To: <matthieu.lecorre
ac-nantes.fr>
Cc: <php-general
lists.php.net>
Sent: Monday, November 18, 2002 3:42 PM
Subject: [PHP] Re: SQLCODE=-930
> could somebody tell me why libphp4.so (php-4.2.3 --with-informix, > httpd-2.43, RH8, Intel) links against > > libthasf.so > libthgen.so > libthos.so > libthsql.so > > and misses > > libifasf.so > libifgen.so > libifos.so > libifsql.so > > 4.2.2 works fine with these libs and does not have the above ones. > > and why do i have to set LDFLAGS="-L/opt/informix/lib > -L/opt/informix/lib/esql -L/tmp/src/php-4.2.3/ext/informix" > > i saw something like this in the macro file (/ext/informix/config.m4): > > PHP_ADD_LIBPATH($INFORMIXDIR/lib, INFORMIX_SHARED_LIBADD) > PHP_ADD_LIBPATH($INFORMIXDIR/lib/esql, INFORMIX_SHARED_LIBADD) > > (INFORMIXDIR is set) > > php-4.2.3: > libdl.so.2 => /lib/libdl.so.2 (0x40192000) > libpam.so.0 => /lib/libpam.so.0 (0x40196000) > libthsql.so => /opt/informix/lib/esql/libthsql.so (0x4019e000) > libthasf.so => /opt/informix/lib/libthasf.so (0x401e1000) > libthgen.so => /opt/informix/lib/esql/libthgen.so (0x40217000) > libthos.so => /opt/informix/lib/esql/libthos.so (0x40269000) > libifgls.so => /lib/libifgls.so (0x40280000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0x402bb000) > libifglx.so => /lib/libifglx.so (0x402e8000) > libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402ea000) > libpspell.so.4 => /usr/lib/libpspell.so.4 (0x4030a000) > libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40323000) > libgmp.so.3 => /usr/lib/libgmp.so.3 (0x40362000) > libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x4038f000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x403c0000) > libz.so.1 => /usr/lib/libz.so.1 (0x403e3000) > libdb-4.0.so => /lib/libdb-4.0.so (0x403f1000) > libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40499000) > libcurl.so.2 => /usr/lib/libcurl.so.2 (0x404a0000) > libbz2.so.1 => /usr/lib/libbz2.so.1 (0x404c2000) > libssl.so.2 => /lib/libssl.so.2 (0x404d1000) > libcrypto.so.2 => /lib/libcrypto.so.2 (0x40501000) > libresolv.so.2 => /lib/libresolv.so.2 (0x405d5000) > libm.so.6 => /lib/i686/libm.so.6 (0x405e7000) > libttf.so.2 => /usr/lib/libttf.so.2 (0x40609000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40630000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40679000) > libnsl.so.1 => /lib/libnsl.so.1 (0x40697000) > libxml2.so.2 => /usr/lib/libxml2.so.2 (0x406ac000) > libc.so.6 => /lib/i686/libc.so.6 (0x42000000) > libltdl.so.3 => /usr/lib/libltdl.so.3 (0x40754000) > libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1 > (0x4075c000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4075e000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40810000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > > php-4.2.2: > > libdl.so.2 => /lib/libdl.so.2 (0x40184000) > libpam.so.0 => /lib/libpam.so.0 (0x40188000) > libifsql.so => /lib/libifsql.so (0x40190000) > libifasf.so => /lib/libifasf.so (0x401d0000) > libifgen.so => /lib/libifgen.so (0x40206000) > libifos.so => /lib/libifos.so (0x40254000) > libifgls.so => /lib/libifgls.so (0x40268000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0x402a3000) > libifglx.so => /lib/libifglx.so (0x402d0000) > libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402d2000) > libpspell.so.4 => /usr/lib/libpspell.so.4 (0x402f2000) > libncurses.so.5 => /usr/lib/libncurses.so.5 (0x4030b000) > libgmp.so.3 => /usr/lib/libgmp.so.3 (0x4034a000) > libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x40377000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x403a8000) > libz.so.1 => /usr/lib/libz.so.1 (0x403cb000) > libm.so.6 => /lib/i686/libm.so.6 (0x403d9000) > libxml2.so.2 => /usr/lib/libxml2.so.2 (0x403fb000) > libdb-4.0.so => /lib/libdb-4.0.so (0x404a3000) > libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x4054c000) > libcurl.so.2 => /usr/lib/libcurl.so.2 (0x40553000) > libcrypto.so.2 => /lib/libcrypto.so.2 (0x40574000) > libssl.so.2 => /lib/libssl.so.2 (0x40648000) > libbz2.so.1 => /usr/lib/libbz2.so.1 (0x40678000) > libresolv.so.2 => /lib/libresolv.so.2 (0x40687000) > libttf.so.2 => /usr/lib/libttf.so.2 (0x4069a000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x406c0000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40709000) > libnsl.so.1 => /lib/libnsl.so.1 (0x40727000) > libc.so.6 => /lib/i686/libc.so.6 (0x42000000) > libltdl.so.3 => /usr/lib/libltdl.so.3 (0x4073c000) > libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1 > (0x40744000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40746000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x407f8000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
hum .... it seems that the freetype support is broken ..... also phpinfo() lokk like telling it work .... it seems to failed ....
Le Lundi 18 Novembre 2002 15:56, adrian.murphy
2020tourism.com a écrit :
> Hi,
> I create images on the fly using imagettftext
> my isp recently upgraded apache and the
> images no longer appear.
>
> here's the example given in the manual with imagettftext()
> i've commented out the content type so you can see
> the error
> http://www.sitestogo.biz/testimage.php
>
> and here's phpinfo().
>
> http://217.114.163.70/info.php
>
> tia
> adrian murphy
>
>
>
> ----- Original Message -----
> From: "Oliver Fänger" <oliver.faenger
intern.cityweb.de>
> To: <matthieu.lecorre
ac-nantes.fr>
> Cc: <php-general
lists.php.net>
> Sent: Monday, November 18, 2002 3:42 PM
> Subject: [PHP] Re: SQLCODE=-930
>
> > could somebody tell me why libphp4.so (php-4.2.3 --with-informix,
> > httpd-2.43, RH8, Intel) links against
> >
> > libthasf.so
> > libthgen.so
> > libthos.so
> > libthsql.so
> >
> > and misses
> >
> > libifasf.so
> > libifgen.so
> > libifos.so
> > libifsql.so
> >
> > 4.2.2 works fine with these libs and does not have the above ones.
> >
> > and why do i have to set LDFLAGS="-L/opt/informix/lib
> > -L/opt/informix/lib/esql -L/tmp/src/php-4.2.3/ext/informix"
> >
> > i saw something like this in the macro file (/ext/informix/config.m4):
> >
> > PHP_ADD_LIBPATH($INFORMIXDIR/lib, INFORMIX_SHARED_LIBADD)
> > PHP_ADD_LIBPATH($INFORMIXDIR/lib/esql, INFORMIX_SHARED_LIBADD)
> >
> > (INFORMIXDIR is set)
> >
> > php-4.2.3:
> > libdl.so.2 => /lib/libdl.so.2 (0x40192000)
> > libpam.so.0 => /lib/libpam.so.0 (0x40196000)
> > libthsql.so => /opt/informix/lib/esql/libthsql.so (0x4019e000)
> > libthasf.so => /opt/informix/lib/libthasf.so (0x401e1000)
> > libthgen.so => /opt/informix/lib/esql/libthgen.so (0x40217000)
> > libthos.so => /opt/informix/lib/esql/libthos.so (0x40269000)
> > libifgls.so => /lib/libifgls.so (0x40280000)
> > libcrypt.so.1 => /lib/libcrypt.so.1 (0x402bb000)
> > libifglx.so => /lib/libifglx.so (0x402e8000)
> > libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402ea000)
> > libpspell.so.4 => /usr/lib/libpspell.so.4 (0x4030a000)
> > libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40323000)
> > libgmp.so.3 => /usr/lib/libgmp.so.3 (0x40362000)
> > libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x4038f000)
> > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x403c0000)
> > libz.so.1 => /usr/lib/libz.so.1 (0x403e3000)
> > libdb-4.0.so => /lib/libdb-4.0.so (0x403f1000)
> > libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40499000)
> > libcurl.so.2 => /usr/lib/libcurl.so.2 (0x404a0000)
> > libbz2.so.1 => /usr/lib/libbz2.so.1 (0x404c2000)
> > libssl.so.2 => /lib/libssl.so.2 (0x404d1000)
> > libcrypto.so.2 => /lib/libcrypto.so.2 (0x40501000)
> > libresolv.so.2 => /lib/libresolv.so.2 (0x405d5000)
> > libm.so.6 => /lib/i686/libm.so.6 (0x405e7000)
> > libttf.so.2 => /usr/lib/libttf.so.2 (0x40609000)
> > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40630000)
> > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40679000)
> > libnsl.so.1 => /lib/libnsl.so.1 (0x40697000)
> > libxml2.so.2 => /usr/lib/libxml2.so.2 (0x406ac000)
> > libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
> > libltdl.so.3 => /usr/lib/libltdl.so.3 (0x40754000)
> > libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1
> > (0x4075c000)
> > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x4075e000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40810000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >
> >
> > php-4.2.2:
> >
> > libdl.so.2 => /lib/libdl.so.2 (0x40184000)
> > libpam.so.0 => /lib/libpam.so.0 (0x40188000)
> > libifsql.so => /lib/libifsql.so (0x40190000)
> > libifasf.so => /lib/libifasf.so (0x401d0000)
> > libifgen.so => /lib/libifgen.so (0x40206000)
> > libifos.so => /lib/libifos.so (0x40254000)
> > libifgls.so => /lib/libifgls.so (0x40268000)
> > libcrypt.so.1 => /lib/libcrypt.so.1 (0x402a3000)
> > libifglx.so => /lib/libifglx.so (0x402d0000)
> > libexpat.so.0 => /usr/lib/libexpat.so.0 (0x402d2000)
> > libpspell.so.4 => /usr/lib/libpspell.so.4 (0x402f2000)
> > libncurses.so.5 => /usr/lib/libncurses.so.5 (0x4030b000)
> > libgmp.so.3 => /usr/lib/libgmp.so.3 (0x4034a000)
> > libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x40377000)
> > libpng12.so.0 => /usr/lib/libpng12.so.0 (0x403a8000)
> > libz.so.1 => /usr/lib/libz.so.1 (0x403cb000)
> > libm.so.6 => /lib/i686/libm.so.6 (0x403d9000)
> > libxml2.so.2 => /usr/lib/libxml2.so.2 (0x403fb000)
> > libdb-4.0.so => /lib/libdb-4.0.so (0x404a3000)
> > libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x4054c000)
> > libcurl.so.2 => /usr/lib/libcurl.so.2 (0x40553000)
> > libcrypto.so.2 => /lib/libcrypto.so.2 (0x40574000)
> > libssl.so.2 => /lib/libssl.so.2 (0x40648000)
> > libbz2.so.1 => /usr/lib/libbz2.so.1 (0x40678000)
> > libresolv.so.2 => /lib/libresolv.so.2 (0x40687000)
> > libttf.so.2 => /usr/lib/libttf.so.2 (0x4069a000)
> > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x406c0000)
> > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40709000)
> > libnsl.so.1 => /lib/libnsl.so.1 (0x40727000)
> > libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
> > libltdl.so.3 => /usr/lib/libltdl.so.3 (0x4073c000)
> > libpspell-modules.so.1 => /usr/lib/libpspell-modules.so.1
> > (0x40744000)
> > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40746000)
> > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x407f8000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
- --
__________
/ Matthieu Le Corre
| Service Informatique
| ____________________
| Inspection Academique de la Sarthe
| 72000 LE MANS
| ____________________________
| Tel : 02 43 61 58 91
| Mail : Matthieu.lecorre
ac-nantes.fr
\____________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE92R4NiQG6YxCcev4RAhiEAJ0bmV67fbIOca1H3RPX3fwC7iL8hgCaAjBO OeIHGyiKLvK5kLAFq5zoQho= =iUf7 -----END PGP SIGNATURE-----
attached mail follows:
What is everyone's opinion of the best php ide? Preferably a free one? I currently just use multiedit but downloaded phpcoder this weekend.
Thanks, Eddie
attached mail follows:
Edward Peloke wrote:
>What is everyone's opinion of the best php ide? Preferably a free one? I >currently just use multiedit but downloaded phpcoder this weekend. > This is regularly asked. The archives will give you all the views you need.
HTH Chris
>
attached mail follows:
When I upgraded to 4.2.3 from 4.2.2 I no longer am able to see HTML before PHP code that takes a while to process.
I made sure that I've set "output_buffering =off" but I still have this problem.
When I hit the page with the following code on my server, it will wait 10 secs before it displays any of the HTML on the page. I want it to display the HTML at the top and then execute the code after the PHP block when the PHP has finished. This code worked in 4.2.2 but no longer. :-(
Example code: <p id="hide">Working...</p> <?php sleep ( 10 ); ?> <p> </p> <p id="show" style="display:none;">DONE!</p> <script language="JavaScript"> <!-- show.style.display=''; hide.style.display='none'; //--> </script>
Does anyone know what setting has caused this code to no longer work like it did in 4.2.2?
Any input would be helpful.
Thanks,
Adam
attached mail follows:
try calling implicitly flush() function:
Example code: <p id="hide">Working...</p> <?php flush(); sleep ( 10 ); ?>
-- Maxim Maletsky maximphp.net
"Adam Humphrey" <deadonthevine2000
yahoo.com> wrote... :
> When I upgraded to 4.2.3 from 4.2.2 I no longer am able to see HTML before > PHP code that takes a while to process. > > I made sure that I've set "output_buffering =off" but I still have this > problem. > > When I hit the page with the following code on my server, it will wait 10 > secs before it displays any of the HTML on the page. I want it to display > the HTML at the top and then execute the code after the PHP block when the > PHP has finished. This code worked in 4.2.2 but no longer. :-( > > Example code: > <p id="hide">Working...</p> > <?php > sleep ( 10 ); > ?> > <p> </p> > <p id="show" style="display:none;">DONE!</p> > <script language="JavaScript"> > <!-- > show.style.display=''; > hide.style.display='none'; > //--> > </script> > > Does anyone know what setting has caused this code to no longer work like it > did in 4.2.2? > > Any input would be helpful. > > Thanks, > > Adam > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
check the value of output_handler or try calling flush() before the code. Did you not change anything in apache?
Adam Humphrey wrote:
>When I upgraded to 4.2.3 from 4.2.2 I no longer am able to see HTML before >PHP code that takes a while to process. > >I made sure that I've set "output_buffering =off" but I still have this >problem. > >When I hit the page with the following code on my server, it will wait 10 >secs before it displays any of the HTML on the page. I want it to display >the HTML at the top and then execute the code after the PHP block when the >PHP has finished. This code worked in 4.2.2 but no longer. :-( > >Example code: ><p id="hide">Working...</p> ><?php >sleep ( 10 ); >?> ><p> </p> ><p id="show" style="display:none;">DONE!</p> ><script language="JavaScript"> ><!-- > show.style.display=''; > hide.style.display='none'; >//--> ></script> > >Does anyone know what setting has caused this code to no longer work like it >did in 4.2.2? > >Any input would be helpful. > >Thanks, > >Adam > > > > >
attached mail follows:
I'm running php-4.2.2-8.0.5 on Redhat 8.0
Lately I've noticed that when doing a form, listbox variables have funky values in certain situations. Unfortunately, I haven't been to determined what the certain situation is.
Here's an example.
Here is the listbox in the form:
<select NAME=SQN> <option VALUE="4">4</option> <option VALUE="6">6</option> <option VALUE=""></option> </select>
After clicking submit, when I echo the variable in the post script,I get the following results: SQN=4
I should get the value "4"
Doing an echo "$_POST[SQN] <BR>"; yields the same results.
I didn't start seeing this until this week. I don't know what changed, but it only happens with certain variables on certain posts. Anyone else seen this type of behavior?
:) Dave
--"...Unix, MS-DOS and Windows NT (also known as the Good, the Bad, and the Ugly)"
OSIS Dave J. Hala Jr. 641.485.1606
attached mail follows:
That is what you should be getting right?
When you have a select statement that has a value as the first one then that is what you will get when you post or get the form.
if you want a blank one then do <option></option>
and that should not pass anything in the post or get...
On Mon, 2002-11-18 at 17:30, Dave J. Hala Jr. wrote: > I'm running php-4.2.2-8.0.5 on Redhat 8.0 > > Lately I've noticed that when doing a form, listbox variables have funky > values in certain situations. Unfortunately, I haven't been to > determined what the certain situation is. > > Here's an example. > > Here is the listbox in the form: > > <select NAME=SQN> > <option VALUE="4">4</option> > <option VALUE="6">6</option> > <option VALUE=""></option> > </select> > > After clicking submit, when I echo the variable in the post script,I get > the following results: > SQN=4 > > I should get the value "4" > > Doing an echo "$_POST[SQN] <BR>"; yields the same results. > > > I didn't start seeing this until this week. I don't know what changed, > but it only happens with certain variables on certain posts. Anyone > else seen this type of behavior? > > > :) Dave > > -- > > "...Unix, MS-DOS and Windows NT (also known as the Good, the Bad, and > the Ugly)" > > OSIS > Dave J. Hala Jr. > 641.485.1606
-- .: B i g D o g :.
attached mail follows:
No, he's saying that: echo $sqn;
displays SQN=4.
it should say simply 4
----- Original Message -----
From: "BigDog" <bigdog
venticon.com>
To: "Dave J. Hala Jr." <dave
58ghz.net>
Cc: <php-general
lists.php.net>
Sent: Monday, November 18, 2002 4:33 AM
Subject: Re: [PHP] Post Problem
That is what you should be getting right?
When you have a select statement that has a value as the first one then that is what you will get when you post or get the form.
if you want a blank one then do <option></option>
and that should not pass anything in the post or get...
On Mon, 2002-11-18 at 17:30, Dave J. Hala Jr. wrote: > I'm running php-4.2.2-8.0.5 on Redhat 8.0 > > Lately I've noticed that when doing a form, listbox variables have funky > values in certain situations. Unfortunately, I haven't been to > determined what the certain situation is. > > Here's an example. > > Here is the listbox in the form: > > <select NAME=SQN> > <option VALUE="4">4</option> > <option VAL