[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..

[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

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 me with

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

[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?

[PHP] Logon field sessions help please

2004-01-20 Thread ian
I have problems with logon field of imp/horde. It always has 'USE_SESSION_ID' 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

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

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 with the following

[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] 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 help

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 raladin [EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 1:56 PM Subject: Re: [PHP] Please help me as fast as possible.. very important!! Is it

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 ); header(

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

2004-01-20 Thread Michael Egan
http://www.google.com/linux?hl=enlr=ie=ISO-8859-1q=cron+tutorialsbtnG=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.. very

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 file

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) -

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

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

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

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?

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:

[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 -

[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 users

[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 : ?php $link = mysql_connect(localhost, Database username, Database password) or die(Could not connect: . mysql_error());

[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 is

[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 : ?php $link = mysql_connect(localhost, Database username,

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

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, 2004

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:

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
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 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]

[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

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

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 track

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

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

[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] 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

[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

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 figure

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=whateverdummy=f.csv Olwen - Sal Williams wrote: Name it for example something.csv The in your

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: [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 that

[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 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 mechanism. What I

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(Pragma:

[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

[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

[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

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 that not

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. Now, if

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 into the

[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] 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

[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 --

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

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 --

[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

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 database. The

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 without

[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. Only

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 Flash with

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 ?php ? ? 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

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

[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 Mike Migurski
But I guess you can't write the tag and just do a PARAM NAME=movie 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

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 objects

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 ? php stuff? something

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

2004-01-20 Thread craig
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.

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

2004-01-20 Thread CPT John W. Holmes
From: Ryan A [EMAIL PROTECTED] 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

RE: [PHP] $_SESSION

2004-01-20 Thread Alex Hogan
Yeah..., I tried that. I got back an error that read; Warning: session_start(): Cannot send session cookie - headers already sent by Warning: session_start(): Cannot send session cache limiter - headers already sent. -Original Message- From: Aaron Wolski [mailto:[EMAIL

RE: [PHP] $_SESSION

2004-01-20 Thread Aaron Wolski
You have to put it at the top of the page prior to anything else. ?php session_start(); //proceed with other code ? -Original Message- From: Alex Hogan [mailto:[EMAIL PROTECTED] Sent: January 20, 2004 1:45 PM To: 'PHP General list' Subject: RE: [PHP] $_SESSION

Re: [PHP] $_SESSION

2004-01-20 Thread Ben Ramsey
Alex Hogan wrote: I got back an error that read; Warning: session_start(): Cannot send session cookie - headers already sent by Warning: session_start(): Cannot send session cache limiter - headers already sent. You need to use session_start() before any headers are written. -Ben -- PHP

RE: [PHP] $_SESSION

2004-01-20 Thread Alex Hogan
Oopps, my bad. sorry. That worked like a champ... Thanks..., I'll sulk off now... -Original Message- From: Aaron Wolski [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 20, 2004 12:46 PM To: 'Alex Hogan'; 'PHP General list' Subject: RE: [PHP] $_SESSION You have to

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

2004-01-20 Thread Ryan A
Hey, Now, that being said, there was a discussion on here a while ago that you don't _really_ have to close PHP mode at the end of your file and there were certain pros and cons to doing so. Adapt to your needs. Sounds like I missed a good discussion because I was awayany idea of what the

RE: [PHP] $_SESSION

2004-01-20 Thread Ryan A
Hey, Make sure its right on top of the pagejust at the start of your ?php before even calling a include or require etc HTH. -Ryan On 1/20/2004 7:44:31 PM, [EMAIL PROTECTED] wrote: Yeah..., I tried that. I got back an error that read; Warning: session_start(): Cannot send session cookie

[PHP] URL translation like mod_rewrite

2004-01-20 Thread Denzil Kruse
Hi all, My hosting company won't let me use rewrite rules in my Apache configuration files, and told me to use the php header() functions and a .htaccess file instead of the rewrite rules. I don't know php and I'm looking over some php help files right now, but I found this list and was

Re: [PHP] URL translation like mod_rewrite

2004-01-20 Thread Chris Shiflett
--- Denzil Kruse [EMAIL PROTECTED] wrote: My hosting company won't let me use rewrite rules in my Apache configuration files, and told me to use the php header() functions and a .htaccess file instead of the rewrite rules. [snip] What I want to do is have a visitor to my web site enter a

Re: [PHP] connecting PHP to MS Access

2004-01-20 Thread Tim Thorburn
Actually I found an even better program on mysql.com called MyDbConverter - converted the Access database into MySQL in a whole wopping second - now just needs a little cleanup and I can put it into the new table I've already created. Thanks for all the help -Tim At 09:34 AM 1/20/2004, Brian V

[PHP] What a difference a / makes!

2004-01-20 Thread Freedomware
I have a relatively trivial problem that's driving me up a wall. I've tracked it down to a specific character - / - , and I still can't solve it! I think it's a relatively simple problem, though my explanation is a bit lengthy. I'm working on a site with pages for each of the 50 states that

[PHP] Re: connecting PHP to MS Access

2004-01-20 Thread Ben Ramsey
Sounds to me like you have everything pretty much figured out now, but no one has yet mentioned the ODBC functions built into PHP, so I thought I'd throw that out as a way to actually connect to and retrieve data from a MS Access database. Just set up a DSN and connect to it. The ODBC

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

2004-01-20 Thread John Nichel
Ryan A wrote: snip Do I have to start and end the included files with ?php ? ? Yes. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SESSION

2004-01-20 Thread John Nichel
Alex Hogan wrote: 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;

[PHP] [Article] Writing Efficient PHP...

2004-01-20 Thread Ralph Guzman
In the past I've read emails of people looking for php programming tips and better practice advice. Here is a good article I came across on writing efficient php code: http://www-106.ibm.com/developerworks/edu/wa-dw-waeffphp-i.html -- PHP General Mailing List (http://www.php.net/) To

[PHP] authentication problems!

2004-01-20 Thread Scott Taylor
I am about at my wits end trying to find a good solution to this problem. I've asked various portions of this question to this mail list and still have not found exactly what it is I am looking for, but here it goes. I'm looking for a way to protect my files (this would be pdf files, image

[PHP] Online Testing package using PHP and MySQL

2004-01-20 Thread Pushpinder Singh
hello all, I am trying to develop an online testing module using PHp and MySQl on a Mac Platform. The module will need to have users authenticated before they can take the test. After that the system should take care of storing the scores of the users intp MySQL..Since I currently use

Re: [PHP] [Article] Writing Efficient PHP...

2004-01-20 Thread Chris Shiflett
--- Ralph Guzman [EMAIL PROTECTED] wrote: http://www-106.ibm.com/developerworks/edu/wa-dw-waeffphp-i.html That was great. My favorite quotes from the article: Register for this tutorial You will need JavaScript enabled on your browser. Actually, I'm sure it's a fine article, but I couldn't

Re: [PHP] What a difference a / makes!

2004-01-20 Thread robert
Look at the one for yt and one for Alaska. If there is a difference in the code in 1 place that is probably why it IS working on the yt page. That's where I would start. Then I would put in an alias in my web configuration to point css /home/web/css or whatever so that you can go : echo

RE: [PHP] [Article] Writing Efficient PHP...

2004-01-20 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Tuesday, January 20, 2004 12:54 PM said: That was great. My favorite quotes from the article: Register for this tutorial Bummer. I was looking forward to reading it. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Flash-PHP Socket Connection

2004-01-20 Thread Eric Bolikowski
Hi everybody I'm working on a site that will be based on Flash, PHP and MySQL. PHP will work as a middleware for Flash and MySQL. My problem is communication between Flash and PHP. I'm really out looking for using the socket functions in PHP and Flash to make fast connection. I have googled for

[PHP] hello to making the php pages

2004-01-20 Thread Chris W. Parker
hello you, i am here to ask of help from the mailing list. i have PHP Codes like this kind: echo Welcome to my homepage Mom. See my brand new wife!: I have problem with PHP Codes from above. Where to fix Codes? :P Sorry I couldn't resist!!! -- PHP General Mailing

FW: [PHP] Flash-PHP Socket Connection

2004-01-20 Thread Donald Tyler
We use XMLRPC to communicate between flash PHP. I presume it can be coupled with sockets if you should need a permanent connection as well. It has worked perfectly for pretty much anything we throw at it (It allows you to send any PHP or Action script native data type, e.g. arrays, Booleans,

[PHP] inserting info from a query string into sql

2004-01-20 Thread mayo
PROBLEM I'm trying to insert information from a query string into sql. I have a table with content. The column headers have up and down arrows allowing the user to sort and order by that column. PHP I have default settings set for the variables. If I change the default values the SQL results

Re: [PHP] Flash-PHP Socket Connection

2004-01-20 Thread Eric Bolikowski
Hi Donald Can i get a link to that site? I'm just a little bit confused about this thing about socket communication. Why is there not any resources on using Flash XMLSocket() and PHP fsockopen() ? There should be some kind of resource on this. I have recently searched all over Macromedia, not

Re: [PHP] [Article] Writing Efficient PHP...

2004-01-20 Thread Luke
Well if you do want to read it, i logged in and uploaded the PDF versions of the tutorial to my webserver, so take a look PDF (A4) http://www.zeyus.com/phptutorial/wa-effphp-a4.pdf PDF (Letter) http://www.zeyus.com/phptutorial/wa-effphp-ltr.pdf Hope you find it useful! Luke Chris W. Parker

[PHP] Re: inserting info from a query string into sql

2004-01-20 Thread Eric Bolikowski
It doesn't seem that you have declared the vars $reorder and $order, so that will make a bad query. Mayo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PROBLEM I'm trying to insert information from a query string into sql. I have a table with content. The column headers have up

[PHP] generate drop down list from DB and display info on new page base d on selection

2004-01-20 Thread Montagna, Dan
Hello, I'm new to php/mysql and have been looking for help on this for a little while. I've searched around a bit but can't find anything close enough to what I'm talking about here. I want to create a drop down list from a mysql db table (I know how to create and populate the table) that

Re: [PHP] What a difference a / makes!

2004-01-20 Thread Freedomware
Robert wrote: I personally use print link href=\/css/continentcode/$myregion.css\ rel=\stylesheet\ type=\text/css\ for things like that, no having to join the information together, the server does the work for me. Thanks for the tip. (My errands were cancelled, so I'm still here!) Isn't

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
Flash has the ability to read in text files, so you could use PHP to output data in the correct format and use Flash to read the PHP script like it reads a text file. We did this in ASP once upon a time. Here's a tutorial about reading text files into Flash:

Re: [PHP] authentication problems!

2004-01-20 Thread Scott Taylor
by using HTML I meant, typing the address in to the broswer as http://username:[EMAIL PROTECTED]/protected/file.pdf or as using the HTML: a href=http://username:[EMAIL PROTECTED]/protected/file.pdfLink.../a or using the header: header(Location: http://username:[EMAIL

  1   2   >