[PHP] RE: OOP-classes in PHP

2002-11-18 Thread Tim Ward
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:[EMAIL PROTECTED]] Sent: 17 November 2002

[PHP] RE: Problem with Class - incomplete object error

2002-11-18 Thread Tim Ward
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

[PHP] PHP Newbie question

2002-11-18 Thread Bryan Cassidy
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

[PHP] Re: SQLCODE=-930

2002-11-18 Thread Matthieu Le Corre
-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

Re: [PHP] PHP Newbie question

2002-11-18 Thread Stolen
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

[PHP] Browsing directory

2002-11-18 Thread Helen Muller
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

[PHP] session_start() and utf-8

2002-11-18 Thread Marco Schmitz
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 titleTITLE/title /head body ?PHP //just to check if other function are working well echo

RE: [PHP] RE: Problem with Class - incomplete object error

2002-11-18 Thread Paul
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

[PHP] Get

2002-11-18 Thread Shaun
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

RE: [PHP] Get[Scanned]

2002-11-18 Thread Michael Egan
href='test.html?var1=1var2=2' Michael Egan -Original Message- From: Shaun [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 12:06 To: [EMAIL PROTECTED] 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)

RE: [PHP] Get

2002-11-18 Thread David Russell
Like this: http://fqdn.domain.com/path/path/page.php?var1=value1var2=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

[PHP] php, forms, mysql

2002-11-18 Thread Adrian Partenie
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 trtd/tdtdID/tdtdSubject/tdtdOpen/tdtdClose/td/tr; while($row = MySQL_fetch_array($result)) { echo trtdforminput type=\checkbox\ method=\post\

[PHP] Query string???

2002-11-18 Thread Cyclone Médias
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

Re: [PHP] imap_open

2002-11-18 Thread Michael Sims
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

Re: [PHP] Query string???

2002-11-18 Thread Justin French
So, the link might look like: a href=page.php?item=1item 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

Re: [PHP] Query string???

2002-11-18 Thread Marek Kilimajer
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=1item 1/a Then page.php might look like this: ? include({$item}.php); ? BUT this would be smarter: ? // uncomment this next line if you

Re: [PHP] php, forms, mysql

2002-11-18 Thread Marek Kilimajer
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

[PHP] Re: Ereg meadache

2002-11-18 Thread Mako Shark
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

[PHP] Help with variables in email

2002-11-18 Thread Clint Tredway
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 titleProducts Purchased:/title

Re: [PHP] Help with variables in email

2002-11-18 Thread Marek Kilimajer
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: /*

Re: [PHP] sunrise/sunset programs?

2002-11-18 Thread Jason Wong
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

RE: [PHP] Re: session handling

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: 16 November 2002 07:23 To: [EMAIL PROTECTED] Subject: [PHP] Re: session handling Here's what you need: on page 1.php: ?php session_start(); $temp = 'someValue'; session_register(temp); ? on

RE: [PHP] can I retrieve jsp varibable with get or post???

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Bluemel [mailto:[EMAIL PROTECTED]] 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

RE: [PHP] running php as cgi script

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: Scott [mailto:[EMAIL PROTECTED]] 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

Re: [PHP] Cannot Print Web-based Report in Netscape

2002-11-18 Thread Marek Kilimajer
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.

Re: [PHP] Query string???

2002-11-18 Thread Justin French
on 19/11/02 12:31 AM, Marek Kilimajer ([EMAIL PROTECTED]) 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

RE: [PHP] RE: Problem with Class - incomplete object error

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: Paul [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 11:49 To: 'Tim Ward'; [EMAIL PROTECTED] 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

Re: [PHP] preg_replace_callback

2002-11-18 Thread Bikeman
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

[PHP] Re: [PHP-DOC] Re: [PHP] preg_replace_callback

2002-11-18 Thread Derick Rethans
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

[PHP] What is wrong with this expression?

2002-11-18 Thread 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

Re: [PHP] howto pass javascript variable to php

2002-11-18 Thread Marek Kilimajer
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

Re: [PHP] Browsing directory

2002-11-18 Thread DL Neil
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

[PHP] Undefined variables?

2002-11-18 Thread Martin Magnusson
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

Re: [PHP] Problem with Class - incomplete object error

2002-11-18 Thread Marek Kilimajer
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

[PHP] explicit dot in open_basedir

2002-11-18 Thread Marc Delisle
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

Re: [PHP] Undefined variables?

2002-11-18 Thread Ernest E Vogelsinger
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

Re: [PHP] howto pass javascript variable to php

2002-11-18 Thread Jeff Bluemel
I apologize - javascript. Jeff Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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) {

Re: [PHP] Query to select every other record

2002-11-18 Thread Marek Kilimajer
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

Re: [PHP] Help with variables in email

2002-11-18 Thread rw
Seems to me that you are missing the opening and closing PHP tags (??) Quoting Clint Tredway [EMAIL PROTECTED]: ### 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 */ ###

RE: [PHP] Help with variables in email

2002-11-18 Thread Clint Tredway
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 9:11 AM To: Clint

Re: [PHP] What is wrong with this expression?

2002-11-18 Thread Marek Kilimajer
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

Re: [PHP] Help with variables in email

2002-11-18 Thread Jason Wong
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:

Re: [PHP] imap_open

2002-11-18 Thread Rasmus Lerdorf
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

[PHP] Re: SQLCODE=-930

2002-11-18 Thread Oliver Fänger
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

Re: [PHP] post files array and registered globals off

2002-11-18 Thread Marek Kilimajer
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

[PHP] GD imagettftext problem

2002-11-18 Thread adrian [EMAIL PROTECTED]
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().

Re: [PHP] Re: SQLCODE=-930

2002-11-18 Thread Matthieu Le Corre
-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

Re: [PHP] What is wrong with this expression?

2002-11-18 Thread DL Neil
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.

Re: [PHP] GD imagettftext problem

2002-11-18 Thread Matthieu Le Corre
-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, [EMAIL PROTECTED] a écrit : Hi, I create images on the fly using imagettftext my isp

[PHP] best php ide

2002-11-18 Thread Edward Peloke
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best php ide

2002-11-18 Thread Chris Hewitt
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 -- PHP General Mailing List

[PHP] Problems with Caching

2002-11-18 Thread Adam Humphrey
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

Re: [PHP] Undefined variables?

2002-11-18 Thread Maxim Maletsky
set error reporting to 55 -- Maxim Maletsky [EMAIL PROTECTED] Martin Magnusson [EMAIL PROTECTED] 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

Re: [PHP] Problems with Caching

2002-11-18 Thread Maxim Maletsky
try calling implicitly flush() function: Example code: p id=hideWorking.../p ?php flush(); sleep ( 10 ); ? -- Maxim Maletsky [EMAIL PROTECTED] Adam Humphrey [EMAIL PROTECTED] 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

Re: [PHP] Help with variables in email

2002-11-18 Thread Maxim Maletsky
add single quote ['] before and after every dot [.] : /* message */ $message = ' html head titleProducts Purchased:/title /head body

Re: [PHP] Problems with Caching

2002-11-18 Thread Marek Kilimajer
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

Re: [PHP] PHP Newbie question

2002-11-18 Thread Maxim Maletsky
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 Worldbr; phpinfo(); ? 4. Now, access that file. If you see Hello World outputted followed by a long blue-gray

Re: [PHP] Browsing directory

2002-11-18 Thread Maxim Maletsky
look at here: www.php.net/dir -- Maxim Maletsky [EMAIL PROTECTED] Helen Muller [EMAIL PROTECTED] 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

[PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
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

Re: [PHP] sunrise/sunset programs?

2002-11-18 Thread Maxim Maletsky
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 [EMAIL PROTECTED] Adam [EMAIL PROTECTED] wrote... : Does anyone know if PHP has the capabilities

Re: [PHP] decode

2002-11-18 Thread Maxim Maletsky
where is that coming from? What encoding is that? Any info of the b abbab abbab baaba part? -- Maxim Maletsky [EMAIL PROTECTED] Roman Duriancik [EMAIL PROTECTED] wrote... : Please Help me ! This is not a php problem but if someone knows how to decode this : I have document in

Re: [PHP] Post Problem

2002-11-18 Thread BigDog
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

Re: [PHP] explicit dot in open_basedir

2002-11-18 Thread BigDog
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

Re: [PHP] Post Problem

2002-11-18 Thread Rick Emery
No, he's saying that: echo $sqn; displays SQN=4. it should say simply 4 - Original Message - From: BigDog [EMAIL PROTECTED] To: Dave J. Hala Jr. [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 18, 2002 4:33 AM Subject: Re: [PHP] Post Problem That is what you should be

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
I selected the option that would have the value 4, what I get is 4SQN=4 I should get just the value 4 On Mon, 2002-11-18 at 04:33, BigDog wrote: 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

Re: [PHP] echoing date of first and last day of current week.

2002-11-18 Thread BigDog
Probably the best way is to convert the times all into seconds and then do the math to get the last day of the week. Should be relatively easy... HTH On Mon, 2002-11-18 at 05:57, Noodle Snacks wrote: I want to get the unix timestamps of the first and last days of this week... Currently I

Re: [PHP] Post Problem

2002-11-18 Thread BigDog
What does the entire form look like? On Mon, 2002-11-18 at 17:43, Dave J. Hala Jr. wrote: I selected the option that would have the value 4, what I get is 4SQN=4 I should get just the value 4 On Mon, 2002-11-18 at 04:33, BigDog wrote: That is what you should be getting right?

Re: [PHP] echoing date of first and last day of current week.

2002-11-18 Thread Maxim Maletsky
probably, what you tried is the most elegant way. But, you got me: mathematically I did *this* for you: ?php $res['day'] = date(d); $res['month'] = date(m); $res['year']= date(Y); $res['dayN']= date(w); $res['sunday'] = mktime (0, 0, 0,

Re: [PHP] testing

2002-11-18 Thread Maxim Maletsky
just mail: [EMAIL PROTECTED] :) You succeded though :) -- Maxim Maletsky [EMAIL PROTECTED] [EMAIL PROTECTED] wrote... : not sure how to post -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
SQN: 4SQN=4 brSQN: 4SQN=4br html head title Nifcap - Export Checks/title table WIDTH=100% tr td WIDTH=5% bgcolor=#CCfont face= arial size =3 Export Checks/font/td /tr /table br body bgcolor=f0 text=00

Re: [PHP] Post Problem

2002-11-18 Thread BigDog
but where is the form that you created... That was i can see what you have set up inside of the form tag... On Mon, 2002-11-18 at 17:51, Dave J. Hala Jr. wrote: SQN: 4SQN=4 brSQN: 4SQN=4br html head title Nifcap - Export Checks/title table WIDTH=100% tr td

RE: [PHP] Post Problem

2002-11-18 Thread Ford, Mike [LSS]
-Original Message- From: Dave J. Hala Jr. [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 17:30 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

[PHP] How to use string as variable name?

2002-11-18 Thread -[ Rene Brehmer ]-
Hi gang I'm suffering under the lack of an SQL, which would've made this loads easier, so instead I'm forced at using a bunch of arrays to keep track of the info instead... But here's the prob: I'm working on a list of premieredates for movies. Here's the HTML version I made to figure out how to

Re: [PHP] How to use string as variable name?

2002-11-18 Thread Adam Voigt
$date = 2002-11-22; $myvar = a . str_replace(-,,$date); $$myvar = hi; echo $a20021122; Enjoy. On Mon, 2002-11-18 at 13:05, -[ Rene Brehmer ]- wrote: Hi gang I'm suffering under the lack of an SQL, which would've made this loads easier, so instead I'm forced at using a bunch of arrays to

Re: [PHP] How to use string as variable name?

2002-11-18 Thread Marek Kilimajer
Convert $day=2002-11-22 to just $day=d20021122 and $$day will be really $d20021122 -[ Rene Brehmer ]- wrote: Hi gang I'm suffering under the lack of an SQL, which would've made this loads easier, so instead I'm forced at using a bunch of arrays to keep track of the info instead... But here's

[PHP] Why Yahoo chose PHP

2002-11-18 Thread Paul Wilczynski
I ran across this recently ... thought you might find it interesting ... http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.pdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Post Problem

2002-11-18 Thread Maxim Maletsky
I think you should comment on this bug: http://bugs.php.net/bug.php?id=18648 provide the details about your system configurations and everything else that might help us to fix it. Though, it seems to be an Apache2 problem, so try upgrading that as well. -- Maxim Maletsky [EMAIL PROTECTED]

[PHP] enable-gd-native-ttf or tt?

2002-11-18 Thread adrian [EMAIL PROTECTED]
i know nothing about building php really but my isp recently upgraded(version 4.1.2) and now imagettftext() function doesn't work.the error i get is: Warning: libgd was not built with FreeType font support .. see phpinfo() http://217.114.163.70/info.php what i noticed was this bit of the

Re: [PHP] explicit dot in open_basedir

2002-11-18 Thread Marc Delisle
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

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
I'd be willing to post the entire page, but it's 154 lines of embedded php. Here's the FORM block portion of the page. The $sqn_list_box variable contains the listbox. $export_form .=FONT face= \$font_type\ size =\$font_size\FORM METHOD=\post\ ACTION=\/payment/export_checks.php\

[PHP] output compression

2002-11-18 Thread Chris Mason
I've enabled output buffering in php.ini with output_buffering = On output_handler = ob_gzhandler I have had one user in the UK email and say their browser is crashing, has anyone seen this with output compression? Any other comments about using ob_gzhandler? Chris Mason [EMAIL PROTECTED] Box

[PHP] check for \n

2002-11-18 Thread John Taylor-Johnston
Like I have a clue :) I want to convert some fields from TEXT to VARCHAR(255). (Going from a textarea to an input type=text) I've checked the length of each $mydata-ST, so I won't be losing data. What I am worried about is losing data if there are \n in any of the fields. How do I check to see

[PHP] Check Left 4 characters of Form Variable

2002-11-18 Thread vernon
I have a form that is acting like an email page where there Subject is being submitted from one page to another and tagging the subject with RE: . I want to be able tack the RE: on but only if it doesn't already have it there. I know that I can use and if statement, but how to I check the left 4

RE: [PHP] PHP Script to remove attachments from emails and store them on the server

2002-11-18 Thread Simon Chilmaid
Thanks for your help Jason, have you got any examples that you might be able to send me on how you have used reformime to decode email messages -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 05:35 To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Script

[PHP] using mapquest with php

2002-11-18 Thread Alexander Ross
I want to make a very simple form which asks for a starting city/state and an ending city/state. When the user hits submit, the number of miles from city A to City B is displayed ... no directions, no maps, no exact locations .. just the milage. Can I use mapquest to do this? how? Is there

[PHP] Distance Based on Zip Code

2002-11-18 Thread vernon
Does anyone know how I can set something up that tells the distance between one Zip Code and another? I'm needing to be able to set something up where one user's record is compared to another and a distance is measured. Any have any ideas? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Distance Based on Zip Code

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 04:21, vernon wrote: Does anyone know how I can set something up that tells the distance between one Zip Code and another? I'm needing to be able to set something up where one user's record is compared to another and a distance is measured. Any have any ideas?

Re: [PHP] check for \n

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 03:37, John Taylor-Johnston wrote: Like I have a clue :) I want to convert some fields from TEXT to VARCHAR(255). (Going from a textarea to an input type=text) I've checked the length of each $mydata-ST, so I won't be losing data. What I am worried about is losing

Re: [PHP] Check Left 4 characters of Form Variable

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 03:48, vernon wrote: I have a form that is acting like an email page where there Subject is being submitted from one page to another and tagging the subject with RE: . I want to be able tack the RE: on but only if it doesn't already have it there. I know that I can

Re: [PHP] PHP Script to remove attachments from emails and store them on the server

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 03:54, Simon Chilmaid wrote: Thanks for your help Jason, have you got any examples that you might be able to send me on how you have used reformime to decode email messages Basically if you want to extract and save all attachments then you just pipe the message to

[PHP] http_get_var and isset() not working with script generated includes.

2002-11-18 Thread Moo
I wrote a bug report but [EMAIL PROTECTED] bogusified my report without the least bit of information. My script uses multiple includes and the file names all have the same syntax. So instead of writing each individual include, I created an array which contains all the filenames function

[PHP] Create Login Page

2002-11-18 Thread Pushpinder Singh Garcha
Hi All I am trying to create a login page using php and mysql database. This is the code that I am trying to use: ?php // File Name: auth04.php // Check to see if $PHP_AUTH_USER already contains info if (!isset($PHP_AUTH_USER)) { // If empty, send header causing dialog box to appear

Fw: [PHP] http_get_var and isset() not working with script generated includes.

2002-11-18 Thread Kevin Stone
Copy and pasted from the PHP manual: If the include occurs inside a function within the calling file, then all of the code contained in the called file will behave as though it had been defined inside that function. So, it will follow the variable scope of that function. So in other words any

Re: [PHP] Create Login Page

2002-11-18 Thread Kevin Stone
Is ?php the very first line in the file? At some point here you're ending up in the if() statment or the else() statment becuase those are the only two places where you could have sent a header after they had already been set. So I gotta figure you have some output before the if() statment.

RE: [PHP] Create Login Page

2002-11-18 Thread Van Andel, Robert
I recently set up a log in page. I'm doing it a little differently than you. First I establish a session and set up two session variables (sessusername and sesspassword). I check to see if these variables have been set, if they have, I then check the username and password with the database to

[PHP] is this not possible?

2002-11-18 Thread Jeff Bluemel
I'm been ignored on this question for 4-5 days now. even if it is not possible could somebody please verify this? is it possible to pass a variable from javascript directly to php WITHOUT using either a link, or a form submit to pass the variables? I've gotten a work around to call an image

Re: [PHP] http_get_var and isset() not working with script generated includes.

2002-11-18 Thread rija
Yep, You need make global every variable used in yout include. Maybe, you should declare- GLOBAL $_GET ; or do not call function to include your include just do simply like this, foreach ($sections as $key = $value) include mod.section. . $value . .php; - Original Message - From: Moo

Re: [PHP] is this not possible?

2002-11-18 Thread Leif K-Brooks
That, or an iframe. You can't pass variables on the same request, though. Jeff Bluemel wrote: I'm been ignored on this question for 4-5 days now. even if it is not possible could somebody please verify this? is it possible to pass a variable from javascript directly to php WITHOUT using

Re: [PHP] is this not possible?

2002-11-18 Thread BigDog
No... Javascript need to send that data back to the server and how are you going to do that? You will have to use a form or a link or some method to send it to the server. Now you can use php to write your javascript code that can be used to link to a php file that can be run on the client side

Re: [PHP] sunrise/sunset programs?

2002-11-18 Thread Adam
yes, have tried googling around... i came across one but the link no longer works: http://www.hotscripts.com/Detailed/4984.html if anyone knows of any, could they post the links here? thanks, adam. - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.general To:

  1   2   >