Re: [PHP] header-sending misbehaving

2002-05-13 Thread 1LT John W. Holmes
> On Monday 13 May 2002 23:47, erich wrote: > > suppose i want to login to a privileged area sending header info to > > browser, however, i get header warning as follows when i go to a db system > > named eskuel: > > Warning: Cannot add header information - headers already sent by (output > > star

Re: [PHP] session problems...

2002-05-13 Thread 1LT John W. Holmes
In addition to what Kevin said: $_SESSION and $_session are not the same variables. Use quotes in your session_register(), too: session_register("u_name"), although you don't need session_register() at all, if you are using $_SESSION['u_name'] = "value"; syntax. ---John Holmes... > > Ok I thin

Re: [PHP] Combine 2 Db Columns with an Array?

2002-05-13 Thread 1LT John W. Holmes
So you are taking your results and putting it in an array, right? And you basically want to create two rows in your result array, for each row in the table? $result = mysql_query("SELECT Title, Alt_Title, Size, Price, More, Comment FROM table"); while($row = mysql_fetch_array($result)) { $Title

Re: [PHP] switch and register_globals.

2002-05-14 Thread 1LT John W. Holmes
You can use $_REQUEST['foo'] which looks at all Cookie, Post, and Get data. switch($_REQUEST['foo']) You may have to still wrap the whole thing around an isset(). if(isset($_REQUEST['foo'])) { switch($_REQUEST['foo']) ... ---John Holmes... - Original Message - From: "Gerard Samuel

Re: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-14 Thread 1LT John W. Holmes
From: "Stuart Dallas" <[EMAIL PROTECTED]> > Collins, Robert <[EMAIL PROTECTED]> wrote: > > Put something like this in the top of each of the pages that have > > common functions > > > > if(file_exists("/path/to/file/core_functions.php")){ > > $core_functions = "/path/to/fi

Re: [PHP] Getting all files in a directory

2002-05-14 Thread 1LT John W. Holmes
Yes. ---John Holmes... - Original Message - From: "notoriousvic_ca" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 12:04 PM Subject: [PHP] Getting all files in a directory > Is there anyway I can get all the file and directories in a specific > directory? > >

Re: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-14 Thread 1LT John W. Holmes
[snip] > That's exactly what you need :) Have some core functions that are remotely > accessed. > > for example: > > $result = file("http://www.myserver.com/functions/square_root.php?input=4";); > > Then at www.myserver.com the square_root.php file would contain: >echo sqrt($input); > ?> > > D

Re: [PHP] Genus who came up with "Self Destruct Code" & "Copy Pro tection"

2002-05-14 Thread 1LT John W. Holmes
- Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> > On Tue, 14 May 2002, Collins, Robert wrote: > > $core_functions = > > "http://www.domain.com/path/to/file/core_functions.php";; > > require_once($core_functions); > > 1) You'd have to eval() it rather than requi

Re: [PHP] Direction to file-upload ?

2002-05-14 Thread 1LT John W. Holmes
You can't do that. You have to provide a seperate box for each file. ---John Holmes... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 14, 2002 4:20 PM Subject: [PHP] Direction to file-upload ? Hi Folks, after studying and searching manual/arch

Re: [PHP] Session destroy/close

2002-05-15 Thread 1LT John W. Holmes
Look at the session manual page and maybe set a shorter time limit for the session cookie. If the user isn't going to click on the Logout link, then there's really nothing you can do until they close the browser (which will stop the session / delete cookie automatically). Maybe you can check for

Re: [PHP] HTTPS spoofing and $_SERVER

2002-05-15 Thread 1LT John W. Holmes
Well, if you fix #1, that will fix #2 because you can use $_SERVER["HTTPS"], which can't be spoofed by the user. What versions of PHP and Apache are you using, on what OS? ---John Holmes... - Original Message - From: "George Whiffen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wedn

Re: [PHP] shell command

2002-05-15 Thread 1LT John W. Holmes
Read the manual. www.php.net/exec among others... ---John Holmes... - Original Message - From: "Roman Duriancik" <[EMAIL PROTECTED]> To: "PHP-General" <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 9:30 AM Subject: [PHP] shell command > How to execute dos\winnt command in php sc

Re: [PHP] IF Statements

2002-05-15 Thread 1LT John W. Holmes
When in doubt, add in some carriage returns to space everything out to see if your braces match up. if ( ($this->checkReferralCB($this->benefitRef, $this->benefitNo, $this->childDOB)) && (!$this->checkLocation($this->post, "W")) && (!empty($this->child

Re: [PHP] counting max word length fails on line brake

2002-05-15 Thread 1LT John W. Holmes
You might want to look into wordwrap(), too www.php.net/wordwrap ---John Holmes... - Original Message - From: "Analysis & Solutions" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 10:42 AM Subject: Re: [PHP] counting max word length fails on line br

Re: [PHP] Using Sessions under Win98/Apache

2002-05-15 Thread 1LT John W. Holmes
You probably want to get 4.2, or 4.2.1 if it's out. How are you registering variables for the session? Is register_globals on or off in your php.ini. If it's off, you register a variables just by using $_SESSION["var"] = "value"; instead of using session_register("var"); $var = "value"; If regi

Re: [PHP] tag img and php

2002-05-15 Thread 1LT John W. Holmes
Yes, that does work, but the big question is if try_param.php is outputting an image? How are you doing it? Are you setting the appropriate headers()? ---John Holmes... - Original Message - From: "Maciej Przybycien" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 200

Re: [PHP] newbie: dynamically building associative arrays

2002-05-15 Thread 1LT John W. Holmes
Heh...you have to learn some SQL!! Try this query: SELECT term, count(*) AS cnt FROM table GROUP BY term; ---John Holmes... - Original Message - From: "ROBERT MCPEAK" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 2:16 PM Subject: [PHP] newbie: dynamically b

Re: [PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread 1LT John W. Holmes
Well, the robots we have in the Army are controlled by wireless neural networks run by tiny chips implanted into our brains while at basic training. This controls the army of robots hidden under the mountains of Colorado that actually do all of our typing for us... anyway... You need to get a li

Re: [PHP] php and servlets (fwd)

2002-05-15 Thread 1LT John W. Holmes
eems to come because I generate html and include > from Java servlets. > > If my ' is included in html file and I load that html the image appears on the > screen with no problem. > > Do I need any special php compilation or support for Java servlets? > > Thanks

Re: [PHP] php and servlets (fwd)

2002-05-15 Thread 1LT John W. Holmes
are you trying to do? ---John Holmes... - Original Message - From: "Maciej Przybycien" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 3:25 PM Subject: Re: [PHP] php and servlet

Re: [PHP] PHP Tag question

2002-05-15 Thread 1LT John W. Holmes
I believe he was talking about vs. not To: "Matthew Walker" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 4:49 PM Subject: Re: [PHP] PHP Tag question > You can tell that from the php.ini file look for: > > ; Allow the tags are > recognized. > short_open_tag = On

Re: [PHP] I'm doing something wrong....

2002-05-15 Thread 1LT John W. Holmes
There is no [0]...only ['one'] and ['two']... Look through the array functions, there may be a way to reassign the keys... ---John Holmes... - Original Message - From: "Robert Rothe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 4:35 PM Subject: [PHP] I'm doi

Re: [PHP] refresh (part of) a page?

2002-05-20 Thread 1LT John W. Holmes
You can't have any output before you call header. Something in main.php on line 41 is causing some output that breaks the header() call. Be sure you don't have any whitespace at the end of included files. ---John Holmes... - Original Message - From: "savaidis" <[EMAIL PROTECTED]> To: <[E

Re: [PHP] PHP & Excel

2002-05-20 Thread 1LT John W. Holmes
Can you just write out the formula to a cell? i.e. write the value "=SUM(C1:C5)" to a cell and see if it's evaluated? Just throwing things out... I would think that you wouldn't need formulas. Isn't that the idea of using PHP to create the Excel document? Have PHP compute the values of the "formu

Re: [PHP] PHP & Excel

2002-05-20 Thread 1LT John W. Holmes
> What if the user opens up the sheet and changes a number > after PHP creates it? Wouldn't you want formulas to > re-compute the sheet and keep it correct? :) Like I said, it depends on your case. When I create an Excel file, it's a "snapshot" of everything. If you need an updated speadsheet,

Re: [PHP] Secure eval();

2002-05-21 Thread 1LT John W. Holmes
You'll have to come up with a regular expression to check for bad characters. How complex are the equations? If they are like your example, you can just check that the equation doesn't have any letters and is only made up of [0-9+*-/()] characters. ---John Holmes... - Original Message -

Re: [PHP] Secure eval();

2002-05-21 Thread 1LT John W. Holmes
bad query, not some rogue code being executed. ---John Holmes... - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 10:17 AM S

Re: [PHP] smtp

2002-05-21 Thread 1LT John W. Holmes
- Original Message - From: "Steve Buehler" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 2:34 PM Subject: [PHP] smtp > I am trying to use the "smtp class" from phpguru.org with a mysql database > using PHP. My question is this. I understand that I can s

Re: [PHP] printer_open

2002-05-21 Thread 1LT John W. Holmes
Restart your web server when you make changes to php.ini. Also, note that these functions are for the printer on the server, i.e. where the code is running. ---John Holmes... - Original Message - From: "Sqlcoders.com Programming Dept" <[EMAIL PROTECTED]> To: "php general" <[EMAIL PROTEC

Re: [PHP] How to simultaneously send HTML *and* start download?

2002-05-21 Thread 1LT John W. Holmes
Use PHP to write a META-REFRESH to the file that's going to be downloaded, or a php file that controls the download. Basically, you show them an HTML page that says the download will begin, the META tag refreshes after X seconds to the actual file, and the download box pops up. ---John Holmes...

Re: [PHP] Re: Mcrypt: Blowfish or Twofish or no fish?

2002-05-21 Thread 1LT John W. Holmes
I imagine he would want to un-encrypt his files at some point and MD5 is a one-way method and not an encryption technique at all... ---John Holmes... - Original Message - From: "Javier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 4:43 PM Subject: [PHP] Re: Mcr

Re: [PHP] Whats Function like response.redirect

2002-05-22 Thread 1LT John W. Holmes
header("Location: http://www.detik.com";); www.php.net/header Read the manual page... ---John Holmes... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 21, 2002 5:12 AM Subject: [PHP] Whats Function like response.redirect > what function in P

Re: [PHP] voting using text files

2002-05-22 Thread 1LT John W. Holmes
Use file locking, so only one instance of the script is writing to the file at a time... www.php.net/flock ---John Holmes... - Original Message - From: "Nick Wilson" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 9:38 AM Subject: [PHP] voting usi

Re: [PHP] read from flatfile and convert

2002-05-22 Thread 1LT John W. Holmes
How is the text file organized? Is it one "testimonial" per line? or is there some other kind of seperator? This should be easy. Use file() to read in the file, then do an insert for each line. one little loop will load the whole file for you. how large of a file is it? ---John Holmes... -

Re: [PHP] Help .. deprecated messages

2002-05-22 Thread 1LT John W. Holmes
It's just a warning, not an error. It's probably always been there, but your error reporting was set to a level that didn't display it. Turn your error reporting level up in php.ini. it's set lower in PHP 4.1+ than it has been in the past. Best fix is to of course not use the mysql_db_query() fun

Re: [PHP] voting using text files

2002-05-22 Thread 1LT John W. Holmes
> A good structure would be to have one file for each possible answer and each > file contains the number of votes it has recieved. > Then: > --> Open file for the chosen option as read only > --> Read the value in the file > --> Close the file > --> Increase the value by one using ++ > --> Open t

Re: [PHP] session.save_path

2002-05-22 Thread 1LT John W. Holmes
You have to set the session.save_path to a path on your machine that PHP can write session files to. You can make a temp folder in your C: drive and then set the path to c:/temp or c:\\temp or create and set it to any other folder you want. Make sure (if you're using NTFS) that user IUSR_ has perm

Re: [PHP] Problem : track_vars stopped working.

2002-05-22 Thread 1LT John W. Holmes
Maybe you should read about what you're installing before you install it. Register_globals is off in PHP 4.1+ by default, so your variables aren't created. You can use $_GET["text"] to get the variable, though. Or you can turn on register_globals in your php.ini and face the security consequences

Re: [PHP] W2K SP2, PHP 4.2.1, IIS 5

2002-05-22 Thread 1LT John W. Holmes
> If all that fails, there's always: > Have you tried a hammer? I like the 369 rule. Drop it from 3 feet, if it still doesn't work, drop it from 6 feet, and if it still isn't working, drop it from 9 feet. If none of that works then trash it. WARNING: Don't use this rule for children. ---John Hol

Re: [PHP] fputs() pblm how write on a new line each time ?

2002-05-22 Thread 1LT John W. Holmes
Use \n for newline. \r\n for Windows. fputs($fp,"value\n"); ---John Holmes... - Original Message - From: "arnaud gonzales" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 3:56 PM Subject: [PHP] fputs() pblm how write on a new line each time ? > H

Re: [PHP] tmpfile() errors?

2002-05-22 Thread 1LT John W. Holmes
You're not even trying to open a file. You're trying to open a Resource, which makes me think that fopen() is being called twice or something. You obviously have something very wrong. Can you show the code around these lines where you're trying to open the file? All of the errors are because of t

Re: [PHP] Date/Time...

2002-05-23 Thread 1LT John W. Holmes
Really only a mysql issue. To get the number of days between now and the oldest row in the table, use this query SELECT TO_DAYS(NOW()) - TO_DAYS(MIN(date_column)) AS Num_Days FROM table; To erase all rows that are older than $X days, use this query: DELETE FROM table WHERE date_column < NOW()

Re: [PHP] php/mysql join query help

2002-05-23 Thread 1LT John W. Holmes
It's generally a bad idea to store delimited data in a single column in a database. It kind of goes against what a database is there for. A better layout would be to have your second table contain a row for each of the "delimited" values. So if you have '1,2,3,4' in your database now, the better

Re: [PHP] Array question - Please help

2002-05-23 Thread 1LT John W. Holmes
Write your results to a file and create a mail from the file once a day and send it to yourself with cron, or use a database to hold the results if one is available. Instead of making a mail message with your loop, write information back to the file. Format your file like this: url, pass, fail,

Re: [PHP] output problem

2002-05-23 Thread 1LT John W. Holmes
Don't do that, it's inefficient. You've got the right query, you just have to assign the column an alias to use it the way you are. SELECT COUNT(user) AS count_user FROM _request WHERE > date='$date' AND status = 'open' Then, after fetching the object from the result set, use $line->count_user

Re: [PHP] please help!!

2002-05-25 Thread 1LT John W. Holmes
> Saturday, May 25, 2002, 9:13:02 AM, you wrote: > > JN> Hi Hi, > > JN> php + apache + win2000 > JN> or > JN> php + IIS + win2000 > JN> I don't know why my setting do not allow me to POST or GET variable which submit in html > JN> Please help!!! > > JN> Jolly Turn on register_globals or use the

Re: [PHP] hosting

2002-05-25 Thread 1LT John W. Holmes
> anybody know of a hosting service that can be setup in a few minutes and i > mean a few minutes that's all i got I know of a great one...umm, just give me a few minutes to remember the name. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] 4.2.1 Vars

2002-05-25 Thread 1LT John W. Holmes
Do you know what the security problems are? Do you realise that having register_globals on or off isn't the security problem, it's how you write your code? If you're not going to change any of your code, just turn on register_globals. Changing your code to _POST or _GET and doing nothing else isn'

Re: [PHP] 4.2.1 Vars

2002-05-25 Thread 1LT John W. Holmes
ow where your variables are coming from. ---John Holmes... - Original Message ----- From: "Kurth Bemis (List Monkey)" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, May 25, 2002 4:07 PM Subject: Re: [PHP]

Re: [PHP] NewBie-UPLOADING IMAGE

2002-05-25 Thread 1LT John W. Holmes
Try the RTFM() function. It will do exactly what you want. http://www.php.net/manual/en/features.file-upload.php ---John Homes... - Original Message - From: "Dani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 25, 2002 6:57 PM Subject: [PHP] NewBie-UPLOADING IMAGE >

Re: [PHP] UPLOADING IMAGE

2002-05-25 Thread 1LT John W. Holmes
Give a destination file name, not just the directory. You don't have to unlink($file), it's done automatically when the script ends. ---John Holmes... - Original Message - From: "Dani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 25, 2002 7:58 PM Subject: [PHP] UPLOADI

Re: [PHP] UPLOADING IMAGE

2002-05-25 Thread 1LT John W. Holmes
. ---John Holmes... - Original Message - From: "Dani" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, May 25, 2002 8:24 PM Subject: Re: [PHP] UPLOADING IMAGE > I have tried to use the filename bu

Re: [PHP] onchange read file, php & JS

2002-05-28 Thread 1LT John W. Holmes
You have to put the variable into a hidden form element or tack it onto a URL in order to pass it to the PHP page. ---John Holmes... - Original Message - From: "Mihaela Dupret" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 6:51 AM Subject: [PHP] onchange read fi

Re: [PHP] function return

2002-05-28 Thread 1LT John W. Holmes
Return an array function whatever($var1, $var2) { // do whatever $ret[0] = $var1 + $var2; $ret[1] = $var1 - $var2; $ret['something'] = ($var1/$var2) * 100; return $ret; } $value = whatever(5,4); echo $value[0]; echo $value['something']; ---John Holmes... - Original Message -

Re: [PHP] Dates

2002-05-28 Thread 1LT John W. Holmes
PHP way: Use strtotime() to get a unix timestamp for each one. subtract smaller from larger and divide by number of seconds in a day. MySQL way: I assume these dates come from a database. Use a query like this: SELECT TO_DAYS(column_one) - TO_DAYS(column_two) AS Difference FROM table WHERE ...

Re: [PHP] 'ucfirst' function for text area strings?

2002-05-28 Thread 1LT John W. Holmes
Put a text box for each sentence. ---John Holmes... - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 2:19 PM Subject: Re: [PHP] 'ucfirst' function for text area strings? > On Tue, 28 May 2002, Andre Dubuc wrote: > > Is the

Re: [PHP] PHP doubt

2002-05-29 Thread 1LT John W. Holmes
> // connected to the database successfully and running this query: > { > mysql_query.etc > $r=select max(cno)+1 from customer; > insert into customer values($r,'$name'); > } > print("Your customer number is: $r"); > > what do you think? And will this return the correct values if 2 people

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread 1LT John W. Holmes
Look for errors in the line above this one. PHP doesn't know what SQL is...it's just a string to PHP. ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 9:03 AM Subject: [PHP] Parse Error(newbie) I get a par

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread 1LT John W. Holmes
If you name the form elements as arrays, then yeah, they are pretty much the same. One Two Three When submitted, $foo will be an array containing the values that were checked. If a box was not checked, it won't have any value in the array. i.e. If you check One and Three, then you'll have a $fo

Re: [PHP] Advantages of php

2002-05-29 Thread 1LT John W. Holmes
Hmm...point number 1 would be time management, for you! Maybe you should've started researching this more than a day before hand. As far as POST vs. GET, there's hardly a difference. POST data is sent in the headers, GET data is sent in the URL. Either one can easily be "created" by the user, so

Re: [PHP] HTML Checkboxes and PHP variables

2002-05-29 Thread 1LT John W. Holmes
What version of PHP are you using? Is register_globals on or off? Try $_GET['foo'] as the array name, instead of $foo, or $_POST['foo'], depending on the method of your form. ---John Holmes... - Original Message - From: "Michael Hall" <[EMAIL PROTECTED]&

Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread 1LT John W. Holmes
Not really. You still pass variables through GET, POST, or COOKIE data. How you access the value is different based on your configuration and the PHP version. It's different for different versions of PHP4, too. Do you have a specific question or problem? ---John Holmes... - Original Message

Re: [PHP] php3 / php4 vars - Submitted form doesn't work

2002-05-29 Thread 1LT John W. Holmes
that contains the user input. This is probably how you were doing it before. With a new installation of PHP4, register_globals defaults to off, however. ---John Holmes... - Original Message - From: "Nicolas Costes" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[E

Re: [PHP] mail() function

2002-05-29 Thread 1LT John W. Holmes
Yes. - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 10:57 AM Subject: [PHP] mail() function > I want to write a simple script that sends an e-mail message using PHP. > > I'm assuming that my web-host has the mai

Re: [PHP] How to create this login page in a good way?

2002-05-29 Thread 1LT John W. Holmes
Hello, > Hello! > > I'm sitting here trying to create a loginpage, but it doesn't look very > nice. So now I'ld use some help to decide whether the following solution > is possible to create... > > I want to create a little script which will be included on every page > and do the following: > > 1

Re: [PHP] xcopy inside of exec()

2002-05-29 Thread 1LT John W. Holmes
Try escaping your backslashes. exec('cmd /c xcopy c:\\source c:\\target'); ---John Holmes... - Original Message - From: "Adrian Christen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 29, 2002 12:11 PM Subject: [PHP] xcopy inside of exec() > Hi! > > I'm traying tu us

Re: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread 1LT John W. Holmes
You can't send anything to the browser before you send a header or cookie. Apparently, lagi.php has sent something, though, on line 4. Fix that and you will be fine. ---John Holmes... - Original Message - From: "Anton Heryato" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, M

Re: [PHP] ******************* Secure product download *******************

2002-05-29 Thread 1LT John W. Holmes
session_start(); if(!isset($_SESSION["did_pay"])) { header("Location: http://www.example.com/pay_first.php";); } //show download code Obviously you set $_SESSION['did_pay'] to a value once they, umm, pay. ---John Holmes... - Original Message - From: "Ron Stagg" <[EMAIL PROTECTED]> T

Re: [PHP] Warning: Cannot add header information - headers already sent by

2002-05-29 Thread 1LT John W. Holmes
> 1::PHp > 2: > 3:hahahahha Maybe it's just me, but those 3 lines look like they are sending something to the browser > so, which one in line 4 have send anything first > please help me to fixed > > regards > anton ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] ******************* Secure product download *******************

2002-05-29 Thread 1LT John W. Holmes
Ummno they can't. pay_first.php is what you send them to if they don't have a correct session. If the session is correct, show the download page. Notice the ! in front of isset(). ---John Holmes... - Original Message - From: "Ron Stagg" <[EMAIL PROTECTED]&g

Re: [PHP] Month Values in UNIX timestamps and workaround(Newbie)

2002-05-30 Thread 1LT John W. Holmes
What are you trying to accomplish over all? ---John Holmes... - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 11:37 PM Subject: [PHP] Month Values in UNIX timestamps and workaround(Newbie) I began to write a function that c

Re: [PHP] fdup & Pipes?

2002-05-30 Thread 1LT John W. Holmes
> Yes, I realized this after I sent my reply. > > And, please try hard to forgive those of us who do not use the > "real" software approved by you & the other gods. We beg your > forgiveness, oh lord. You are forgiven, my child. ---John Holmes... > > > -Original Message- > > From: Ra

Re: [PHP] Posting to a form - When user hits BACK button all the data isgone

2002-05-30 Thread 1LT John W. Holmes
One way is to use a GET method instead of POST. ---John Holmes... - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 2:43 PM Subject: [PHP] Posting to a form - When user hits BACK button all the data isgone > When a use

Re: [PHP] Help with example session class (second request)

2002-05-30 Thread 1LT John W. Holmes
Call session_start() on your second page... ---John Holmes... - Original Message - From: "Daevid Vincent" <[EMAIL PROTECTED]> To: "PHP general mailing list" <[EMAIL PROTECTED]> Sent: Thursday, May 30, 2002 3:10 PM Subject: [PHP] Help with example session class (second request) > Sorry

Re: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread 1LT John W. Holmes
You can use $_SERVER['QUERY_STRING'] if register_globals is off. ---John Holmes... - Original Message - From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]> To: "'1LT John W. Holmes'" <[EMAIL PROTECTED]>; "Igor Portnoy" <

Re: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread 1LT John W. Holmes
You probably still have register globals off still and your URL variables aren't being accessed correctly. Use $_GET['page'] or $HTTP_GET_VARS['page'], or turn on register_globals... ---John Holmes... - Original Message - From: "Igor Portnoy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>;

Re: [PHP] Problem running script after installing PHP 4.2.1

2002-05-30 Thread 1LT John W. Holmes
run just fine on the latest PHP as far as accessing GET, POST, COOKIE, etc data is concerned. Hope that helps. Let me know if there are any other questions. ---John Holmes... - Original Message - From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]> To: "'1LT

Re: [PHP] PHP Decisions and Issues

2002-05-31 Thread 1LT John W. Holmes
Start doing some research and testing. Can PHP and MySQL do that? Sure. Are there better solutions? Sure. Too many factors go into decisions like this that's it not a simple email question and answer. For one, MySQL only supports transactions if you use InnoDB tables. How reliable are they? I don

Re: [PHP] Previous & Next Navigation

2002-06-03 Thread 1LT John W. Holmes
So you think it's more efficient and faster to load a 3 - 5 thousand row table into an array in memory and pass that around to all of your scripts (through sessions?), rather than just passing a $page variable and doing a query to return 30 rows on each page?? If you pass a $Page variable, you ca

Re: [PHP] Previous & Next Navigation

2002-06-03 Thread 1LT John W. Holmes
Okay...glad to see someone put some thought into it instead of just wanting to do it because "queries are bad!". Also, the speed of the query doesn't depend on the connection speed at all. So, to solve your problem, load it into a session array. session_start(); $result = mysql_query("..."); whi

<    1   2   3   4   5   6