[PHP] TIME

2003-09-02 Thread Dale Hersh
The battery on my server keeps on dieing, so the clock is not keeping time correctly. I was wondering is there any way to query some type of global time source in php? Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] randomly select a table, better way?

2003-09-02 Thread Daniel Bray
On Mon, 01 Sep 2003 22:49:55 +, Curt Zirzow wrote: > > Instead of looping through all the tables and building an array you > can do something like: > > $n = mysql_num_rows($result); > $seek = mt_rand(0, $n-1); > mysql_data_seek($result, $seek); > > > Curt So then the total code would be:

php-general Digest 2 Sep 2003 00:18:06 -0000 Issue 2272

2003-09-02 Thread php-general-digest-help
php-general Digest 2 Sep 2003 00:18:06 - Issue 2272 Topics (messages 161360 through 161403): gif support not in GD 2.01? 161360 by: Merlin 161369 by: Curt Zirzow Re: reinstalling php with imap 161361 by: Raditha Dissanayake 161362 by: Merlin 161363 by

[PHP] multiple db query

2003-09-02 Thread Aris Santillan
is it possible to query on 2 databases but with same tablename and merge its output?

[PHP] Re: How Energy Storage can help us ?

2003-09-02 Thread Flywheel
Nice Hello from Flywheel Storage & Sun Tracking Goodbay to Blackout forever [EMAIL PROTECTED] Responding to your Questions; We offer Safety Solution Rolling Blackout will always happened, since the SYSTEM - is design to protect itself in dangerous Over-Current Situations. Bre

Re: [PHP] multiple db query

2003-09-02 Thread John W. Holmes
Aris Santillan wrote: is it possible to query on 2 databases but with same tablename and merge its output? Probably. It depends upon your database, though. SELECT t1.column, t2.column FROM database1.table1 t1, database2.table2 t2 WHERE ... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/r

[PHP] script archives

2003-09-02 Thread Dennis Gearon
I'm trying to find a script archive I once used to go to. It was neck and neck with hotscripts.com in usable scripts. It was for PHP only scripts. I THOUGHT it was called phpscripts.com, but no such site exists. anyone give a short list of PHP script archive sites? -- PHP General Mailing List (

Re: [PHP] script archives

2003-09-02 Thread Chris Shiflett
--- Dennis Gearon <[EMAIL PROTECTED]> wrote: > I'm trying to find a script archive I once used to go to. It was neck > and neck with hotscripts.com in usable scripts. It was for PHP only > scripts. I THOUGHT it was called phpscripts.com, but no such site > exists. Perhaps you are thinking of Dav

Re: [PHP] script archives

2003-09-02 Thread Dennis Gearon
Chris Shiflett wrote: --- Dennis Gearon <[EMAIL PROTECTED]> wrote: I'm trying to find a script archive I once used to go to. It was neck and neck with hotscripts.com in usable scripts. It was for PHP only scripts. I THOUGHT it was called phpscripts.com, but no such site exists. Perhaps y

Re: [PHP] script archives

2003-09-02 Thread Dennis Gearon
Chris Shiflett wrote: --- Dennis Gearon <[EMAIL PROTECTED]> wrote: I'm trying to find a script archive I once used to go to. It was neck and neck with hotscripts.com in usable scripts. It was for PHP only scripts. I THOUGHT it was called phpscripts.com, but no such site exists. Perhaps y

Re: [PHP] Re: session-problem

2003-09-02 Thread Curt Zirzow
* Thus wrote Juerg Zgraggen ([EMAIL PROTECTED]): > :-) cool thank you! > is any "$_"-variable superglobal? $_REQUEST, $_POST, ...? Correct. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] MySQL Left Join Question

2003-09-02 Thread Nicholas Robinson
I'm not clear whether you are saying you get the records where there is a match and no non-matching records, or simply no records at all! What happens if you take out the WHERE clause, do you get all the records from p being displayed with NULLs for c.projectid where no match exists? Nick On

Re: [PHP] TIME

2003-09-02 Thread Nicholas Robinson
Not directly as far as I know. Try using chronyd or similar (google will point you in the right direction). This works well with one of my machines that has a wayward clock and chronyd is happy to work with networks not permanently connected to the internet. On Tuesday 02 Sep 2003 1:11 am, Dale

Re: [PHP] TIME

2003-09-02 Thread Curt Zirzow
* Thus wrote Dale Hersh ([EMAIL PROTECTED]): > The battery on my server keeps on dieing, so the clock is not keeping time > correctly. I was wondering is there any way to query some type of global > time source in php? Totally unrealated to php but search for: Network Time Protocol (NTP) That

[PHP] accessing $GLOBALS values

2003-09-02 Thread Dennis Gearon
I am looking at the 'tackle' library available at sourceforge. It's a 'Tiny ACL' (access control list). Seems pretty good, simple and to the point. AND, it is database neutral, using ADODB. I haven't figured out how it does referential integrity in the database yet, but I suspect it's using

[PHP] Copy database from MySQL to MSAccess

2003-09-02 Thread Kjell Hansen
Hi there, I'd like to have a template DB stored with MySQL from which I later can create clientDB's for use with MSAccess. I've read that I can connect to MSAccess with PHP through ODBC and that's fine but how do I transfer the tables and cusomized data? TIA /Kjell Hansen -- PHP General Mailing

[PHP] Block HTML Control

2003-09-02 Thread Seth Willits
I'd like to show a big chunk of HTML if a particular variable is true, and if its false I'd like to show a different big chunk of html. Right now the only way I know of doing this is: if ($var) { print ' '; } else { pri

Re: [PHP] Block HTML Control

2003-09-02 Thread Jason Wong
On Tuesday 02 September 2003 15:00, Seth Willits wrote: > I'd like to show a big chunk of HTML if a particular variable is true, > and if its false I'd like to show a different big chunk of html. Right > now the only way I know of doing this is: > > if ($var) { > print ' > >

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
On Tuesday, September 2, 2003, at 12:03 AM, Jason Wong wrote: Lots of Awesome. Thanks for the quick reply. Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist for RE

Re: [PHP] Block HTML Control

2003-09-02 Thread Raditha Dissanayake
you can try if( $var) require("1.html"); else require("2.html"); Seth Willits wrote: I'd like to show a big chunk of HTML if a particular variable is true, and if its false I'd like to show a different big chunk of html. Right now the only way I know of doing this is: if ($var) { print '

Re: [PHP] PHP Interview questions and how to pass parameters to .js files

2003-09-02 Thread murugesan
I think this program will work under the condition that the fault one is heavier in weight, but the case is that it may be "lighter" OR "heavier". Ok enough of php interview questions. I need to pass a value to a function in .js file which has been linked in a php file which in turn has been inclu

[PHP] Re: accessing $GLOBALS values

2003-09-02 Thread Ivo Fokkema
"Dennis Gearon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] > One thing I'm a little confused about is the usage of $GLOBALS array, in > this manner: > >$GLOBALS[SOME_NAME]. > > I thought that it should be: > >$GLOBALS['SOME_NAME']. Hi, You should use quotes to tel

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
On Tuesday, September 2, 2003, at 12:06 AM, Seth Willits wrote: Lots of Awesome. Thanks for the quick reply. Hmm.. Actually, how does this work with php & html? This is actually what I'm trying to do. I should have said this in the first place, sorry :)

Re: [PHP] web-mail problem

2003-09-02 Thread Viraj Kalinga Abayarathna
David, first, this is a meassage you are getting from your mail server, not from PHP. according to my knowladge this is due to email address routing problem which the mail server experience when it tries to relay the mail. if you can send me the complete bounce mail message you recieve i'll tell y

Re: [PHP] Foring a file download *and* page reload

2003-09-02 Thread Marek Kilimajer
You can use either a tag or real header, the later is prefered. header('Refresh: 0; url=download.zip'); ?> The browser loads the page and immediatly goes to another page (download.zip). This page will prompt the Save As dialog. Jean-Christian IMbeault wrote: Marek Kilimajer wrote: But be

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, try to mingle PHP and HTML.. that means escape the PHP and jump to HTML when you want the HTML.. like this... happy coding Viraj Seth Willits wrote: > > I'd like to show a big chunk of

Re: [PHP] Block HTML Control

2003-09-02 Thread Viraj Kalinga Abayarathna
Seth, rgd viraj Seth Willits wrote: > > On Tuesday, September 2, 2003, at 12:06 AM, Seth Willits wrote: > > >> > >> > >> Lots of > >> > >> > > > > Awesome. Thanks for the quick repl

[PHP] Re: Copy database from MySQL to MSAccess

2003-09-02 Thread Kjell Hansen
Hi Leonie My approach is to have the empty AccessDB on the server. Make a copy of it and insert all the tables into the copy and then have it downloaded from the server. So I'm actually never gonna use Access, it's just the database I'm using for storage of data. One way of doing this could be to

Re: [PHP] multiple db query

2003-09-02 Thread Marek Kilimajer
For MySQL Version 3.23.25 and above - yes, and it is (surprisingly) called MERGE. I'm not sure if tables can be merged across databases. More in the manual. Aris Santillan wrote: is it possible to query on 2 databases but with same tablename and merge its output? -- PHP General Mailing List (ht

Re: [PHP] multiple db query

2003-09-02 Thread murugesan
I tried this and it is working well. I use 2 DB namely db1 and db2 Mysql>use db1; Mysql>select vv.visitorname,aa.visitorname from db1.visitordetails vv, db2.visitordetails aa; -Murugesan - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Aris Santillan" <[EMAIL PR

RE: [PHP] execute command line script from browser

2003-09-02 Thread Jay Blanchard
[snip] Is there a way to execute a command line php script from a browser by, say clicking a button and then having the browser let go and let the script run independet of the browser? Hope I explained that correctly. [/snip] You could invoke the CLI using an exec() http://www.php.net/exec HTH!

php-general Digest 2 Sep 2003 12:40:13 -0000 Issue 2273

2003-09-02 Thread php-general-digest-help
php-general Digest 2 Sep 2003 12:40:13 - Issue 2273 Topics (messages 161404 through 161437): multiple db query 161404 by: Aris Santillan 161406 by: John W. Holmes 161435 by: Marek Kilimajer 161436 by: murugesan Re: How Energy Storage can help us ? 16

[PHP] Re: can't include 'http...foo.php', but can include 'http...foo.txt'

2003-09-02 Thread BKDotCom
[EMAIL PROTECTED] (paul13) wrote in message news:<[EMAIL PROTECTED]>... > > How do I use the physical location for a page on another machine? > > 'http://www.foo.com/usr/local/htdocs/includes/includes.php' > > with whatever is the acurate physical location following the .com? > > Paul I sure

[PHP] Backup Database

2003-09-02 Thread Shaun
Hi, Is there a facility out there that I can use to automatically backup my database to my local machine every night using PHP and MySQL? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Website templating schemes

2003-09-02 Thread Ronald van Raaphorst
Search google for Smarty (I believe it's www.smarty.php) It's a great way of separating output from the logic using templates. Ronald "Joel Konkle-Parker" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > I'm trying to make a PHP-backed website, and I'm trying to decide between two

Re: [PHP] Re: Website templating schemes

2003-09-02 Thread Duncan Hill
> Search google for Smarty (I believe it's www.smarty.php) It's a great way > of > separating output from the logic using templates. That'd be smarty.php.net ... didn't know .php was a tld :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Backup Database

2003-09-02 Thread Viraj Kalinga Abayarathna
you can write a PHP script to backup the DB to a SQL file and run that script using crond at scheduled time or periodiacally as you define in cron regards viraj Shaun wrote: > > Hi, > > Is there a facility out there that I can use to automatically backup my > database to my local machine ev

[PHP] Open-source browser-based POS system?

2003-09-02 Thread John Almberg
Anyone know of an open source, browser-based Point of Sale system? -- John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Restart Apache with PHP???

2003-09-02 Thread Joe Harman
Hey guys & gals... Is there a way to restart Apache with a PHP command? Joe Harman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Backup Database

2003-09-02 Thread James Lobley
Hi Shaun, DevShed's last weekly newsletter had the following: Daily Scheduled Backup of MYSQL Databases - Looking for a free tool or utility to handle scheduled MySQL backups. http://forums.devshed.com/t74513/s.html Haven't tried any of the solutions yet, but will be soon! James -Original

Re: [PHP] Restart Apache with PHP???

2003-09-02 Thread Raditha Dissanayake
hi, There isn't a specific PHP api for this. But you can execute shell commands through various mechanisms included exec, backticks etc etc. All of this is deadly dangerous of course because you need root privileges. Joe Harman wrote: Hey guys & gals... Is there a way to restart Apache with

Re: [PHP] Open-source browser-based POS system?

2003-09-02 Thread Chris Sherwood
a quick search on google revealed a few things http://www.google.ca/search?q=browser+based+POS&ie=UTF-8&oe=UTF-8&hl=en&meta= try that and see if any of those meet your requirements Chris - Original Message - From: "John Almberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

Re: [PHP] Open-source browser-based POS system?

2003-09-02 Thread John Almberg
Hi Chris, Yes, I found a number of systems on Source Forge. I should have made my question more specific . . . "Anyone have any experience with an open source, browser-based POS system, and can recommend one or two for a collectable/hobby store with a large (20,000+) inventory of different ite

Re: [PHP] Restart Apache with PHP???

2003-09-02 Thread Dan Anderson
Search the archives. Somebody wanted to restart their server using a web page, and a clever solution was pointed out. By creating a script that monitored for a particular file in temp and restarted the server if it existed it, and cronning it for every minute, they could do it safely and securely

RE: [PHP] password systems

2003-09-02 Thread Chris W. Parker
Dennis Gearon on Sunday, August 31, 2003 12:36 AM said: > Anyone have any sources of noun/verb/adjective lists for password > generation? Sorry I don't have a resource for you, but passwords shouldn't use dictionary words in the first place. Have you considered crea

Re: [PHP] Re: Copy database from MySQL to MSAccess

2003-09-02 Thread Dan Anderson
> server. So I'm actually never gonna use Access, it's just the database I'm > using for storage of data. Well ODBC implies that you are going to have a database program (i.e. Oracle, SQL Server, Access, whatever) to connect to. At least that's how I understand it to work. So if you don't have a

RE: [PHP] Gripe^2 [was Gripe]

2003-09-02 Thread Chris W. Parker
Curt Zirzow on Friday, August 29, 2003 7:54 PM said: > Why do people insist on using their work address so we are plagued > with privacy notices and autorespond's letting us know that he will > be gone one extra day over the weekend Well fortunately for me I don

RE: [PHP] Re: Website templating schemes

2003-09-02 Thread Chris W. Parker
Duncan Hill on Tuesday, September 02, 2003 8:07 AM said: >> Search google for Smarty (I believe it's www.smarty.php) It's a >> great way of separating output from the logic using templates. > > That'd be smarty.php.net ... didn't know .php was a tld :) And how abou

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
On Tuesday, September 2, 2003, at 02:06 AM, Viraj Kalinga Abayarathna wrote: Seth, Aaa ok. I was confused with the semi colon and colon used in the last example. This clears it all

Re: [PHP] Block HTML Control

2003-09-02 Thread Leif K-Brooks
Seth Willits wrote: Aaa ok. I was confused with the semi colon and colon used in the last example. This clears it all up. Thanks. http://us3.php.net/manual/en/control-structures.alternative-syntax.php -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt t

[PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread John Bryan
I need to use something like a session variable to make a variable available to an existing form-invoked C++ program which takes as input a file being uploaded. Is this even do-able ??If so, what am I missing here ??? The C++ prog used to use the REMOTE_USER env var set by the web server b

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread Raditha Dissanayake
Hi, Had a similar problem when building upload progress bar. Initially i used cookies but that had a few minor hiccups. What you can do is to encode your variables into the query string. This is accessible as part of the env. variables. Since you are familiar with C++ you will get the hang of

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread John Bryan
Thanks, very much, Raditha. Do you mean to pass my variable as a cgi parameter ? If so, the problem is that this file that is being uploaded via the form to the program MyCppProg.exe gets sent as THE input to the prog, apparently as a cgi-type parameter through stdin (i.e. cin), so that when I

RE: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread Ford, Mike [LSS]
On 02 September 2003 19:22, Raditha Dissanayake wrote: > Hi, > > Had a similar problem when building upload progress bar. Initially i > used cookies but that had a few minor hiccups. What you can do is to > encode your variables into the query string. This is > accessible as part > of the env. va

RE: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread John Bryan
On Tuesday, September 02, 2003, at 01:32PM, Ford, Mike [LSS] <[EMAIL PROTECTED]> wrote: >On 02 September 2003 19:22, Raditha Dissanayake wrote: > >> Hi, >> >> Had a similar problem when building upload progress bar. Initially i >> used cookies but that had a few minor hiccups. What you can do i

[PHP] read / unread system for my forum

2003-09-02 Thread Daniel Richter
Hi all i'm coding a little forum an now i want to make a read / unread system for the new posts and topics. Can anybody explain to me, how I can do that? mfg codemonkey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread Raditha Dissanayake
Oh well, and i thought i knew everything about php :-( Ford, Mike [LSS] wrote: On 02 September 2003 19:22, Raditha Dissanayake wrote: Hi, Had a similar problem when building upload progress bar. Initially i used cookies but that had a few minor hiccups. What you can do is to encode your vari

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread Raditha Dissanayake
Hello, If you use yes they will be part of the input stream. What i suggested was you have then you can retrieve the query string variable from the env. (at least this works with perl cgi and i don't see why it shouldn't work with C++ as well). the only draw back is that you have to process

Re: [PHP] password systems

2003-09-02 Thread Lowell Allen
> Anyone have any sources of noun/verb/adjective lists for password > generation? Google search for Aspell and Pspell. Here's a link to Aspell info, which has a link to dictionaries: -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread CPT John W. Holmes
From: "John Bryan" <[EMAIL PROTECTED]> > If so, the problem is that this file that is being uploaded > via the form to the program MyCppProg.exe gets sent > as THE input to the prog, apparently as a cgi-type > parameter through stdin (i.e. cin), so that when I try to > pass the value as a cgi par

Re: [PHP] read / unread system for my forum

2003-09-02 Thread Dan Anderson
> i'm coding a little forum an now i want to make a read / unread system for > the new posts and topics. > Can anybody explain to me, how I can do that? I'm not sure what you mean, do you mean let each users mark messages as read or not read? Well, if you don't mind the space in a mySQL database

[PHP] opening remote tar.gz files

2003-09-02 Thread John Ryan
is it possible with PHP to download and open a remote tar.gz file?? I read in the manual that it is, but it never seems to work for me. I tried opening the file with fopen fopen("zlib://http://www.site.com/update.tar.gz";, "r"); but it didnt work Then I tried using the zlib functions but they jus

Re: [PHP] Backup Database

2003-09-02 Thread Dan Anderson
Do some googling. I keep seeing this on the listserv and there has to be a free/opensource one out there somewhere. -Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] opening remote tar.gz files

2003-09-02 Thread Jay Blanchard
[snip] is it possible with PHP to download and open a remote tar.gz file?? I read in the manual that it is, but it never seems to work for me. I tried opening the file with fopen fopen("zlib://http://www.site.com/update.tar.gz";, "r"); but it didnt work Then I tried using the zlib functions but t

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread John Bryan
On Tuesday, September 02, 2003, at 02:04PM, Raditha Dissanayake <[EMAIL PROTECTED]> wrote: >Hello, >If you use yes they will be part of the input >stream. What i suggested was you have > then you can >retrieve the query string variable from the env. (at least this works >with perl cgi and i

Re: [PHP] opening remote tar.gz files

2003-09-02 Thread Dan Anderson
There are a number of possible solutions. If i remember correctly some compressed file types need the ability to handle them compiled into PHP. Try different things. Sometimes the easiest way to do things is to FTP into the remote server and ftp into your server to transfer it. -Dan -- PHP Ge

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread John Bryan
On Tuesday, September 02, 2003, at 01:55PM, CPT John W. Holmes <[EMAIL PROTECTED]> wrote: >From: "John Bryan" <[EMAIL PROTECTED]> > >> If so, the problem is that this file that is being uploaded >> via the form to the program MyCppProg.exe gets sent >> as THE input to the prog, apparently as a

[PHP] evaluating dynamic variable

2003-09-02 Thread Steve Goodman
Hi, I'm having trouble evaluating a dynamic variable. I want to check if the variable $_POST["resolutions$i"] is an empty string, as you'll see from the code. However, every way I've tried to check the variable so far (including empty() and eval()) always returns a null value, even when the variabl

[PHP] Re: Including classes inside functions vs outside - scope/global[solved]

2003-09-02 Thread Verdon vaillancourt
Hi Greg, I've been on a holiday and just got to ttry this last night. Worked like a charm. Thank You! Salut, verdon > Hi Verdon, > > Be sure that $connobj is declared as a global variable in the > mysql_connection.php file. You can do this in two ways: > > 1) instead of $connobj = blah, use

Re: [PHP] Block HTML Control

2003-09-02 Thread Dan Anderson
You do realize that you don't need a semicolon right after Seth, > try to mingle PHP and HTML.. that means escape the PHP and jump to HTML > when > you want the HTML.. like this... > > > if (!$var) { > ?> > > > ; > } else { >

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread CPT John W. Holmes
From: "John Bryan" <[EMAIL PROTECTED]> > The file would already exist on the client side. They are > uploading the file to be processed by this program > MyCppProg.exe, which is invoked as a form 'action'. > This already works, but depends on the Apache variable > REMOTE_USER being set when user

RE: [PHP] evaluating dynamic variable

2003-09-02 Thread Jay Blanchard
[snip] I'm having trouble evaluating a dynamic variable. I want to check if the variable $_POST["resolutions$i"] is an empty string, as you'll see from the code. However, every way I've tried to check the variable so far (including empty() and eval()) always returns a null value, even when the vari

Re: [PHP] evaluating dynamic variable

2003-09-02 Thread Matt Matijevich
this worked for me. "; } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] evaluating dynamic variable

2003-09-02 Thread Chris W. Parker
Steve Goodman on Tuesday, September 02, 2003 12:54 PM said: > Can someone > recommend a way to reliably evaluate this variable? 1. (not positive on this point so correct me if I'm wrong) you shouldn't compare with !==. Instead us !=. 2. What does the following do?

RE: [PHP] evaluating dynamic variable

2003-09-02 Thread Chris W. Parker
Chris W. Parker <> on Tuesday, September 02, 2003 1:29 PM said: > 1. (not positive on this point so correct me if I'm wrong) you > shouldn't compare with !==. Instead us !=. Ok, turns out I'm wrong on that. I guess I should go look it up!! -- PHP General Mailing List (http://www.php.net/) To

[PHP] Form variables lost when duplicate records are found !

2003-09-02 Thread Pushpinder Singh Garcha
Hello everyone, I am making use of a php form to add company details to a MySQL Database. Before I add the form variables I am checking to see if the SAME company name exists in the DB. If the same company exists, then a notification is provided. In between this , the variables that were ente

Re: [PHP] Form variables lost when duplicate records are found!

2003-09-02 Thread Matt Matijevich
[snip] then the forms variables are stored and NOT LOST ?? [/snip] Have you looked into sessions? http://www.php.net/manual/en/ref.session.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] evaluating dynamic variable

2003-09-02 Thread Stephen Goodman
When I run the code you've attached, with $i iterating up to 3, I get three 'empty!', even if $resolution1 should be 'not empty!'. It seems like the $i in $_POST["resolutions".$i] is not getting parsed into a value, and php is looking for a key resolutions$i. Whoops, I'm an idiot. Resolution sing

Re: [PHP] evaluating dynamic variable

2003-09-02 Thread CPT John W. Holmes
From: "Stephen Goodman" <[EMAIL PROTECTED]> > When I run the code you've attached, with $i iterating up to 3, I get > three 'empty!', even if $resolution1 should be 'not empty!'. It seems > like the $i in $_POST["resolutions".$i] is not getting parsed into a > value, and php is looking for a key

Re: [PHP] Form variables lost when duplicate records are found !

2003-09-02 Thread Chris Shiflett
--- Pushpinder Singh Garcha <[EMAIL PROTECTED]> wrote: > I am making use of a php form to add company details to a MySQL > Database. Before I add the form variables I am checking to see if the > SAME company name exists in the DB. If the same company exists, then a > notification is provided. In

Re: [PHP] Form variables lost when duplicate records are found !

2003-09-02 Thread CPT John W. Holmes
From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> > I am making use of a php form to add company details to a MySQL > Database. Before I add the form variables I am checking to see if the > SAME company name exists in the DB. If the same company exists, then a > notification is provided. In bet

Re: [PHP] Form variables lost when duplicate records are found !

2003-09-02 Thread Pushpinder Singh Garcha
I am currently using sessions on my site // are you suggesting that I store all the possible 30 form variables in a temp session array. ?? and destroy it afterwards Thanks -Pushpinder On Tuesday, September 2, 2003, at 04:41 PM, Matt Matijevich wrote: [snip] then the forms variables are stored a

Re: [PHP] opening remote tar.gz files

2003-09-02 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): > [snip] > is it possible with PHP to download and open a remote tar.gz file?? I > read > in the manual that it is, but it never seems to work for me. > > I tried opening the file with fopen > fopen("zlib://http://www.site.com/update.tar.gz";, "r");

Re: [PHP] opening remote tar.gz files

2003-09-02 Thread Curt Zirzow
* Thus wrote John Ryan ([EMAIL PROTECTED]): > is it possible with PHP to download and open a remote tar.gz file?? I read > in the manual that it is, but it never seems to work for me. > > I tried opening the file with fopen > fopen("zlib://http://www.site.com/update.tar.gz";, "r"); > but it didnt

[PHP] anyone using sqlite raise your hand

2003-09-02 Thread andu
Are people on this list using the sqlite extension with php? I was unable to subscribe to pear-php or get an answer from its webmaster (or the developer of the extension) and would like some feedback on a problem I have. -- Regards, Andu Novac -- PHP General Mailing List (http://www.php.net/)

Fwd: Re: [PHP] Form variables lost when duplicate records arefound !

2003-09-02 Thread Matt Matijevich
The approach of using $_GET variables would just make the URL very very long, like imagine having to pass close to 33 variables on the form. The other option wud be to use $_SESSION array to store the form variables. Does anyone have nay other suggestion.? Thanks in advance ! /pS On Tuesday

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread John Bryan
On Tuesday, September 02, 2003, at 02:04PM, Raditha Dissanayake <[EMAIL PROTECTED]> wrote: >Hello, >If you use yes they will be part of the input >stream. What i suggested was you have > then you can >retrieve the query string variable from the env. (at least this works >with perl cgi and i

[PHP] how to include() N lines?

2003-09-02 Thread 457945
hello! i need to include() only a given amount of lines (the first 10 for example) instead of a whole file. does someone know how this has to be done? thanks a lot for your effort, best regards philipp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] Problem with IE parsing of PHP output

2003-09-02 Thread hecchan
Hi, I have a class which write a menu, it works fine with Mozilla and Opera but with IE (6 on XP) got a extrange behaviour. Links works and submenus are open, but the second time the page is loaded I can not see the source and if I try to save the file IE says some files are missed. The environm

RE: [PHP] how to include() N lines?

2003-09-02 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, September 02, 2003 3:04 PM said: > i need to include() only a given amount of lines (the first 10 for > example) instead of a whole file. > > does someone know how this has to be done? Yes. Remove those first ten lines (assuming they a

Re: [PHP] how to include() N lines?

2003-09-02 Thread Matt Matijevich
[snip] i need to include() only a given amount of lines (the first 10 for example) instead of a whole file. [/snip] I have never tried it, but I think you could open up the file you want to include, import n lines into a variable, then use the eval function to turn that variable into php code. S

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread Chris Shiflett
--- John Bryan <[EMAIL PROTECTED]> wrote: > So looks like I can't have it both ways, i.e. POST and GET Yes, you can. The script blah.php can reference $_GET['foo'] and $_POST['bar']. The values of these variables will be 1 and 2, respectively. Please keep in mind that this is a PHP list...

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread John Bryan
On Tuesday, September 02, 2003, at 05:12PM, Chris Shiflett <[EMAIL PROTECTED]> wrote: >--- John Bryan <[EMAIL PROTECTED]> wrote: >> So looks like I can't have it both ways, i.e. POST and GET > >Yes, you can. > > > > > >The script blah.php can reference $_GET['foo'] and $_POST['bar']. The values

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread Chris Shiflett
--- John Bryan <[EMAIL PROTECTED]> wrote: > Was/am thinking I could use php to set 'session' variable(s) that > would also be visible to an existing cpp prog currently invoked > from a form. I missed most of this thread, since it appeared to be off-topic, but you might consider changing the action

Re: [PHP] how to include() N lines?

2003-09-02 Thread 457945
thanks for your answers! i'm not quite sure if i made my point clear. this is my problem: image.php database.php instead of including the whole database.php i need to include only a given number of lines, always starting with the first one. because database.php contains 10'000+ lines and the

RE: [PHP] how to include() N lines?

2003-09-02 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, September 02, 2003 4:28 PM said: > instead of including the whole database.php i need to include only a > given number of lines, always starting with the first one. I don't think you're going to be able to do this in the way that you wa

Re: [PHP] how to include() N lines?

2003-09-02 Thread John W. Holmes
[EMAIL PROTECTED] wrote: thanks for your answers! i'm not quite sure if i made my point clear. this is my problem: image.php include("database.php"); ImagePNG($image, '', 95); imagedestroy($image); ?> database.php instead of including the whole database.php i need to include only a given number

[PHP] Cookies & Hidden Image

2003-09-02 Thread Nicole
Hi, I am working on a script that uses cookie to store some info on the client side. The user will click a link that contains info about where the link was placed. The script will then store that info so that when the user returns later and makes a purchase, I can see where they came from. The p

Re: [PHP] Session var read by form C++ CGI prog ?

2003-09-02 Thread Raditha Dissanayake
Chris is right on both counts. :-) and this is exactly how i do it in my file upload progress bar. best regards raditha Chris Shiflett wrote: --- John Bryan <[EMAIL PROTECTED]> wrote: So looks like I can't have it both ways, i.e. POST and GET Yes, you can. The script blah.php can refer

php-general Digest 3 Sep 2003 00:48:45 -0000 Issue 2274

2003-09-02 Thread php-general-digest-help
php-general Digest 3 Sep 2003 00:48:45 - Issue 2274 Topics (messages 161438 through 161504): Re: can't include 'http...foo.php', but can include 'http...foo.txt' 161438 by: BKDotCom Backup Database 161439 by: Shaun 161442 by: Viraj Kalinga Abayarathna 161445

  1   2   >