[PHP] Antwort: Re: [PHP] How can MD5 HAsh be passed to db as pwd? was a Re: [PHP] SecuringPHP code

2003-06-27 Thread SLanger
Set the column type of password to be a char(32). Then, pass the password through md5 to mysql to store it. To verify it, pass the password through md5 then compare it to what's in the database. This is true for your own authentication but I mean how to connect to the database using md5.

[PHP] PHP Programmer Needed!

2003-06-27 Thread Erica Ziegler-Roberts
I am swamped with work and need a php expert who is familiar with IC-Radius to do the following project for me. If it can be done by Monday, I will be willing to pay more. You must be able to accept payment through Paypal, Yahoo Paydirect, or Check/Money Order. Project details are below. This is

Re: [PHP] Sessions Question

2003-06-27 Thread Bob Irwin
Oops. Forgot to remove the Re: - it was a new thread - I just replied to an old message to get the php list email address then managed to stuff the subject up. Thanks for the help though! Best Regards Bob Irwin *** Email [EMAIL PROTECTED] for speedy email response *** - Original Message

[PHP] Re: Cookoo clock

2003-06-27 Thread azero
Sparky Kopetzky [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am in New Mexico and my php system is telling via date() that my timezone is BST (British standard time) and not MST (Mountain Standard Time). Any clue as to why it's doing this?? Or maybe there is wrong time zone

[PHP] Setting focus on a textfield

2003-06-27 Thread Angelo Zanetti
Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts? TIA

Re: [PHP] Setting focus on a textfield

2003-06-27 Thread Jason k Larson
This hardly belongs on the PHP list ... but try looking into JavaScript focus(). -- Jason k Larson Angelo Zanetti wrote: Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts? TIA -- PHP General Mailing List (http://www.php.net/) To

[PHP] Differences between classes on Linux and Windows ????

2003-06-27 Thread Dave Holmes
Guys, Hope you can help, we are just porting one of our sites from Windows to Linux and we are coming up with a few funny problems with classes under Linux. This is code which works perfectly on the Windows version of PHP, we are running version 4.3.2 of PHP on both servers. This is an example

[PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread PHPSpooky
Glory! Warning: Cannot modify header information - headers already sent by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in /home/unbreaka/public_html/mjs/global.inc.php on line 531 This is the error i'm getting.. when i upload the files on the internet server and run it

RE: [PHP] Strange output issue

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: John Luxford [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 18:15 Thanks for the info. The problem is that I'm trying to output an M3U file to stream a series of MP3s, and some players won't properly parse the output due to the first line containing that

[PHP] unexpected return from $_POST['foo']

2003-06-27 Thread Kyle W. Cartmell
Given a page containing a form which posts data to another page... HTML BODY Please enter a string.BR FORM method=post action=nextpage.php INPUT type=text name=wakka INPUT type=submit name=submit /FORM /BODY /HTML And a page which accepts this data... HTML BODY ?PHP echo

[PHP] Re: Regex Help with - ?

2003-06-27 Thread sven
looks like id3v2 ;-) how about this: $string = [TIT2] ABC [TPE1] GHI [TALB] XYZ; $pattern = /\[TIT2\]([^]*)/; // matches anything exept ''; till '' or end of string preg_match($pattern, $string, $match); var_export($match); hint to your regex: either use quantifier '*' (0-n times) OR '?' (0-1

[PHP] Re: unexpected return from $_POST['foo']

2003-06-27 Thread sven
strange. look into the sourcecode of your output-page, whether there is more information (html-tags, i.e.). and try var_export($_POST); instead of you echo to see what information come with post. maybe it's your server/php config. your code works for me. ciao SVEN Kyle W. Cartmell [EMAIL

[PHP] Problem with compile with png

2003-06-27 Thread Bc. Radek Kreja
Hello, i can upgrade php from 4.3.1 to 4.3.2. I try to configure with the same command: ./configure --with-apxs=/usr/local/httpd/bin/apxs --enable-safe-mode --enable-bcmath --enable-calendar --enable-dbase --enable-ftp --with-gd --enable-gd-native-ttf --with-jpeg-dir=/usr/local/

RE: [PHP] Impossible bug! (fwd)

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: John Wulff [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 22:14 Hmph, just not quite doing the trick... If you'd be so kind here is the complete source to give you a little bigger picture. As you can probably see the point of the script is to generate a

Re: [PHP] Antwort: Re: [PHP] How can MD5 HAsh be passed to db as pwd? was a Re: [PHP] Securing PHP code

2003-06-27 Thread Jason Wong
On Friday 27 June 2003 15:01, [EMAIL PROTECTED] wrote: This is true for your own authentication but I mean how to connect to the database using md5. You can't. However starting with MySQL 4 you can connect using SSL encryption, but that would only be of significance if connection is remote.

RE: [PHP] unexpected return from $_POST['foo']

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Kyle W. Cartmell [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 09:51 If I type blueberry_muffins into the text field and click submit, the resulting output is as follows... blueberry_muffinswakka=blueberry_muffins However the output I expected was, of

[PHP] Re: unexpected return from $_POST['foo']

2003-06-27 Thread Kyle W. Cartmell
When I var_export, I get the following information... array ( 'wakka' = 'blueberry_muffinswakka=blueberry_muffins', ). There is no further useful information in the HTML code at all. It's pretty empty in there. I've been studying my configuration, but to no avail at this point. I'm not sure

Re: [PHP] unexpected return from $_POST['foo']

2003-06-27 Thread Kyle W. Cartmell
You all rule. Such fast answers. I might have to hang out here more often. :) Thanks so much!! Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original Message- From: Kyle W. Cartmell [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 09:51 If I type

RE: [PHP] Sessions Question

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Bob Irwin [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 08:01 Oops. Forgot to remove the Re: - it was a new thread - I just replied to an old message to get the php list email address That's exactly what you shouldn't do. Most newsreaders, and some

Re: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jason Wong
On Friday 27 June 2003 16:01, PHPSpooky wrote: Warning: Cannot modify header information - headers already sent by Search the archives for causes and resolutions. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet

[PHP] Classes within classes

2003-06-27 Thread Dave Alger
Hiya, It would be useful for me to be able to use a class within another class and I don't know if that's permissable in PHP. Here's an example of what I'm trying to do. Is it just simply not permitted or am I going about it the wrong way? Thanks in advance for any help, Dave Code follows:

[PHP] Serving files with different filename from their own

2003-06-27 Thread Jason End
Is there a way to serve files with a different file name than they actually have? Here's my situation: Users can upload software manuals, which are then saved with a unique name. Their title, filename, type and id are then save into a db. But when they go to download a file, they'll of course

[PHP] [] operator not supported for strings

2003-06-27 Thread Andrew McCombe
Hi Can anyone tell me why i'm getting this error? Fatal error: [] operator not supported for strings in c:\inetpub\wwwroot\Iweb-sites\Exp\menu2.php on line 41 [code]: $rst2=sql_call(SELECT * FROM tmenu WHERE parent=.$r['id']); // now have array of corporate, entertainment and identity for

Re: [PHP] Setting focus on a textfield

2003-06-27 Thread Ernest E Vogelsinger
At 09:42 20.03.2003, Angelo Zanetti said: [snip] Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts? TIA [snip] This is done with a JavaScript OnLoad

Re: [PHP] Serving files with different filename from their own

2003-06-27 Thread Jason Wong
On Friday 27 June 2003 18:11, Jason End wrote: Is there a way to serve files with a different file name than they actually have? Here's my situation: Users can upload software manuals, which are then saved with a unique name. Their title, filename, type and id are then save into a db. But

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread PHPSpooky
Glory! I've already searched through the Archives and I got many results.. I read through each one of those but I can't correct my problem even so. I'm using a simple function to login to the Admin section of a site-index program.. using this function in a long and exhaustive 'global.inc' php

RE: [PHP] [] operator not supported for strings

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Andrew McCombe [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 11:18 Can anyone tell me why i'm getting this error? Fatal error: [] operator not supported for strings in c:\inetpub\wwwroot\Iweb-sites\Exp\menu2.php on line 41 [code]:

Re: [PHP] Binary data 65 kb have then as file: 536 KB ??? fwrite..

2003-06-27 Thread Marek Kilimajer
1. Check if the table column is large enough to store the image 2. fflush($FILEID); just before fclosing it. Gerhard Knapp wrote: hi, perhaps someone can help me ... i store jpgs in a database, then i read them out and write them to a tempfile, the sizeinformation says, the binary blob = 65.535

[PHP] print array

2003-06-27 Thread Dore van Hoorn
First of all, I'd like to thank you all very much for helping me with my arra-problem, array_count_values is exactly what i was looking for and it is working perfectly! But.. print_r(array_count_values($array)) gives something looking like this: Array([computer] = 2 [harddrive] = 1 [crash] = 1)

Re: [PHP] print array

2003-06-27 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 27 Jun 2003 at 12:10, lines prefixed by '' were originally written by you. I would off course like it even better when i was able to print to the values (word and number) in an HTML table structure, or each new word on a new line

Re: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jason Wong
On Friday 27 June 2003 18:33, PHPSpooky wrote: Secondly, why is it it's giving me the 'cannot modify headers' problem on the internet server, but not on my computer? Obviously there is a difference in the configuration of the two servers. 1) Check the actual output returned to the browser

Re: [PHP] PHP Certification

2003-06-27 Thread Oscar F
Hello all, Thanks for the answers and opinions. If you all put it that way, it really seems like certifications are just another way for big companies to make money :) I was not looking for a PHP one as an option to replace experience, in fact I've been working with PHP for about 3 years now

Re: [PHP] Setting focus on a textfield

2003-06-27 Thread Marek Kilimajer
A little corection Ernest E Vogelsinger wrote: At 09:42 20.03.2003, Angelo Zanetti said: [snip] Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts? TIA [snip]

RE: [PHP] Calling PHP from Java usign CGI...

2003-06-27 Thread Jay Blanchard
[snip] Has anyone been able to call php from a servlet (JAVA) using CGI interface? I am trying to do that here, and everything seems to work without problems, except that no data returns from the execution of my scripts. Any idea what could be happening? Is there information on how to

RE: [PHP] Re: Seraching for good Hotel room booking program.....

2003-06-27 Thread Jay Blanchard
[snip] Sorry, i try again... Hello, i am serching for a good program (PHP) that i can use for a hotel and apartments booking and billing system. do you know some? thank you very much in advance, Giulio [/snip] Google is your friend ...

RE: [PHP] PHP Certification

2003-06-27 Thread Jay Blanchard
[snip] 3. Ok, I forgot the third reason... Someone will make lots of money selling training materials and administering the tests. Did you really think Microsoft got into this side of the business just to improve the quality of technical consulting. [/snip] Perhaps we could band together and

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread PHPSpooky
Glory, On the internet server, apart from the beginning tables html, this is what I get .. bWarning/b: Cannot modify header information - headers already sent by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in b/home/unbreaka/public_html/mjs/global.inc.php/b on line

[PHP] mssql_num_rows problem

2003-06-27 Thread Gary Ogilvie
Hello everyone, I am trying to grab some data from a table in a database. Here is the code I am using: $myServer = 192.92.0.248; $myUsername = Admin; $myPassword = bluefish; $myDB = COMPANY; $myUser = $_GET['user']; $myPass = $_GET['pass']; #print ($myUserbr$myPass); $s =

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jay Blanchard
[snip] On the internet server, apart from the beginning tables html, this is what I get .. bWarning/b: Cannot modify header information - headers already sent by (output started at /home/unbreaka/public_html/mjs/directory.php:3) in b/home/unbreaka/public_html/mjs/global.inc.php/b on line

Re: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Marek Kilimajer
Simly go to mjs/directory.php, line 3, and remove any output that is there, mosty likely some white characters. PHPSpooky wrote: Glory, On the internet server, apart from the beginning tables html, this is what I get .. bWarning/b: Cannot modify header information - headers already sent by

RE: [PHP] mssql_num_rows problem

2003-06-27 Thread Jay Blanchard
[snip] $numRows = mssql_num_rows($result); print ($numRows); [/snip] A. print($query); //to make sure it is correct, double check 2. print($numRows); // no quotes, again to test HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mssql_num_rows problem (Solved)

2003-06-27 Thread Gary Ogilvie
Thanks a lot Jay It seems that when a password type of form is used then you must send the password variable to the database instead of the user...Strange but it works !! -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 13:45 To: Gary Ogilvie; PHP

[PHP] Just a small question on if statement

2003-06-27 Thread Gary Ogilvie
Hi everyone, I want to make an if statement that works only if the 2 conditions are correct It starts as: If ($myUser == $myReturnedUser) But I want to add another so that the if statement runs only if $myUser is equal to $myReturnedUser AND $myPass is equal to $myReturnedPass. How do I do

Re: [PHP] Just a small question on if statement

2003-06-27 Thread Adam Voigt
if($myUser == $myReturnedUser $myPass == $myReturnedPass) { } On Fri, 2003-06-27 at 08:51, Gary Ogilvie wrote: Hi everyone, I want to make an if statement that works only if the 2 conditions are correct It starts as: If ($myUser == $myReturnedUser) But I want to add another so

RE: [PHP] Just a small question on if statement

2003-06-27 Thread Jay Blanchard
[snip] It starts as: If ($myUser == $myReturnedUser) But I want to add another so that the if statement runs only if $myUser is equal to $myReturnedUser AND $myPass is equal to $myReturnedPass. How do I do this? [/snip] if(($myUser == $myReturnedUser) ($myPass == $myReturnedPass)){ do

RE: [PHP] Just a small question on if statement - Solved

2003-06-27 Thread Gary Ogilvie
Thanks that is great!! -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 13:55 To: Gary Ogilvie Cc: 'PHP General' Subject: Re: [PHP] Just a small question on if statement if($myUser == $myReturnedUser $myPass == $myReturnedPass) { } On Fri, 2003-06-27

[PHP] Using header in if statement

2003-06-27 Thread Gary Ogilvie
If I attempt to direct the user to a url with in a if statement using a header I get the following error message: Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\company_search\admin\login.php:3) in

Re: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jason Wong
On Friday 27 June 2003 20:35, PHPSpooky wrote: On the internet server, apart from the beginning tables html, this is what I get .. What do you mean 'apart from'? That is exactly what the errors below are complaining about. bWarning/b: Cannot modify header information - headers already sent

Re: [PHP] Using header in if statement

2003-06-27 Thread Adam Voigt
Just have it echo, example: echo meta http-equiv=\refresh\ content=\0;url=http://192.92.0.248/company_search/admin/admin2.php\;; On Fri, 2003-06-27 at 09:03, Gary Ogilvie wrote: If I attempt to direct the user to a url with in a if statement using a header I get the following error message:

[PHP] List of Variables

2003-06-27 Thread Thomas Weber
Hi, is there any way to get a list of all defined variables? It is intended to be used to get and identify all defined objects to call some costum decunstructor at the scripts end. Thanks! Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] SORRY

2003-06-27 Thread Dore van Hoorn
i'm really sorry i have to send this email to the php list. I received a reply to my email about printing the elements in an array in an html table structure, i believe by someone called daniel. i accidently deleted your message, before i had copied your idea So, to the person who was so kind

RE: [PHP] Using header in if statement

2003-06-27 Thread Gary Ogilvie
I didn't realise you could use echo to run a URL. Thanks for your help :) -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 14:08 To: Gary Ogilvie Cc: 'PHP General' Subject: Re: [PHP] Using header in if statement Just have it echo, example: echo meta

Re: [PHP] List of Variables

2003-06-27 Thread Adam Voigt
print_r(get_defined_vars()); On Fri, 2003-06-27 at 09:07, Thomas Weber wrote: Hi, is there any way to get a list of all defined variables? It is intended to be used to get and identify all defined objects to call some costum decunstructor at the scripts end. Thanks! Thomas 'Neo' Weber

RE: [PHP] Using header in if statement

2003-06-27 Thread Adam Voigt
Yep, or you could echo Javascript, or you could use output buffering, any of these will get your pages redirecting. On Fri, 2003-06-27 at 09:06, Gary Ogilvie wrote: I didn't realise you could use echo to run a URL. Thanks for your help :) -Original Message- From: Adam Voigt

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread PHPSpooky
Glory! Ok what you're saying made sense to me.. unfortunately the problem is not going away. I checked out my Directory.php file.. there's a bunch of HTML code that is responsible for the HTML in that page before the PHP begins, and before global.inc.php is included in the file. As I started

Re: [PHP] SORRY

2003-06-27 Thread Jason Wong
On Friday 27 June 2003 21:07, Dore van Hoorn wrote: i'm really sorry i have to send this email to the php list. I received a reply to my email about printing the elements in an array in an html table structure, i believe by someone called daniel. i accidently deleted your message, before i had

Re: [PHP] List of Variables

2003-06-27 Thread Marek Kilimajer
$GLOBALS Thomas Weber wrote: Hi, is there any way to get a list of all defined variables? It is intended to be used to get and identify all defined objects to call some costum decunstructor at the scripts end. Thanks! Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] -- PHP General

Re: [PHP] SORRY

2003-06-27 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 27 Jun 2003 at 14:08, lines prefixed by '' were originally written by you. i'm really sorry i have to send this email to the php list. I received a reply to my email about printing the elements in an array an html table structure, i

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jay Blanchard
[snip] I checked out my Directory.php file.. there's a bunch of HTML code that is responsible for the HTML in that page before the PHP begins, and before global.inc.php is included in the file. [/snip] Sounds like you need to re-order your code or have the PHP output all of the HTML. [snip] And

Re: [PHP] List of Variables

2003-06-27 Thread Thomas Weber
Yea thanks, we must have been blind when searching the php-docs ;) Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED] - Original Message - From: Adam Voigt [EMAIL PROTECTED] To: Thomas Weber [EMAIL PROTECTED] Cc: PHP-List [EMAIL PROTECTED] Sent: Friday, June 27, 2003 3:09 PM

RE: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread PHPSpooky
Glory! Just to check .. I removed all HTML code from the directory.php page.. and just left the PHP code.. and it worked fine!! So the problem is with the HTML code.. whatever HTML is outputting.. somehow it's taking it as the output and this generating the Warning! But I need the HTML in the

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread PHPSpooky
Glory! You mean for testing I make a new page and put these two functions? Or do you want me to place these on the top and bottom of my existing global.inc.php page? PHPSpooky And PS : what is HTH ? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Jay Blanchard
[snip] You mean for testing I make a new page and put these two functions? Or do you want me to place these on the top and bottom of my existing global.inc.php page? And PS : what is HTH ? [/snip] I mean that instead of html head/head you do ?php print(html); print(head/head); ? Hope This

[PHP] ignored php.ini?

2003-06-27 Thread user
Hello, I have php 4.3.2 running as isapi module on windows 2000. I have a php.ini in d:\winnt but when I edit it the output from ? phpinfo(); ? is as before. Any hints? Many thanks in advance, bye _ -- PHP General

RE: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread Adam Voigt
Headers can't be sent after HTML output, it's as simple as it sounds. What that means is, if you suddenly decide you want to send a Location header to redirect the browser, you can't if you outputted any HTML before the line that outputs the location, unless ofcourse your using Output Buffering.

RE: [PHP] PHP Certification

2003-06-27 Thread Dan Joseph
Hi, basis is way beyond what any of us have time for and personally I find the value of such certification programs extremely questionable. Questionable? Did you mean useless? Honestly, I've got a friend with a CCNA, he's sitting in an ISP's call center answering phones. He doesn't

Re: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Marek Kilimajer
Move include(global.inc.php); to the top of any file that includes it. Always do it this way, it can spare you lots of trouble. PHPSpooky wrote: Glory! Ok what you're saying made sense to me.. unfortunately the problem is not going away. I checked out my Directory.php file.. there's a bunch of

Re: [PHP] ignored php.ini?

2003-06-27 Thread Adam Voigt
Is Windows installed on the D drive? Because you can't just make a WINNT folder on another drive, it must be in the actual folder the system is installed in. On Fri, 2003-06-27 at 10:25, [EMAIL PROTECTED] wrote: Hello, I have php 4.3.2 running as isapi module on windows 2000. I have a

Re: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread Marek Kilimajer
You got it all wrong: HTML is the output! If recomend you read the http specification to learn why. PHPSpooky wrote: Glory! Just to check .. I removed all HTML code from the directory.php page.. and just left the PHP code.. and it worked fine!! So the problem is with the HTML code.. whatever HTML

Re: [PHP] ignored php.ini?

2003-06-27 Thread user
--- Is Windows installed on the D drive? Because you can't just make a WINNT folder on another drive, it must be in the actual folder the system is installed in. yes, Windows is on d: I am trying to set safe_mode = On d:\winnt\php.ini edited and saved; ?

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread PHPSpooky
Glory! Done this long time back.. moved include(global.inc.php); to the top. Right after ? In the directory.php page. I understand what you're saying about HTML being the output. I also put in all of my HTML code in echo now, instead of regular HTML. Still the same.. now I get .. Warning:

RE: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread PHPSpooky
Headers can't be sent after HTML output, it's as simple as it sounds. What that means is, if you suddenly decide you want to send a Location header to redirect the browser, you can't if you outputted any HTML before the line that outputs the location, unless ofcourse your using Output

Re: [PHP] ignored php.ini?

2003-06-27 Thread user
Restart? IIS restared from its mmc but phpinfo() tell me that safe_mode is Off :-( thanks, bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread Marek Kilimajer
The top means the top of the file, not the top of your coding. Simply: Line 1. of directory.php: ?php include_once(global.inc.php) ? Line 2. of directory.php: html Line 3. of directory.php: head PHPSpooky wrote: Headers can't be sent after HTML output, it's as simple as it sounds. What that

RE: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread Edward Peloke
maybe you already did this but can you send your code? -Original Message- From: PHPSpooky [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:46 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] 'Cannot send Headers' Problem!! MOre.. Headers can't be sent after HTML

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread Edward Peloke
there is something in your global.inc.php that is sending output... -Original Message- From: PHPSpooky [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 9:45 AM To: 'Marek Kilimajer' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] 'Cannot send Headers' Problem!! Glory! Done this long time

[PHP] ODBC in PHP: setting SQL_ATTR_TRACE

2003-06-27 Thread Jeff Stewart
I've been reading about ways to help secure an application against database hacking, and I've read more than once now that it's wise to turn off tracing within the ODBC drivers when issuing sensitive commands, by setting SQL_ATTR_TRACE to SQL_ATTR_OFF. But I can't figure out how to do that with

[PHP] zend_eval_string problem

2003-06-27 Thread spsuhas
Hi, I am workign on zend_eval_strign function, it is not working. I searched many more places but there is no answer for the problem. I am usign this function as if (zend_eval_string(buffer, NULL, desc TSRMLS_CC) == FAILURE) { // error handling }

Re: [PHP] Strange output issue

2003-06-27 Thread John Luxford
On Friday, June 27, 2003, at 03:40 AM, Ford, Mike [LSS] wrote: -Original Message- From: John Luxford [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 18:15 Thanks for the info. The problem is that I'm trying to output an M3U file to stream a series of MP3s, and some players won't properly

Re: [PHP] ignored php.ini?

2003-06-27 Thread user
Restart? IIS restared from its mmc but phpinfo() tell me that safe_mode is Off I performed a strong restart and now the new settings in php.ini are in the output of phpinfo(). Bye. _ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-27 Thread PHPSpooky
Glory Ok this is the famous global.inc.php and directory.php .. Everything works perfect and fine.. all functions.. except two.. The Admin Login The Rate A site .. and apparently both uses Cookies.. The rest of the functions, even using Headers, work fine.. Truly appreciate all help..

RE: [PHP] 'Cannot send Headers' Problem!!

2003-06-27 Thread PHPSpooky
Directory.php ?php include(global.inc.php); echo HTML; echo HEAD; echo META http-equiv=Content-Type content=\text/html; charset=windows-1252\; echo META http-equiv=Keywords content=\michael, jackson, mj, michael jackson, king of pop, king, pop, bad, dangerous, music, rb, off the wall, history,

RE: [PHP] Setting focus on a textfield

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Marek Kilimajer A little corection Ernest E Vogelsinger wrote: At 09:42 20.03.2003, Angelo Zanetti said: [snip] Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page

[PHP] Constants in heredoc strings?

2003-06-27 Thread Jeff Stewart
Is there a way to expand constants in heredoc strings without assigning the constant's value to a variable first? -- Jeff S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Constants in heredoc strings?

2003-06-27 Thread Ford, Mike [LSS]
-Original Message- From: Jeff Stewart Is there a way to expand constants in heredoc strings without assigning the constant's value to a variable first? -- No. Cheers! Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Is this a new PHP technology??????

2003-06-27 Thread Brian Dunning
Check it out: http://www.americansubstandard.com/index.php?sub=vword=vmail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] exec problem in php (2 times execution)

2003-06-27 Thread Lepretre Olivier
Hi all, I have a php code that tries to execute an rexec function for a at command. For this I coded it in this way : $str = exec (rexec -l usr1 -p usr1 myserver at now + 2minutes -f input file; the rexec function in itself is running fine in shell mode but whene I try to execute it through

[PHP] Content-Type:

2003-06-27 Thread Brian V Bonini
This could be an Apache issues, not really sure. I'm trying to output a php doc as text/css using ?php header( Content-type: text/css ); ? But no matter what I do, changing it in the document, adding/altering apache mime types, all I get is text/html. The reason is I'm trying to use @import

[PHP] PHP-4.3.1 with bundled GD does not support jpeg?

2003-06-27 Thread Reuben D. Budiardja
Hello, I compiled and installed from source php-4.3.1 with the bundled GD. I enabled it during configure using --with-gd, and double check that using phpinfo. The bundled GD says it's 2.0. But when I tried using imagejpeg() i got: Fatal error: Call to undefined function: imagejpeg() in

[PHP] mysql lock

2003-06-27 Thread anders thoresson
Hi, I've never used a lock on a MySQL table so far, but need one now. Two questions: 1. Do I set the lock by a normal query, but in the form of LOCK TABLE tablename WRITE, instead of SELECT * FROM tablename WHERE x = 1? 2. Can I set the lock in one query, then perform multiple other queries

Re: [PHP] mysql lock

2003-06-27 Thread Adam Voigt
Yes you seem to have it figured out, just do the lock in a normal mysql_query, following the MySQL manual for syntax, and you can release a lock whenever you want, but the rule is the sooner the better, since if more then one page or query tries to do a write, while you have it locked it has to

[PHP] Bundled GD Webalizer

2003-06-27 Thread Michael A Smith
I compiled PHP 4.3.2 --with-gd, but now webalizer can't find GD? Where is it? I tried installing the original library but that's not good either. -Michael -- Michael Smith [EMAIL PROTECTED] The great thing about democracy is that it gives every voter a chance to do something stupid. -Art

RE: [PHP] Re: Seraching for good Hotel room booking program.....

2003-06-27 Thread Miles Thompson
Don't flame me, this doesn't have a PHP back end, I suspect it's Flash Communications server at the back end, as there seems to be a constant data stream for virtually every change made on the form. But everyone should have a look at the Broadmoor's Reservation system, and play with it a bit

Re: [PHP] Bundled GD Webalizer

2003-06-27 Thread Adam Voigt
PHP did not remove your copy of GD, so this is a system question, not PHP. On Fri, 2003-06-27 at 12:03, Michael A Smith wrote: I compiled PHP 4.3.2 --with-gd, but now webalizer can't find GD? Where is it? I tried installing the original library but that's not good either. -Michael --

[PHP] mysql split?

2003-06-27 Thread Andrew McCombe
Hi I have a field in mysql that has paths to files such as: project/entertainment/andrew/job/1.jpg project/corporate/roberts/job/1.jpg project/corporate/andrew/job/1.jpg project/identity/john/job/1.jpg The first level is always 'projects'. What I want to do is get the unique name for the 3rd

RE: [PHP] mysql split?

2003-06-27 Thread Jay Blanchard
use explode() -Original Message- From: Andrew McCombe [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 11:06 AM To: [EMAIL PROTECTED] Subject: [PHP] mysql split? Hi I have a field in mysql that has paths to files such as: project/entertainment/andrew/job/1.jpg

Re: [PHP] Bundled GD Webalizer

2003-06-27 Thread Michael A Smith
No, you don't understand, I want to know where PHP installs GD. -Michael On Fri, 2003-06-27 at 08:06, Adam Voigt wrote: PHP did not remove your copy of GD, so this is a system question, not PHP. On Fri, 2003-06-27 at 12:03, Michael A Smith wrote: I compiled PHP 4.3.2 --with-gd, but now

[PHP] Re: Calling PHP from Java usign CGI...

2003-06-27 Thread Rodrigo Reyes
Catalin I am also quite new to all this. I'll tell you a bit more about what I am trying to accomplish here. I am working on some project which has a a lot of code written in PHP and is going to need also a lot of code in JAVA. So, I was thinking that it would be great if we could have PHP

Re: [PHP] Bundled GD Webalizer

2003-06-27 Thread Adam Voigt
PHP doesn't install GD. GD is a library that PHP can link against, giving you the ability to manipulate images. PHP doesn't give you GD. GD is an independent library. On Fri, 2003-06-27 at 12:09, Michael A Smith wrote: No, you don't understand, I want to know where PHP installs GD.

Re: [PHP] mysql split?

2003-06-27 Thread Andrew McCombe
Does mysql have an explode function? I suppose this is the wrong place to ask... Andrew - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Andrew McCombe [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 27, 2003 5:08 PM Subject: RE: [PHP] mysql split? use

  1   2   >