Re: [PHP] "include" working....but confusion

2004-01-20 Thread Ryan A
Hey, Thanks for the very informative reply but I did try itproblem is, it seems to work with and without...thats why the confusion. I have one program like the one i outlined and the second one, like this: some html code goes here some output stuff goes here something something something etc

RE: [PHP] $_SESSION

2004-01-20 Thread Aaron Wolski
You need to call session_start() on each page. > -Original Message- > From: Alex Hogan [mailto:[EMAIL PROTECTED] > Sent: January 20, 2004 1:29 PM > To: PHP General list > Subject: [PHP] $_SESSION > > I've got a question that I'm sure has a simple answer. > > > > Why aren't my session o

Re: [PHP] Flash .swf outside webroot: width and height problems

2004-01-20 Thread Mike Migurski
>But I guess you can't write the tag and just do a VALUE="show.php?id=xy" etc. and have the show.php output the header... Sure you can, as long as show.php outputs a valid flash file and the correct content-type. As far as the browser is concerned, it's the same as any other flash file. -

[PHP] $_SESSION

2004-01-20 Thread Alex Hogan
I've got a question that I'm sure has a simple answer. Why aren't my session objects transferring across more than one page? I'm calling a session object that was set in the page prior; $_SESSION['mysessionvar'] = $_REQUEST['mytxtobj']; I then assign a variable that value; $myvar = $_

Re: [PHP] Flash .swf outside webroot: width and height problems

2004-01-20 Thread Toby Irmer
Thx for the fast response. Yes, I am doing that with the images... works fine. I also thought about using either an iframe or a div to control the size of the movie. It would have been nicer to be able to use a regular object tag, as it gives you more control over how the movie displayed. But I g

Re: [PHP] "include" working....but confusion

2004-01-20 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > Do I have to start and end the included files with? Yes. One day you'll learn to spend the two seconds trying this instead of asking the list. I'll be so proud of you then! ;) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Flash .swf outside webroot: width and height problems

2004-01-20 Thread CPT John W. Holmes
From: "Toby Irmer" <[EMAIL PROTECTED]> > I am trying to display an .swf-file that is stored outside the webroot. > > Just sending the header and doing a readfile on the swf results in the swf > being displayed with the maximum available width and height. > > Does anyone know a way of displaying Fl

[PHP] "include" working....but confusion

2004-01-20 Thread Ryan A
Hi, A bit confused here... this is my programs logic: if(multipleProducts==1) {include "multiple_products_looping_code.php";} else {include "single_products_code.php";} I am doing the above because some of the code is pretty big and it makes life simlier if I just add the code when I need it. On

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread php
save the data from the script to a file and download this file Tue, 20 Jan 2004 12:56:49 -0500 Ben Ramsey <[EMAIL PROTECTED]>: [EMAIL PROTECTED] wrote: > or download the file without the php-script and analyse the > http-headers with a network-sniffer There is no way to download the "file" with

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread CPT John W. Holmes
From: "Ben Ramsey" <[EMAIL PROTECTED]> > [EMAIL PROTECTED] wrote: > > or download the file without the php-script and analyse the > > http-headers with a network-sniffer > > There is no way to download the "file" without the PHP script. It is > being generated by the PHP script from data in a d

[PHP] Flash .swf outside webroot: width and height problems

2004-01-20 Thread Toby Irmer
Hey everybody, I am trying to display an .swf-file that is stored outside the webroot. Just sending the header and doing a readfile on the swf results in the swf being displayed with the maximum available width and height. Does anyone know a way of displaying Flash with its correct dimensions if

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Ben Ramsey
[EMAIL PROTECTED] wrote: > or download the file without the php-script and analyse the > http-headers with a network-sniffer There is no way to download the "file" without the PHP script. It is being generated by the PHP script from data in a database. The "file" does not actually exist. -Ben

Re: [PHP] Running PHP as a CGI, chasing my own tail....

2004-01-20 Thread pw
Hello, Thanks for the info. I am aware of the security problems around this. The methods described in the manual were not working so I decided to try this on an internal server to find out why. I am using apache 1.3.23 and php 4.3.3 on linux with a 2.4 kernel. I can't use the php module because

[PHP] Re: Ip Tracking Utilities

2004-01-20 Thread Jas
Rolf Brusletto wrote: Hey all - I've heard mention of Ip database/tracking utilities in the lists before, but I can't seem to find any mention when googling... does anybody know of a good app to track multiple Class C spaces or larger? Thanks, Rolf Brusletto -- http://www.phpExamples.n

Re: [PHP] Running PHP as a CGI, chasing my own tail....

2004-01-20 Thread Stuart
pw wrote: In my httpd.conf file I have placed the lines: AddHandler phtml-script .phtml Action phtml-script /cgi-bin/php I have a symlink in my cgi-bin directory to the php executable. Am I missing anything else to make this work? A clue-by-four about security. If that was to work you would be op

[PHP] Running PHP as a CGI, chasing my own tail....

2004-01-20 Thread pw
Hello, I have looked over the various documentation regarding using php as a CGI program. What I have are PHTML scripts that I wish to run through php via CGI, not through the module. In my httpd.conf file I have placed the lines: AddHandler phtml-script .phtml Action phtml-script /cgi-bin/php

Re: [PHP] preg_replce ' for use with mysql

2004-01-20 Thread CPT John W. Holmes
From: "Nirnimesh" <[EMAIL PROTECTED]> > How do I replace all ' with \' in php so that I'm able to use the mysql > queries. Note that simply using: preg_replace("/'/", "\'", -1) is not what > I'm looking for, for this does not help me. Let's say I take the address > from a form and want to enter it

RE: [PHP] preg_replce ' for use with mysql

2004-01-20 Thread craig
> How do I replace all ' with \' in php so that I'm able to use > the mysql > queries. Note that simply using: preg_replace("/'/", "\'", > -1) is not what > I'm looking for, for this does not help me. Let's say I take > the address > from a form and want to enter it into the database as it is.

Re: [PHP] php running as user apache

2004-01-20 Thread CPT John W. Holmes
From: "Nirnimesh" <[EMAIL PROTECTED]> > My question relates to using php for handling file uploads. Since php runs > as user apache, using it to manage file uploads means that I need to give > write permissions to the user apache, which is a near-to-nobody user, i.e. > 0+w permissions. Now does th

[PHP] preg_replce ' for use with mysql

2004-01-20 Thread Nirnimesh
How do I replace all ' with \' in php so that I'm able to use the mysql queries. Note that simply using: preg_replace("/'/", "\'", -1) is not what I'm looking for, for this does not help me. Let's say I take the address from a form and want to enter it into the database as it is. Now, if the user

[PHP] php running as user apache

2004-01-20 Thread Nirnimesh
My question relates to using php for handling file uploads. Since php runs as user apache, using it to manage file uploads means that I need to give write permissions to the user apache, which is a near-to-nobody user, i.e. 0+w permissions. Now does that not mean that anyone who can run a php scri

[PHP] php running as user apache

2004-01-20 Thread Nirnimesh
testing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread php
if you are using sessions: remove session_start() inside the downloadscript or play around with http-headers, e.g.: session_start(); header("Expires: ".gmdate("D, d M Y H:i:s", 0)." GMT"); header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); header("Cache-Control: private, max-age:0"); header

Re: [PHP] Cookie Guestion

2004-01-20 Thread Chris Shiflett
--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > I am still new to web programing but I have a lot of experience in > > developing non web based applications. So I think I am a reasonably > > clever programmer and I have now done enough web programming that I > > understand the cookie mechan

[PHP] PHP CONTRACT ROLE IN BERKSHIRE, UK

2004-01-20 Thread PHPDiscuss - PHP Newsgroups and mailing lists
PHP developer required with good SQL (MySQL preferred), HTML and Linux open source operating systems experience for contract in Berkshire. Experience of data analysis, requirements analysis and technical documentation an advantage as is any knowledge of Oracle databases. Role is to develop a cost

Re: [PHP] Cookie Guestion

2004-01-20 Thread CPT John W. Holmes
From: "Stuart" <[EMAIL PROTECTED]> > And don't forget the effect media hype had on their reputation. Cookies > were portrayed as bad guys. As John says, they're not if they're used > correctly, but it only takes one high-profile example of improper use to > tarnish a reputation forever. And as th

Re: [PHP] Cookie Guestion

2004-01-20 Thread Stuart
CPT John W. Holmes wrote: From: "Chris W" <[EMAIL PROTECTED]> I am still new to web programing but I have a lot of experience in developing non web based applications. So I think I am a reasonably clever programmer and I have now done enough web programming that I understand the cookie mechanism.

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Ben Ramsey
John W. Holmes wrote: > From what I've seen on here, the only workaround is to pass > an extra variable in the URL that ends in ".csv", even though > you don't need to use that variable. > file.php?var=whatever&dummy=f.csv Olwen - Sal Williams wrote: > Name it for example something.csv > > The in y

Re: [PHP] Cookie Guestion

2004-01-20 Thread CPT John W. Holmes
From: "Chris W" <[EMAIL PROTECTED]> > I am still new to web programing but I have a lot of experience in > developing non web based applications. So I think I am a reasonably > clever programmer and I have now done enough web programming that I > understand the cookie mechanism. What I can't fi

[PHP] Cookie Guestion

2004-01-20 Thread Chris W
I am still new to web programing but I have a lot of experience in developing non web based applications. So I think I am a reasonably clever programmer and I have now done enough web programming that I understand the cookie mechanism. What I can't figure out is why so many people are parano

RE: [PHP] dreaded sessions

2004-01-20 Thread Matt Horner
Thanks to all who have responded. I have actually only switched to the Innodb tables after I had this same problem with creating the files. The same problem occurs whether I am using the files or the database. Basically, I have performed the steps in verifying th

[PHP] RE: How to make a timer inside the database?

2004-01-20 Thread Rolf van de Krol
Hi Radwan, There's something like a MySQL-manual when you want to know something like this, but I understand it if you don't want to read it at all. It's a kind of big. I don't expect it is possible top put a timer in MySQL, but why shouldn't you put the start time in the database. Everytime you

Re: [PHP] execute php script with crontab

2004-01-20 Thread rudi
Sorry, for delayed reply, but anyway thanks for your help and your sugestions to check the cron log, after read the tutorial and do some actions (trial and error) for a days, finally i found i know it what's going on, the tutorial say that there is two way to run php script with cron : 1. First

Re: [PHP] Debug code

2004-01-20 Thread Jason Sheets
You can write a sed or awk or perl script that will automatically remove your debug statements as long as they follow some form of convention. You could also write a form of preprocessor in this way that would also include files, perform substitutions, etc if you had the time. I have a sed scr

Re: [PHP] connecting PHP to MS Access

2004-01-20 Thread Brian V Bonini
On Mon, 2004-01-19 at 22:24, Tim Thorburn wrote: > Now, the question is - how to connect PHP to MS Access? I've done some > searching on Google - most pages say "wow, good luck with that" or > something similar - any thoughts? I'm sure someone has had to do this > before - am I on the right t

Re: [PHP] PHP & QuickBooks Integration

2004-01-20 Thread Brian V Bonini
On Tue, 2004-01-20 at 04:30, Galen wrote: > I am looking into the possibilities of exporting data from QuickBooks > into PHP for use with a SQL database. Getting data back into QuickBooks > would be even better, some kind of integration. Anybody ever done this? > Anyone even got any experience w

[PHP] Unsubscribe (mailign lsits in general) question...

2004-01-20 Thread Tristan . Pretty
I've been told by my boss, that the law has changed in relation to 'Opt out' options on mailing lists etc... she tells me that I have to now change all my forms to conform. She claims that now, each time the user must click the 'remain subscribed' link, or we have to remove them from our mailing

RE: [PHP] Sorry the attachement was not received!! I put the codes here.

2004-01-20 Thread Angelo Zanetti
try figure it out for yourself and not rely on us to supply you with the answer. you might want to read about etiquette when posting to mailing lists/user groups -Original Message- From: Radwan Aladdin [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 3:12 PM To: [EMAIL PROTECTED]

Re: [PHP] Sorry the attachement was not received!! I put the codes here.

2004-01-20 Thread Toby Irmer
The error is not in that line... check the line before that one. Here, this might be of use... Copy and paste it: ; > $result = mysql_query($query1) or die("Query error: " . mysql_error()); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sorry the attachement was not received!! I put the codes here.

2004-01-20 Thread Radwan Aladdin
Hi dear.. thanks for your reply.. I fixed the Login.php file :) Error : 'Random' Right : 'Random'; But what must I do with this?? : $result = mysql_query($query1) or die("Query error: " . mysql_error()); And I fixed the other pages.. Regards.. - Original Message - From: "Toby Irmer" <[

Re: [PHP] Sorry the attachement was not received!! I put the codes here.

2004-01-20 Thread Toby Irmer
Go check your code for obvious errors before you post it on this list: $Random = 'Random' $result = mysql_query($query1) or die("Query error: " . mysql_error()); Now spot the mistake. If you can't... tough luck. toby -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Error Reporting help

2004-01-20 Thread Chris Edwards
Thanks to all who responded, my ISP must have restarted my web server late night, as this morning I'm now getting those old familiar error messages. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Chris Edwards" <[EMAIL PROTECTED]> Cc: <> Sent: Monday, January 19

Re: [PHP] What is wrong with these Codes!!!!???

2004-01-20 Thread Stuart
Radwan Aladdin wrote: I made these three PHP files.. but I don't know where is the problem Now that's a lie isn't it. Nearly all PHP errors/warnings/notices display the script filename and line number where the problem was encountered. If you can't figure out where the problem is from that yo

[PHP] Re: Sorry the attachement was not received!! I put the codes here.

2004-01-20 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Just before a minute I sent a message with an attachement.. but the attachement was > canceled by the list!! > > Any way.. these are the codes of the pages : > > > Login.php : > > > $link = mysql_connect("localhost", "Database user

[PHP] Re: Adding Text to .txt file

2004-01-20 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > And this function was differs from fopen("myFile.txt", "a"); > That would possibly be fwrite() after you do an fopen as above Cheers -- Quod subigo farinam A: Because it messes up the order in which people normally read text. Q: Why i

[PHP] Sorry the attachement was not received!! I put the codes here.

2004-01-20 Thread Radwan Aladdin
Just before a minute I sent a message with an attachement.. but the attachement was canceled by the list!! Any way.. these are the codes of the pages : Login.php : You was accepted by the server.. END; }else{ print<< Sorry, you was blocked by the server for one of the following reasons

[PHP] What is wrong with these Codes!!!!???

2004-01-20 Thread Radwan Aladdin
Hello..   I made these three PHP files.. but I don't know where is the problem   Login.php -> This will grab the UserName, Password and Serial fields by GET then compare them with the one in the database (After MD5 them)   Activate.php --> For the admin.. he can activate user

[PHP] Printing on remote windows printers

2004-01-20 Thread A . Garelli
Can i use SAMBA for mapping printers on server and then PHP printing commands ? Thank you very much ! <<< Ing. Alberto Garelli - Sales Executive & System Design Cosmic S.p.A. - Filiale Nord-Ovest (WEB site: www.cosmic.it) Via Vittorio Amedeo II n. 11 - 10121 - Torino Corso Venezia n. 16 - 20121 -

RE: [PHP] Variables not working!

2004-01-20 Thread Larry Brown
It is most likely globals. Access the variables by... echo $_GET['fname']; or $_POST['fname']; if you are using post which it doesn't appear you do. Larry PS it is adviseable to leave globals alone in php.ini since it is set that way for security concerns. -Original Message- From: Kau

Re: [PHP] Please help me as fast as possible.. very important!!

2004-01-20 Thread Tom
Radwan Aladdin wrote: Hi all Is it possible in mySQL to put a timer that changes a value inside a row in a table every while? For example : Add "1" to the value very 10 minutes for example.. Field number = 5 after ten minutes = 6 after another 10 minuste = 7..Etc.. Is it possible?And how? Rega

RE: [PHP] Please help me as fast as possible.. very important!!

2004-01-20 Thread Chris Kay
http://www.unixgeeks.org/security/newbie/unix/cron-1.html Chris Kay (CK) Eleet Internet Services M: 0415 451 372 P: 02 4620 5076 F: 02 4620 7008 E: [EMAIL PROTECTED] -Original Message- From: Radwan Aladdin [mailto:[EMAIL PROTECTED] Sent: Tuesday, 20 January 2004 9:05 PM To: Nick JORDA

RE: [PHP] dreaded sessions

2004-01-20 Thread Angelo Zanetti
just out of interest sake why do you use INNODb? cant you use the normal (no transaction support) MySQL DB?? -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 2:04 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] dreaded sessions -BEGIN PGP S

RE: [PHP] Please help me as fast as possible.. very important!!

2004-01-20 Thread Angelo Zanetti
Im not sure about php but if you are desperate then you could also do it in VB with a timer control. -Original Message- From: Radwan Aladdin [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] Please help me as fast as possible.. very imp

Re: [PHP] Please help me as fast as possible.. very important!!

2004-01-20 Thread Mario
The only thing you need to know is that you enter a file in the cron dir (in /etc I think) and you have the following line in that file: 52 10 * * * /usr/bin/php /home/mainwebsite_html/file.php this line runs the file.php every day at 10.52 (min hour week month year) (php dir) (file location) - t

Re: [PHP] Variables not working!

2004-01-20 Thread Rory McKinley
On 19 Jan 2004 at 21:43, Kaushan wrote: > Hi, > > I am new to PHP scripting and struggling with the following problem. > > I have two files, an HTML file and a PHP file. > HTML file contains a form with one text field and a submit button. > When a user pressed the submit button, it calls the php

RE: [PHP] Please help me as fast as possible.. very important!![Scanned]

2004-01-20 Thread Michael Egan
http://www.google.com/linux?hl=en&lr=&ie=ISO-8859-1&q=cron+tutorials&btnG=Google+Search > -Original Message- > From: Radwan Aladdin [mailto:[EMAIL PROTECTED] > Sent: 20 January 2004 10:05 > To: Nick JORDAN > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Please help me as fast as possible.. ve

FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Vincent Jansen
I use header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header( "Content-type: application/x-excel" );

Re: [PHP] Please help me as fast as possible.. very important!!

2004-01-20 Thread Radwan Aladdin
Where can I fin tutorials about it? (CRON Tab)? Regards.. - Original Message - From: "Nick JORDAN" <[EMAIL PROTECTED]> To: "Radwan Aladdin Sent: Tuesday, January 20, 2004 1:56 PM Subject: Re: [PHP] Please help me as fast as possible.. very important!! > > Is it possible in mySQL to put

RE: [PHP] Please help me as fast as possible.. very important!![Scanned]

2004-01-20 Thread Michael Egan
I've never done it but I can only imagine you'd need to run some sort of CRON job to effect this at regular intervals. HTH, Michael Egan > -Original Message- > From: Radwan Aladdin [mailto:[EMAIL PROTECTED] > Sent: 20 January 2004 09:45 > To: [EMAIL PROTECTED] > Subject: [PHP] Please he

[PHP] Please help me as fast as possible.. very important!!

2004-01-20 Thread Radwan Aladdin
Hi all Is it possible in mySQL to put a timer that changes a value inside a row in a table every while? For example : Add "1" to the value very 10 minutes for example.. Field number = 5 after ten minutes = 6 after another 10 minuste = 7..Etc.. Is it possible?And how? Regards..

Re: [PHP] Syntax Error -> This is WEIRD!

2004-01-20 Thread Nick Wilson
* and then Dagfinn Reiersøl declared > >Yes your right, that?s exactly the problem. I didn?t even realize he was > >doing that. > > > >By including the PHP file via HTTP, you are including the OUTPUT of the PHP > >file, not the actual PHP file itself. > > > >e.g. > > > >by including a file wit

Re: [PHP] Regexp help (simple)

2004-01-20 Thread Dagfinn Reiersøl
[EMAIL PROTECTED] wrote: $string = 'ab12345-1'; if (preg_match('/^([a-zåäö]{2,3})([0-9]{4,5}(\-[0-9]{1,2}){0,1})$/i', $string, $m='')) { echo $m[1]; // -> ab echo $m[2]; // -> 12345-1 } g. martin luethi You can replace {0,1} with a question mark and [0-9] with \d (digit). Also, and I think

[PHP] Logon field & sessions help please

2004-01-20 Thread ian
I have problems with logon field of imp/horde. It always has '' in the field when the page is loaded for the user to logon. The user always has to remove this to enter their username. How can I stop this from appearing at the logon screen for the users. I have the default php.ini (ie nothing in

[PHP] PHP & QuickBooks Integration

2004-01-20 Thread Galen
I am looking into the possibilities of exporting data from QuickBooks into PHP for use with a SQL database. Getting data back into QuickBooks would be even better, some kind of integration. Anybody ever done this? Anyone even got any experience working with QuickBooks data, back and fourth? Al

Re: [PHP] connecting PHP to MS Access

2004-01-20 Thread Victor Spång Arthursson
Export the data you are interested in as comma separated file. Then use the LOAD DATA INFILE - command in mysql, via the terminal or phpmyadmin. From the manual: 13.1.5 LOAD DATA INFILE Syntax LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name.txt' [REPLACE | IGNORE] INTO

Re: [PHP] Regexp help (simple)

2004-01-20 Thread php
$string = 'ab12345-1'; if (preg_match('/^([a-zåäö]{2,3})([0-9]{4,5}(\-[0-9]{1,2}){0,1})$/i', $string, $m='')) { echo $m[1]; // -> ab echo $m[2]; // -> 12345-1 } g. martin luethi Tue, 20 Jan 2004 09:59:37 +0100 Victor Spång Arthursson <[EMAIL PROTECTED]>: > Hi! > > Anyone who could help m

[PHP] Regexp help (simple)

2004-01-20 Thread Victor Spång Arthursson
Hi! Anyone who could help me with this regexp problem? I want to verify that a string is made up of 2-3 letters, (a-z + åäö, A-Z + ÅÖÄ), directly followed by 4 or 5 digits, which could, but may not, be followed by a minus and one or two digits. Examples of valid strings: abc12345 ABC12345 abc

[PHP] How to make a timer inside the database?

2004-01-20 Thread Radwan Aladdin
Hi all Is it possible in mySQL to put a timer that changes a value inside a row in a table every while? For example : Add "1" to the value very 10 minutes for example.. Field number = 5 after ten minutes = 6 after another 10 minuste = 7..Etc.. Is it possible?And how? Regards..

<    1   2