[PHP] Array Info

2003-06-26 Thread John Wulff
I need some information about an array structured as follows: $example_data = array( array(Mar-99,0,0,5945.33,0), array(Feb-99,0,0,47648.90,0), array(Jan-99,0,0,13365.52,0) ); I need to know the largest number in the array. I need to know how many sets of numbers there are, ie how many commas

Re: [PHP] Re: quotes

2003-06-26 Thread chris sherwood
echo input name='company' type='text' value='. htmlentities($company) .'; this doesnt work cause the engine doesnt like that try this echo input name='company' type='text' value='.( htmlentities($company)) .'; Anthony [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... tough to

Re: [PHP] Fatal Error: Call to undefined function: *mail()*? What's next, echo?

2003-06-26 Thread Jason Wong
On Thursday 26 June 2003 12:38, [EMAIL PROTECTED] wrote: I was testing a boring little FormMail script I've used on dozens of PHP installations (Apache and IIS), when I got an error: Fatal error: Call to undefined function: mail() in /usr/local/apache/vweb/redfishinsurance/form2mail.php on

Re: [PHP] Why Can't I get this to work

2003-06-26 Thread Jason Wong
On Thursday 26 June 2003 11:20, Ron Clark wrote: I have a php script that reads a flat text file with fields seperated by a space. I explode them into an array just fine, but when I try then to load that array into a mysql database, it doesn't work. Here is my script: for ($i=0;

Re: [PHP] One more time - HTTP_HOST

2003-06-26 Thread Jason Wong
On Thursday 26 June 2003 05:41, Sparky Kopetzky wrote: Is $_SERVER['HTTP_HOST'] the same as CGI $_ENV['REMOTE_HOST'] ?? No. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

[PHP] passwd protected page

2003-06-26 Thread Bibhas Kumar Samanta
Hi, Without using sessions , how can I create passwd protected pages in mysql/php. I need to remember the user from login page and validate this user in other pages. Thanks, Bibhas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] passwd protected page

2003-06-26 Thread Sichta Daniel
Hi, You can validate user on login page and sets the flag in database table. Then on each page you have to check that flag again DS -Original Message- From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 8:52 AM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] Impossible bug!

2003-06-26 Thread John Wulff
Where the heck is my problem? No matter what the value for *_color is always 1!!! $example_data = array( array(Mar-99,100,2000,5945.33,1234,10), array(Feb-99,908,3454,47648.90,4321,50), array(Jan-99,542,8000,13365.52,6012,60) ); $high = 47648.90; if(!isset($num)) { $num = 1; }

Re: [PHP] passwd protected page

2003-06-26 Thread Bibhas Kumar Samanta
-Will it be secure? -What will happen in case browser crashes setting the flag, I guess , in sessions, sessions will be terminated. -Bibhas Sichta Daniel wrote: Hi, You can validate user on login page and sets the flag in database table. Then on each page you have to check that flag

Re: [PHP] passwd protected page

2003-06-26 Thread Bibhas Kumar Samanta
how should I pass the logged in user to other pages ? In the database at the same time there might be several user logged in ? Thanks, Bibhas Sichta Daniel wrote: Hi, You can validate user on login page and sets the flag in database table. Then on each page you have to check that flag

RE: [PHP] passwd protected page

2003-06-26 Thread Chris Kay
Why not use sessions, store a $loggedin value in a session or cookie And check that at the top of each page.. no session = no access Hope this helps - Chris Kay Techex Communications Website: www.techex.com.au Email: [EMAIL PROTECTED]

Re: [PHP] passwd protected page

2003-06-26 Thread Bibhas Kumar Samanta
my problem is that when I use sessions in the restricted pages the session_start() seem to reset the form ( when other filled in data is lost) when go back to the form using Back in the browser. So I wanted to avoid session_start How are the good php sites designed ? regds, Bibhas Chris

Re: [PHP] Converting Array

2003-06-26 Thread Ernest E Vogelsinger
At 03:37 26.06.2003, John Wulff said: [snip] I've got an array in the following format: Array ( [Jan-1999] = 36.04,140.35,319.53,324.07 [Feb-1999] = 1.78,71.78,320.58,141.97 ) I need it in the following format: $example_data = array(

[PHP] RE: PHP Mysql Error Code 1062 - Duplicates found

2003-06-26 Thread Ow Mun Heng
Hi All, I found out how to do it already. Thanks for the help. mysql_error() was the key.. Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Ow Mun Heng Sent: Wednesday, June 25, 2003 10:03 AM To: [EMAIL PROTECTED]

RE: [PHP] passwd protected page

2003-06-26 Thread Chris Kay
Sorry I didn't read the first post about not wanting to use sessions, what about cookies? What about making a hash of the username and password and place it in the url EG: /main.php?u=chrisp=AJKHSA765JAFG443320 Something like that Check the hash against the database each page $db =

RE: [PHP] passwd protected page

2003-06-26 Thread Chris Kay
ARGGG bad day for coding reading Replace if ( mysql_num_rows($db) ) { with if ( mysql_num_rows($db)==1 ) { now I am going home before I cause any more damage :) - Chris Kay Techex Communications Website: www.techex.com.au

RE: [PHP] passwd protected page[Scanned]

2003-06-26 Thread Michael Egan
Bibhas, I've seen many references to the phpBB application on this list in the past and had a look at it in detail some weeks ago. It's a fairly large application but the way they deal with sessions is instructive. If I've understood it correctly they don't use the session management features

[PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Jean-Christian IMbeault
I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. When I try and connect from php using mysql_connect() I get the following error: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) The server is up and running and I

[PHP] Re: Securing PHP code

2003-06-26 Thread SLanger
One more thing, make sure the application is running on its own server meaning don't use a shared hosting enviroment that allows others to gain access to your directories. In this case even placing the file outside of docroot doesnot secure it in anyway since any other user can access it with

[PHP] unpack() and binary data

2003-06-26 Thread Gerard Samuel
First of all, I have nearly no idea as to how to interpret binary data. But Im attempting to parse binary data for file metadata information (like mp3 files). Concerning unpack(), I can across this link from the notes in the manual - http://fooassociates.com/phpfer/html/rn45re877.html This has

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread - Edwin -
Hello, Jean-Christian IMbeault [EMAIL PROTECTED] wrote: I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. When I try and connect from php using mysql_connect() I get the following error: Warning: mysql_connect(): Can't connect to local MySQL server through

Re: [PHP] Impossible bug! (fwd)

2003-06-26 Thread Andy Fiddaman
You never set *_color back to 0 at any point, so the first time through the loop it gets set to 1 and stays there. Replace you lines like: ; if($a_percent $num) { $a_color = 1; } with: $a_color = $a_percent $num; On Thu, 26 Jun 2003, John Wulff wrote: ; Where the heck is

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Jason Wong
On Thursday 26 June 2003 15:53, Jean-Christian IMbeault wrote: I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. When I try and connect from php using mysql_connect() I get the following error: Warning: mysql_connect(): Can't connect to local MySQL server through

[PHP] Re: Help please!

2003-06-26 Thread poetbox
hi, Nadim Attari£¡ Well it doesn't... I have to send it as a mail to [EMAIL PROTECTED], then it works... If I click on the thread and try to Reply to Group, it doesn't work !!! We always send the mail to [EMAIL PROTECTED], and not using reply to group function,I think

[PHP] Re: Securing PHP code

2003-06-26 Thread nad
1) The site will have to take very high traffic and possibly thousands of transactions per hour - Which is the best free db to use (I am guessing MySQL) - Which is the best paid database (Other than MySQL) transactions ??? Go for one which offers commit/rollback ... === 2) I

[PHP] remote cvs server

2003-06-26 Thread php dot net
I started to implement cvs connection protocole with php with a socket connection. As it is poorly documented can anybody tip me in that task??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Seraching for good Hotel room booking program.....

2003-06-26 Thread Giuliano
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Weird mktime problem

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Glenn [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 14:58 [] Here is what's weired. I use these lines to get the specifics: $StartHour = substr($StartTime, 0, 2); $StartMinute = substr($StartTime, 3, 2); $EndHour = substr($EndTime, 0, 2);

[PHP] Re:[PHP] Array Info

2003-06-26 Thread Haseeb
Hi, from the array i asume that you are trying to make a tree structure like this Data_Array { Mar-99 { 0, 0, 5945, 33, 0 } } Second you said that you want to make variables out

Re: [PHP] Securing PHP code

2003-06-26 Thread Justin French
I'm not a security expert at all, but... The short answer to your question is that if you have to ask how to make your code secure, then chances are, you probably shouldn't be attempting it at all... but then again, we all have to learn somewhere... Do a google search, and read thousands of

RE: [PHP] quotes

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Lso . [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 18:32 ok i see why i didnt work but i dont know why. can anyone tell me why this works: input name=testfield type=text value=? echo htmlentities($company) ? but this doesn't: echo input

RE: [PHP] Re:[PHP] Array Info

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Haseeb [mailto:[EMAIL PROTECTED] Sent: 26 June 2001 22:56 ps. sprry for beaking thread but i am not subscribed to any news server.using outlook exp and don't know how to configure it. At least configure your system's clock, please -- it's currently 2 years

Re: [PHP] Re: Help please!

2003-06-26 Thread Nadim Attari
We always send the mail to [EMAIL PROTECTED], and not using reply to group function,I think there's no easy way to do this.If you really have problems with PHP,sending mail is not the important thing,the more important thing is to get a good reply!Sorry,it's my own opinion:) - Yea for

RE: [PHP] Weird mktime problem

2003-06-26 Thread Naintara Jain
You might want to consider removing the leading zeroes, this post is there in the php manual and has been useful to me. -xxx- jchen3625 AT yahoo DOT com (25-Aug-2002 03:33) beware, arguments with leading zeros are treated as zeros. that is,

RE: [PHP] Weird mktime problem

2003-06-26 Thread Ford, Mike [LSS]
Ooops! Make that: ?php $timestamp = 1056405600; echo GMT = , gmdate(Y-m-d H:i:s, $timestamp), br /\n; echo local = , date(Y-m-d H:i:s, $timestamp), br /\n; ? -Original Message- From: Ford, Mike [LSS] Sent: 26 June 2003 10:53 UNIX timestamps are *always* GMT -- it's the

[PHP] need help breaking out of loop.

2003-06-26 Thread anders thoresson
Hi, I'm working of a PHP-MySQL-planning system for a newspaper. I want to add dates and number for each issue. I have to following code, where $current_date is a unix timestamp. If $current_date is a Saturday or Sunday, I want to quit the current execution of the loop and contiune with the

RE: [PHP] need help breaking out of loop.[Scanned]

2003-06-26 Thread Michael Egan
Anders, Are you missing a '|' in the if condition? Michael Egan -Original Message- From: anders thoresson [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 12:01 To: [EMAIL PROTECTED] Subject: [PHP] need help breaking out of loop.[Scanned] Hi, I'm working of a PHP-MySQL-planning system

[PHP] limiting functions

2003-06-26 Thread Daryl Meese
Ok, lets see if I can sum this up. I have a number of scripts that my clients (on a virtual host) can include into their PHP scripts to use my software. While my scripts need clear access to all functions (exec, eval, unlink, etc) I would like to stop my clients from having access to some of the

RE: [PHP] need help breaking out of loop.

2003-06-26 Thread Naintara Jain
Are you incrementing number_of_days anywhere within the loop? It looks like you have an infinite loop running. If you want to be able to move to the next date, increment you date variable. -Naintara -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] t]On Behalf Of

Re: [PHP] need help breaking out of loop.

2003-06-26 Thread David Otton
On Thu, 26 Jun 2003 13:00:45 +0200, you wrote: What am I missing? At first glance while ($i = $number_of_days) { $issue_date = strftime(%Y-%m-%d, $current_date); $issue_month = date(m, $current_date); $issue_day = date(d, $current_date);

[PHP] twodimensional array / word-frequencylist

2003-06-26 Thread Dore van Hoorn
Hi, I asked the same question two days ago, but i have not received an answer that could really help me on my way... So i'll try again, this time with the help of a little PHP code, and soms explanations while($myrow = mysql_fetch_row($result)) # as long as there are texts in the database {

Re: [PHP] twodimensional array / word-frequencylist

2003-06-26 Thread Jason Wong
On Thursday 26 June 2003 19:25, Dore van Hoorn wrote: [snip] # i would like a function that pushes this word into a second array. # before pushing, it has to check whether or not the same word is already in the array. # if it is: do not push word into array, but add 1 to the number of

Re: [PHP] twodimensional array / word-frequencylist

2003-06-26 Thread Chris Hayes
There may be faster ways, for instance using the regular expression function that returns an array of hits, and make the regexp look for 'words' in it with the \b option. But i will stick to your example code. My suggestions are not tested. while($myrow = mysql_fetch_row($result)) # as long as

[PHP] cannot get php through apache to write to my home dir on shared server

2003-06-26 Thread frank reeves
Hi, I have an account on shared server and am trying to write a logfile (a dump of an email which i use mail() to send) to a logfile in my home dir. This logfile will grow with all emails send by my app and will thus give me an archive of sorts. However, because php is executed through apache

Re: [PHP] twodimensional array / word-frequencylist

2003-06-26 Thread Chris Hayes
if (!isset($words[$word] $words[$word]=0; else $words[$word]++; } change the 0 to 1 of course. Anyway the function Jason suggested is probably faster. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] twodimensional array / word-frequencylist

2003-06-26 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 26 Jun 2003 at 12:26, lines prefixed by '' were originally written by you. # i would like a similar function that removes interpuntuation like . etc. # all i want remaining in the array are the separate words, all in lower case

Re: [PHP] twodimensional array / word-frequencylist

2003-06-26 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 26 Jun 2003 at 12:36, lines prefixed by '' were originally written by you. foreach($words as $thisword){ if(in_array($thisword, $array)){ $array[$thisword]++; } else { $array[$thisword]=1; } Just

Re: [PHP] Weird mktime problem

2003-06-26 Thread Jason Wong
On Thursday 26 June 2003 18:46, Naintara Jain wrote: You might want to consider removing the leading zeroes, this post is there in the php manual and has been useful to me. -xxx- jchen3625 AT yahoo DOT com (25-Aug-2002 03:33) beware, arguments with

[PHP] Re: twodimensional array / word-frequencylist

2003-06-26 Thread sven
hi dore, Dore Van Hoorn wrote: # i would like a similar function that removes interpuntuation like . etc. # all i want remaining in the array are the separate words, all in lower case maybe you can replace your unwanted chars with preg_replace() i.e.: $textStripped = preg_replace(/[.:;]/, ,

RE: [PHP] twodimensional array / word-frequencylist

2003-06-26 Thread Naintara Jain
Very simple, there's a function designed just for this. check out the manual for array_count_values() array_count_values() returns an array using the values of the input array as keys and their frequency in input as values. EXAMPLE: $array = array (1, hello, 1, world, hello);

Re: [PHP] twodimensional array / word-frequencylist

2003-06-26 Thread David Otton
On Thu, 26 Jun 2003 13:25:39 +0200, you wrote: # i would like a similar function that removes interpuntuation like . etc. # all i want remaining in the array are the separate words, all in lower case How do you define a word? Is a hyphen part of a word? Do you want to strip out numbers? Make a

Re: [PHP] cannot get php through apache to write to my home dir onshared server

2003-06-26 Thread Marek Kilimajer
Upload empty file with ftp and change its permission (chmod o+w log.file). frank reeves wrote: Hi, I have an account on shared server and am trying to write a logfile (a dump of an email which i use mail() to send) to a logfile in my home dir. This logfile will grow with all emails send by my

Re: [PHP] Japanese text not displaying correctly.

2003-06-26 Thread - Edwin -
Hello, [EMAIL PROTECTED] (Dennis browne) wrote I want to display Japanese text on my site and am having many problems. I am using Linux Redhat 8, PHP 4.2. Basically what I have is a file page.php with the following code: page.php: html head meta http-equiv=Content-Type

Re: [PHP] cannot get php through apache to write to my home dir on shared server

2003-06-26 Thread CPT John W. Holmes
From: frank reeves [EMAIL PROTECTED] I have an account on shared server and am trying to write a logfile (a dump of an email which i use mail() to send) to a logfile in my home dir. This logfile will grow with all emails send by my app and will thus give me an archive of sorts. However,

[PHP] problem with mktime

2003-06-26 Thread anders thoresson
The following line of code doesn't work for me: $previous_issue_unixdate = mktime(0, 0, 0, $previous_issue_month, $previous_issue_day, $previous_issue_year, 0); $previous_issue_month is set to 06, _issue_day is 30 and _issue_year to 2003. Still $previous_issue_unixdate is emtpy. -- anders

[PHP] defect tracking systems

2003-06-26 Thread Martin Balcar
Hi, I want to begin to use some of bug tracking systems. I think it can help me with developing more robust applications and make an easier communication with my clients. I have tried to use Bugzilla, but It was a little bit complicated system. Please help me to choose some Regards Martin

Re: [PHP] cannot get php through apache to write to my home dir on shared server

2003-06-26 Thread Steve Buehler
Another option might be to create a directory in your web space to hold your file and open up just that directory as 777. Steve At 08:17 AM 6/26/2003 -0400, you wrote: From: frank reeves [EMAIL PROTECTED] I have an account on shared server and am trying to write a logfile (a dump of an email

RE: [PHP] defect tracking systems

2003-06-26 Thread Jay Blanchard
[snip] Please help me to choose some [/snip] Google for bug tracking system http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=bug+tracking+syst em HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Month name

2003-06-26 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... PiBIb3cgY2FuIEkgZ2V0IHRoZSBtb250aCBuYW1lIGZyb20gYSBkYXRlPyBJZiB5b3UgY291bGQg cG9zdCB3aXRoIGFuIGV4YW1wbGUNCj4gaSdsbCBiZSBncmF0ZWZ1bGwNCg0KVHdvIGxpbmtzIHRv IGhlbHAgeW91Li4uDQpodHRwOi8vd3d3LnBocC5uZXQvbWFudWFsL2VuL2Z1bmN0aW9uLmdldGRh

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Didier McGillis
What has always worked for me was to make sure MySQL is running, and if so then go delete the mysql.sock file and restart MySQL, not sure why but the first couple of times I have seen that error, usually goes away after one or two restarts. From: Jean-Christian IMbeault [EMAIL PROTECTED] To:

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

2003-06-26 Thread SLanger
Hello Justin or Anybody else Store an MD5 of the password, that way you're comparing the two hashes, not two passwords... even if someone stumbles into your database, they'll only see the MD5'd password. A further step would be encryption, on which you will have to do a LOT of reading.

[PHP] Re: mysql update not working

2003-06-26 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I have the following code: $sql = UPDATE class_sub SET desc = '$catdesc', sub_cat = '$subcatname' WHERE id='$catid'; echo $sql; $sql_result = mysql_query($sql); if (!$sql_result) { echo PCouldn't update record!br/p;

[PHP] Re: Ticketing System?

2003-06-26 Thread Pete Morganic
The one we use is oneorzero helpdesk which is a project at sourceforge.net Andreas Cahen wrote: Hello List :) Is there any usefull ticketing system (Hotline/Support/etc.) written in PHP? I have found some on hotscripts.com, but I don't know which one is really got or not.. Any suggestions?

Re: [PHP] sessions and browser back[Scanned]

2003-06-26 Thread SLanger
As a suggestion can you simply redisplay your form on the error page and such avoid having to use the back button? This would also allow you to actually display the error at the place the error occurs. Another thing you might want to try is using a cache header that allows the browser to cache

RE: [PHP] Securing PHP code

2003-06-26 Thread Dan Joseph
Hi, Why rely on some access restriction when you don't have to? You include code using a filesystem path. There is no need for it to reside under document root. Yes, you can make it so that certain things are not served directly by the Web server, but why take the extra risk? You gain

RE: [PHP] Securing PHP code

2003-06-26 Thread Dan Joseph
Hi, The only reason that I was so adamant about it was I had a 'heated' discussion with a business associate who's server was compromised - and he was, lets say, insistant that the fact that there were database passwords in a php file inside the webroot was the reason it was insecure. I

Re: [PHP] defect tracking systems

2003-06-26 Thread Martin Balcar
Hm, good answer ;) Can you recommend one of them? Do you have experience with some of these systems? I don't want to try them all Martin Jay Blanchard [EMAIL PROTECTED] píse v diskusním príspevku news:[EMAIL PROTECTED] [snip] Please help me to choose some [/snip] Google for bug

Re: [PHP] limiting functions

2003-06-26 Thread Wendell Brown
On Thu, 26 Jun 2003 06:10:48 -0500, Daryl Meese wrote: A quick thought -- It would be nice if we had a authorization code in the What about Safe Mode? It looks like it can be configured http://us3.php.net/manual/en/features.safe-mode.php#ini.safe-mode Between safe_mode_include_dir and

RE: [PHP] defect tracking systems

2003-06-26 Thread Jay Blanchard
[snip] Hm, good answer ;) Can you recommend one of them? Do you have experience with some of these systems? I don't want to try them all [snip] Please help me to choose some [/snip] Google for bug tracking system http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=bug+tracking+syst em

Re: [PHP] defect tracking systems

2003-06-26 Thread Bibhas Kumar Samanta
can try gnatsweb. It is very widely used, and less complicated/featured than bugzilla, Bibhas Martin Balcar wrote: Hi, I want to begin to use some of bug tracking systems. I think it can help me with developing more robust applications and make an easier communication with my clients. I

[PHP] Install PHP on windows using PHP installler

2003-06-26 Thread Mark McCulligh
I am building a Windows 2000/PHP production server. I have only ever used LINUX for production and windows for developer machines. Is it better to install PHP using the PHP installer or using the Zip file version? Should you install PHP as CGI or ISAPI? I am looking for the pros and cons,

[PHP] Re: problem with mktime

2003-06-26 Thread Nadim Attari
The following line of code doesn't work for me: $previous_issue_unixdate = mktime(0, 0, 0, $previous_issue_month, $previous_issue_day, $previous_issue_year, 0); $previous_issue_month is set to 06, _issue_day is 30 and _issue_year to 2003. Still $previous_issue_unixdate is emtpy. anders

Re: [PHP] defect tracking systems

2003-06-26 Thread Martin Balcar
My fault... I would run it on Apache, mySQL using PHP technology And the system should be simple. I admire Bugzilla project, but it seems to be very complicated ;( Martin Jay Blanchard [EMAIL PROTECTED] píse v diskusním príspevku news:[EMAIL PROTECTED] [snip] Hm, good answer ;) Can you

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread Nadim Attari
Is it better to install PHP using the PHP installer or using the Zip file version? Go for the PHP Installer. It's straight forward to install... Do download the Zip file also, in case u need any extensions (DLL) Nadim Attari http://www.alienworkers.com -- PHP General Mailing List

Re: [PHP] Impossible bug!

2003-06-26 Thread Mark
In additon to the previous comment about resetting $*_color, you're multiplying the decimal value by 100 to get a percentage. But then you're comparing it to 1, not 100. EWither don't multiply it by 100, or check to see if it's 100. Or do you really want $*_color to be set if it's greater than

[PHP] php function system() on win2k srv /iis

2003-06-26 Thread user
Hello, I performed some tests using the backticks operator and the system() call. This is my.php : ? /*---*/ header(Pragma: no-cache); // HTTP/1.0 header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1

[PHP] What's best, using a temp-file or a temp-table

2003-06-26 Thread Øystein Håland
I want to give the visitor a possibility to create plenty of new user accounts by letting the him paste the userinfo from a tab-, comma- or semicolonseparated file to a textarea (form.php). Then some checking needs to be done (check_users.php) before the final result is written to the db

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

2003-06-26 Thread Duncan Hill
On Thursday 26 June 2003 16:22, Jeff Harris wrote: http://www.php.net/md5 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. Or, to avoid problems

[PHP] problem with popen and cvs

2003-06-26 Thread php dot net
$handle = popen(cvs --help, r); while(!feof($handle)) { echo fgets($handle, 3); } pclose($handle); i get a valid handle but no output ! popen failed only with cvs command (cvs.exe), if anybody could help me :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread Anthony
what webserver are you using? If it's IIS, then use the installer... If it's Apache, teh installer doesn;t work, you have to do it manualy. - Anthony Mark McCulligh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am building a Windows 2000/PHP production server. I have only ever

[PHP] Re: What's best, using a temp-file or a temp-table

2003-06-26 Thread Pete Morganic
you could use a $_SESSION variable instead of file $filename = addusers.txt; if (isset($users)) { $temp = $_POST['users']; $handle = fopen($filename, w+); fwrite($handle, $temp); $users = file($filename); if (ereg(\t, $users[0]) == true) $separator = \t; // om texten är

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread Pete Morganic
What I tend to do is to download the installer and run it as this sets up all the configuration (eg IIS) I then download the zip file (Which contains a load of extra files eg PEAR) and copy the whole unzipped directory to overwite the c:\php dir contents created by the installer. This might

Re: [PHP] Re: What's best, using a temp-file or a temp-table

2003-06-26 Thread Chris Hayes
At 17:36 26-6-03, you wrote: you could use a $_SESSION variable instead of file or when the data come in, you can put them into an array and pass on the array through a hidden form field. before putting it in the hidden field serialize the array and in the receiving page unserialize it.

[PHP] Strange output issue

2003-06-26 Thread John Luxford
Hello, I'm having a really strange output problem that I can't figure out. The problem is that a few characters appear prepended and appended to the body of the server response. I'm running PHP 4.3.0 and 4.3.2 on Mac OS X (tibook and xserve) and Red Hat 7.1 with 4.3.2 as well, with Apache

Re: [PHP] Strange output issue

2003-06-26 Thread Adam Voigt
The three might be the Content-length header, not sure though, thats just a guess since your outputting 3 characters. On Thu, 2003-06-26 at 11:44, John Luxford wrote: Hello, I'm having a really strange output problem that I can't figure out. The problem is that a few characters appear

[PHP] Re: Strange output issue

2003-06-26 Thread php dot net
This problem can comes from your php.ini, at the section : ; Automatically add files before or after any PHP document. auto_prepend_file = auto_append_file = -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread php dot net
depend on which web server : for apache : use php as a module for IIS (very bad id) : use php as a ISAPI In either case don't use php as a CGI, this won't allow persistant connection (very usefull for mysql) Hope that helped ! k -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread Mark McCulligh
From my understanding you can get PHP with CGI to do persistant connection if you install fastcgi. Link about PHP and FastCGI: http://php.weblogs.com/fastcgi_with_php_and_iis Mark. Php Dot Net [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] depend on which web server : for apache

RE: [PHP] Impossible bug!

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 15:16 To: John Wulff; [EMAIL PROTECTED] Subject: Re: [PHP] Impossible bug! In additon to the previous comment about resetting $*_color, you're multiplying the decimal value by 100 to get a percentage. But

[PHP] PHP 5 won't install

2003-06-26 Thread janet
I downloaded PHP 5-dev from snaps last night but it is giving me an error when I try to install it. The error is: The dynamic link library libxml2.dll could not be found in the specified path. I have been downloading and installing PHP 5 from snaps for some time and haven't had any problem

[PHP] SEARCH ENGINE

2003-06-26 Thread David Elìas Sánchez Vásquez
Hi folks First, thanks to Jim for the greeat tree-menu, we are just editing it. Ok, we are doing the tutorial for the Intranet of our University. There is just a lot of information and we want to give the user all the ways to find the information he's looking for. Hence, we need a great search

RE: [PHP] Strange output issue

2003-06-26 Thread Ford, Mike [LSS]
-Original Message- From: John Luxford [mailto:[EMAIL PROTECTED] Sent: 26 June 2003 16:44 I'm having a really strange output problem that I can't figure out. The problem is that a few characters appear prepended and appended to the body of the server response. I'm running PHP

RE: [PHP] SEARCH ENGINE

2003-06-26 Thread Jay Blanchard
[snip] First, thanks to Jim for the greeat tree-menu, we are just editing it. Ok, we are doing the tutorial for the Intranet of our University. There is just a lot of information and we want to give the user all the ways to find the information he's looking for. Hence, we need a great search

RE: [PHP] image galleries

2003-06-26 Thread Johnny Martinez
The Gallery I recommended can be edited so the thumbnails don't display and you can make the links appear instead. Shouldn't be tough, the info is already there. Just replace the img tag with the a href text. before: a href='images/cars/bmw/pic1.gif'img src='images/cars/bmw/pic1_thumb.gif'/a

Re: [PHP] weird switch behaviour

2003-06-26 Thread Miles Thompson
Try cleaning it up ... switch( trim( strtoupper( $type ) ) ); I had this happen to me - the $type echoed OK, but would not get caught in the case. The above fixed it. Miles Thompson At 02:18 PM 6/18/2003 +0100, cg wrote: I am testing a var in a switch statement, switch($type) { case

[PHP] Re: Sybase and PHP

2003-06-26 Thread Mark McCulligh
What Sybase are you using Sybase ASE (Adaptive Server Enterprise) or Sybase Anywhere. Is your PHP server on Windows or Linux. What you will need is the Sybase client first off. PHP links to the sql.ini files (in windows). Then you will need to edit your php.ini and uncomment the Sybase

Re: [PHP] Strange output issue

2003-06-26 Thread John Luxford
Hi Mike, 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 chunk info. Is there a way to turn it on and off that you know of? Thanks again, Lux On

Re: [PHP] SEARCH ENGINE

2003-06-26 Thread Jeff Harris
On Jun 26, 2003, David Elìas Sánchez Vásquez claimed that: | |Hi folks | |First, thanks to Jim for the greeat tree-menu, we are just editing it. |Ok, we are doing the tutorial for the Intranet of our University. There is |just a lot of information and we want to give the user all the ways to find

Re: [PHP] Re: Sybase and PHP

2003-06-26 Thread Mark McCulligh
Do you have Sybase ASE on windows or Sybase Anywhere. I didn't know that Sybase make a windows version of ASE. We use Sybase ASE on HP UNIX here at work and I have PHP on both Windows 2000 and Sun linked to it. Mark. - Original Message - From: Michael A Smith [EMAIL PROTECTED] To: Mark

[PHP] Oops, sessions. I need to study the subject

2003-06-26 Thread Øystein Håland
if(isset($_POST['users']) { $_SESSION['temp_users'] = $_POST['users']; } if (ereg(\t, $_SESSION['temp_users'][0]) == true) $separator = \t; ...etc hope it helps Pete Will take a look at function.serialize too. Thank you guys -- PHP General Mailing List (http://www.php.net/) To

  1   2   >