[PHP] starting a session

2004-02-03 Thread Angelo Zanetti
Hi, is there ever a certain situation where you would have something at the top of your page before session_start();? If so why would it be before session_start();? thanx in advance Angelo Zanetti Z Logic [c] +27 72 441 3355 [t] +27 21 464 1363 [f] +27 21 464 1371 www.zlogic.co.za

[PHP] Re: Zlib Compression || Implementation || Bandwidth Savings?

2004-02-03 Thread rush
Cf High [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Question is, how to implement compression? Is it enough to just ini_set() zlib compression to ON? i.e. will all content be automatically be compressed, or do I need to ob_start() ob_end_clean() at the start and end of each

[PHP] PHP and DataSet from C# (VB)

2004-02-03 Thread Sichta Daniel
Hi there !! Is there a way how can PHP can handle data (get data ) from DataSet generated from dll buld in C# ? I have dll which is whole database layer and I need to retrieve data in php. THX Ing. Daniel ichta Siemens Program and System Engineering s.r.o. EIF AS TIS Bytick 2 01001 ilina

Re: [PHP] PHP and DataSet from C# (VB)

2004-02-03 Thread Stuart
Sichta Daniel wrote: Is there a way how can PHP can handle data (get data ) from DataSet generated from dll buld in C# ? I have dll which is whole database layer and I need to retrieve data in php. If the DLL exposes an interface via COM, then yes. See http://php.net/com If not, you can but it

Re: [PHP] PHP and DataSet from C# (VB)

2004-02-03 Thread Stuart
Sichta Daniel wrote: THX for links but could you please give me url of that article ? http://www.phparch.com/issue.php?mid=22 Well worth the US$2.49!! -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP timeout

2004-02-03 Thread Mario
Hi all just a note that the problem was with the php 4.3.2 version finally and nothing to do with permissions. So if anyonwe has a similar problem, install a different version (the 4.3.4 is working fine here) Mario - Original Message - From: Mario [EMAIL PROTECTED] To: [EMAIL

[PHP] Re: Zlib Compression || Implementation || Bandwidth Savings?

2004-02-03 Thread Ammar Ibrahim
if this works for you, could you please post your story in the group. this is very interesting if you could save 50% of your bandwidth just by turning the zlib flag :) good Luck, Ammar Cf High [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey all. Having a good problem -- our

[PHP] Re: Adding one month to a given date

2004-02-03 Thread Ammar Ibrahim
Use mysql's Date Functions. works like magic :) Good Luck, Ammar Merlin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I am trying to add one month to a given date. Somehow I am lost inbetween mktime, date and unix timestamps ;-( Can anybody give me a hint on that?

Re: [PHP] SQL Query Not Kosher?

2004-02-03 Thread Marek Kilimajer
The argument to mysql_affected_rows must be mysql CONNECTION identifier (from mysql_connect), not RESULT identifier (from mysql_query). Removing the argument will work for you. Mr. Austin wrote: Hi all: I am trying to get this to work, but always get the same error: that the resource in

[PHP] my changes in php.ini are not recognized

2004-02-03 Thread Burckhardt √úbersohn
I am just starting in php (but 10 years experience in developping, last 5 years in JAVA). I have installed on a Windows 2000 PC: Apache 2.0 as localhost-server, MySQL 4.0.17 and PHP 4.3.4-Win32. All parts seem to work properly. My first steps into php also looked quite well. Next level: sending

Re: [PHP] starting a session

2004-02-03 Thread memoimyself
Hello Angelo, On 3 Feb 2004 at 9:36, Angelo Zanetti wrote: is there ever a certain situation where you would have something at the top of your page before session_start();? If so why would it be before session_start();? The closest thing to a certain situation that I can think of is when

[PHP] New lines

2004-02-03 Thread Nico Berg
Hi all, I have a list of words (sense): FIRST SECOND AND THIRD FOURTH etc fread gives back FIRST SECOND AND THIRD FOURTH How can i get the list as is? Nico -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Zlib Compression || Implementation || Bandwidth Savings?

2004-02-03 Thread rush
Ammar Ibrahim [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] if this works for you, could you please post your story in the group. this is very interesting if you could save 50% of your bandwidth just by turning the zlib flag :) if you check amount of data that gets transfered from

[PHP] R: [PHP] SQL Query Not Kosher?

2004-02-03 Thread Alessandro Vitale
try removing curly braces as follows: $query = mysql_query(UPDATE stories SET status='approved' WHERE story_id={$id}); | | | \/ $query = mysql_query(UPDATE stories SET status='approved' WHERE story_id=$id); or $query = mysql_query(UPDATE stories SET status='approved' WHERE

[PHP] Problems with exec

2004-02-03 Thread Jason Freeman
Hi there I'm having a bit of trouble with executing system commands. My script reads as follows. ? exec(smbclient -L \\xxx.xxx.xxx.xxx -N, $output); print_r($output); ? The problem is that when I run this script the page does not load and apache crashes. Does anyone know a way around this

Re: [PHP] New lines

2004-02-03 Thread Jason Wong
On Tuesday 03 February 2004 21:26, Nico Berg wrote: fread gives back FIRST SECOND AND THIRD FOURTH How did you ascertain that? How can i get the list as is? Taking a wild guess I would say you need to familiarise yourself with HTML before using PHP. In the meantime you could have a look at

php-general Digest 3 Feb 2004 14:16:27 -0000 Issue 2568

2004-02-03 Thread php-general-digest-help
php-general Digest 3 Feb 2004 14:16:27 - Issue 2568 Topics (messages 176645 through 176677): Re: auto forms from mysql database 176645 by: Justin Patrin Question about dates 176646 by: Renan G. Galang 176647 by: John Nichel 176650 by: John W. Holmes Re:

[PHP] Issue with 'W' in the date() function?

2004-02-03 Thread William Bailey
Hi all, Can somebody please explain this for me... [EMAIL PROTECTED]:/usr/home/wb [11]- php ?php $time = strtotime('now -5 weeks'); printf(\n\n%s is in week %d of the year %d\n\n, date('Y-m-d', $time), date('W', $time), date('Y', $time)); ? ^D 2003-12-30 is in week 1 of the year 2003 [EMAIL

RE: [PHP] New lines

2004-02-03 Thread Nico Berg
He, Jason thank's. BTW, the site www.gremlins.biz doesn't work, maybe learn something about webdeamons before making websites... Gr, Nico PS wrong guess! -Oorspronkelijk bericht- Van: Jason Wong [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 3 februari 2004 15:16 Aan: [EMAIL

Re: [PHP] New lines

2004-02-03 Thread Jason Wong
On Tuesday 03 February 2004 22:50, Nico Berg wrote: BTW, the site www.gremlins.biz doesn't work, maybe learn something about webdeamons before making websites... Works for me ... maybe you have the wrong browser. PS wrong guess! Well, I'm no mind-reader. If you're not going to post any

[PHP] PHP Telnet Deamon?

2004-02-03 Thread Dev
Hello all, I currently have a generic socket daemon running and doing what it should but I am wondering if there is a way to have a php script act as a telnet daemon? Thanks to you all in advance! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Issue with 'W' in the date() function?

2004-02-03 Thread Michael Nolan
William Bailey wrote: Hi all, Can somebody please explain this for me... [EMAIL PROTECTED]:/usr/home/wb [11]- php ?php $time = strtotime('now -5 weeks'); printf(\n\n%s is in week %d of the year %d\n\n, date('Y-m-d', $time), date('W', $time), date('Y', $time)); ? ^D 2003-12-30 is in week 1

Re: [PHP] starting a session

2004-02-03 Thread John W. Holmes
From: Angelo Zanetti [EMAIL PROTECTED] is there ever a certain situation where you would have something at the top of your page before session_start();? If so why would it be before session_start();? Sure, there could be. It just wouldn't be able to output anything unless you were using

[PHP] PHP code encryption

2004-02-03 Thread Hamid Hossain
Hi, I am working in a project for a customer of my company, I am using PHP and I want to prevent my customer from touching my code. The problem that I have to install the application in the customer computer. So, I am looking for a way to encrypt my PHP code. I heard that there is a way but I

Re: [PHP] Thumbnail Page

2004-02-03 Thread Robby Russell
PETCOL typed this on 02/02/2004 03:47 PM: I think I'm having a Bad Hair Day I have a table in my database with all my thumbnail filenames in it. My query pull that out, now I want to display the images in a table, I can get it to go down the page row by row, but I want it to say do five columns

Re: [PHP] Re: Issue with 'W' in the date() function?

2004-02-03 Thread William Bailey
Hi Mike, Because week 1 is defined as the first week with four or more days in the new year. Therefore, working backwards, the 29th-31st are also in week 1 in 2004. Thanks, So now i will just have to check the year and then work out from that what the correct year should be. (i need to get a

[PHP] Sessions vs. MySQL records?

2004-02-03 Thread Brian Dunning
I have an application where I want users to only be allowed 5 searches per day unless they create an account. There may not be a simple answer to this, but in general, would it be preferred to do this with 24-hour session variables, or by writing a MySQL record for each visitor with the date

[PHP] Printer Friendly pages

2004-02-03 Thread Alex Hogan
Hi All, I have a printer friendly page and I want to get rid of the referring url at the bottom of the page. How can I do this? I can't seem to find any reference to this in the archives. alex hogan ** The

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-02-03 Thread Chris Bruce
HI John, I have this working with the exception of when there is a ' in an email address that I want to remove. I have modified your line { $email_list .= '{$row['email']}',; }, with { $email_list .= str_replace(', \', '{$r[email]}',); }, but now it escapes all the single quotes. Is there a

RE: [PHP] PHP code encryption

2004-02-03 Thread Adrian Teasdale
Here are some for you to try: www.sourceguardian.com www.zend.com www.ioncube.com There is also one within mmCache (http://turck-mmcache.sourceforge.net/). Just read the forum about the current status of this open source project as the founder has gone to work for Zend and will no longer be

Re: [PHP] Re: Issue with 'W' in the date() function?

2004-02-03 Thread William Bailey
Ok. Its been a long day and my brain is starting to shut down so... How would i work out which year the 'W' relates to? I have a unix timestamp value and want to end up with the correct 'YW' value. William Bailey wrote: Hi Mike, Because week 1 is defined as the first week with four or more

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-02-03 Thread John W. Holmes
From: Chris Bruce Is there a php function that escapes single quotes in Mysql queries? addslashes() mysql_escape_string() mysql_real_escape_string() ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Comparing multiple Mysql tables to find duplicates

2004-02-03 Thread Jason Wong
On Wednesday 04 February 2004 00:09, Chris Bruce wrote: I have modified your line { $email_list .= '{$row['email']}',; }, with { $email_list .= str_replace(', \', '{$r[email]}',); }, but now it escapes all the single quotes. Is there a php function that escapes single quotes in Mysql queries?

Re: [PHP] Re: Issue with 'W' in the date() function?

2004-02-03 Thread Jason Wong
On Wednesday 04 February 2004 00:16, William Bailey wrote: Ok. Its been a long day and my brain is starting to shut down so... How would i work out which year the 'W' relates to? I have a unix timestamp value and want to end up with the correct 'YW' value. Would it have anything to do with

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Jason Wong
On Wednesday 04 February 2004 00:05, Brian Dunning wrote: I have an application where I want users to only be allowed 5 searches per day unless they create an account. Unless you require that a user logs in before they can perform a search then there is no meaningful way to track how many

Re: [PHP] Re: Issue with 'W' in the date() function?

2004-02-03 Thread William Bailey
I really have to stop replying to myself :) Anyway i think that i have the solution... function timestamp2YearWeek ($time) { if (date('z', $time) 360 date('W', $time) == 1) { return sprintf('%d%02d', date('Y', $time)+1, date('W', $time)); }else{ return sprintf('%d%02d',

[PHP] mcrypt don't work.

2004-02-03 Thread francesco
Hi all, i've problem with mcrypt_cfb function. This is the code: $string = A simple text string; $key = My key; line 55: $encrypted = mcrypt_cfb(MCRYPT_IDEA, $key, $string, MCRYPT_ENCRYPT); $key = My key; line 59: $string = mcrypt_cfb(MCRYPT_IDEA, $key, $encrypted, MCRYPT_DECRYPT); I've

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Raditha Dissanayake
Hi, By sessions i assume you mean cookies (session information can be stored in other places such as a mysql database). If you do store the information in a cookie, your visitors can easily delete the cooky and get past your protection mechanism. Having said that opting for a mysql table that

[PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Jack Bauer
Hi, i'm looking for a method to setup php to use a proxy for all http/ftp connections. i know it's possible to write a script that can do this, but i need to setup php itself for that (php.ini or something like this) i tried different tools for that to tunnel all connection but i didn't found

Re: [PHP] PHP Telnet Deamon?

2004-02-03 Thread Raditha Dissanayake
hi, Theoretically possible but practically very difficult. The telnet protocol is a lot more complex than it looks at first glance. Even to login you need to do a lot of negotiation. Dev wrote: Hello all, I currently have a generic socket daemon running and doing what it should but I am

[PHP] Re: starting a session

2004-02-03 Thread Rob Adams
Angelo Zanetti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, is there ever a certain situation where you would have something at the top of your page before session_start();? If so why would it be before session_start();? I have a situation where I'm saving an object in

Re: [PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Raditha Dissanayake
Hi, There is a topic called transparent proxying. Don't have any links in my bookmarks but if you visit either the squid proxy websites or the iptables website you will find it. (this is usually done with this combination but can be done with other proxy/firewall combos as well). Basically

[PHP] Regular expressions

2004-02-03 Thread pete
Hi there, I have serious probems resolving regular expressions. I wish to replace a substring with a given pattern with results of a function with a backreference used as argument. SAMPLE: function check_this_out($somevalue) { $url_array = ''; $i=0; $query = SELECT SomeRow FROM SomeTable

Re: [PHP] Regular expressions

2004-02-03 Thread Jochem Maas
Pete, you can probably do what you want with preg_replace_callback: http://nl2.php.net/manual/en/function.preg-replace-callback.php only the function call will be set up slightly differently; namely you don't pass the callback reference directly, instead the callback function that is called

Re: [PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Jack Bauer
The problem is that i'm using a windows for that, the anomizer i use to connect to different proxys waits on 127.0.0.1/localhost, so i can't redirect the whole outbound traffic on port 80 for that Hi, There is a topic called transparent proxying. Don't have any links in my bookmarks but if you

[PHP] Problem setting include_path for virtual servers

2004-02-03 Thread Pablo Gosse
Hi folks. I have two virtual servers running under Apache. I want each to have a different include_path so I've set the following in each conf file: For Domain 1: IfModule mod_php4.c php_value include_path .:/u0/vservers/domain1.mydomain.ca/html /IfModule For Domain 2 IfModule mod_php4.c

Re: [PHP] mcrypt don't work.

2004-02-03 Thread Jochem Maas
Francesco, mcrypt_ functions rely on a PHP extension, your syntax look ok, PHP is telling you that it could not load the required extension (module). the following page from the PHP manual tells more about what you need in order to use mcrypt_ functions:

[PHP] Re: Zlib Compression || Implementation || Bandwidth Savings?

2004-02-03 Thread CF High
Hey all. No such luck re: just using ini_set() to compress pages Rush's link is HIGHLY useful -- thanks Rush! http://www.phpbuilder.com/columns/argerich20010125.php3?page=2 Works without a hitch in IE 5+ and NN 4.7+ with PHP 4.2.3 --Noah Ammar Ibrahim [EMAIL PROTECTED] wrote in

[PHP] Re: Zlib Compression || Implementation || Bandwidth Savings?

2004-02-03 Thread CF High
My lord, this rocks! Our pages load at least twice as fast now, and bandwidth will likely be reduced by at least a factor of 2. I would strongly recommend utilizing zlib compression functions to anyone looking to speed page delivery reduce bandwidth! --Noah Rush [EMAIL PROTECTED] wrote in

Re: [PHP] mcrypt don't work.

2004-02-03 Thread Jas
Have you tried to check if PHP has been compiled with mcrypt? try this on a page ?php phpinfo(); ? Look for mcrypt directives, if not there you need to download it and compile it like so. http://mcrypt.sourceforge.net Get both the libmcrypt and mcrypt compressed archives from command prompt on

[PHP] Session (maybe cookies)

2004-02-03 Thread Rolf van de Krol
Hi all, I tried to start a session by this code: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?php session_start();

Re: [PHP] New lines

2004-02-03 Thread John Nichel
Nico Berg wrote: He, Jason thank's. BTW, the site www.gremlins.biz doesn't work, maybe learn something about webdeamons before making websites... His site works for me. Maybe you shouloh, nevermind. Gr, Nico PS wrong guess! If you were a bit more clear about your issue, and if you

Re: [PHP] Session (maybe cookies)

2004-02-03 Thread Adam Bregenzer
On Tue, 2004-02-03 at 13:44, Rolf van de Krol wrote: I tried to start a session by this code: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html;

Re: [PHP] Session (maybe cookies)

2004-02-03 Thread Matt Matijevich
snip !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?php session_start(); echo(session_id()); ? /body /html /snip Take a look

Re: [PHP] Problem setting include_path for virtual servers

2004-02-03 Thread John Nichel
Pablo Gosse wrote: Hi folks. I have two virtual servers running under Apache. I want each to have a different include_path so I've set the following in each conf file: For Domain 1: IfModule mod_php4.c php_value include_path .:/u0/vservers/domain1.mydomain.ca/html /IfModule For Domain 2

Re: [PHP] Problem setting include_path for virtual servers

2004-02-03 Thread Adam Bregenzer
On Tue, 2004-02-03 at 12:46, Pablo Gosse wrote: However when I call the following file under either domain: ?php echo get_include_path(); ? I get this: .:/usr/local/lib/php Are you sure you have the correct Options set for the directories that those files are under? Try setting:

Re: [PHP] Session (maybe cookies)

2004-02-03 Thread John Nichel
Matt Matijevich wrote: snip Take a look at the manual for sessions session_start() has to be the first thing called It doesn't have to be the first thing called. It only has to be called BEFORE any output is sent to the browser IF you are using cookie based. -- By-Tor.com It's all about the

Re: [PHP] Regular expressions

2004-02-03 Thread John W. Holmes
From: Jochem Maas [EMAIL PROTECTED] alternatively (actually this looks like the easier way to do it!) use preg_replace(), with the 'e' modifier tagged onto the end of the replacement expression: the 'e' modifier causes the expression to be evaluated as PHP.

RE: [PHP] Printer Friendly pages

2004-02-03 Thread jon roig
I think what you're talking about is a function of the explorer browser. The user would have to remove it him/herself. - jon -Original Message- From: Alex Hogan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 8:12 AM To: PHP General list Subject: [PHP] Printer

Re: [PHP] Printer Friendly pages

2004-02-03 Thread John W. Holmes
From: Alex Hogan [EMAIL PROTECTED] I have a printer friendly page and I want to get rid of the referring url at the bottom of the page. How can I do this? I can't seem to find any reference to this in the archives. This is controlled by the browser; there's no way for PHP to change it.

RE: [PHP] New lines

2004-02-03 Thread Robert Sossomon
There was a wong answer and then there is the right answer: $fp = fopen($file,r); while (!feof($fp)) { $line = fgets($fp, 4096); //gets one line at a time echo $line; // Or whatever else you want to do } fclose($fp); HTH. Robert -- PHP General Mailing List

Re: [PHP] Sessions vs. MySQL records?

2004-02-03 Thread Adam Bregenzer
On Tue, 2004-02-03 at 11:05, Brian Dunning wrote: I have an application where I want users to only be allowed 5 searches per day unless they create an account. There may not be a simple answer to this, but in general, would it be preferred to do this with 24-hour session variables, or by

RE: [PHP] Printer Friendly pages

2004-02-03 Thread Alex Hogan
Thanks., alex -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 1:27 PM To: Alex Hogan; PHP General list Subject: Re: [PHP] Printer Friendly pages From: Alex Hogan [EMAIL PROTECTED] I have a printer friendly page and I want

Re: [PHP] New lines

2004-02-03 Thread Jason Wong
On Wednesday 04 February 2004 03:26, Robert Sossomon wrote: There was a wong answer I assume that was a weak attempt at a cheap joke, or else you couldn't spell, or you need a new keyboard, or something. and then there is the right answer: Whether that is the right answer depends on why the

Re: [PHP] New lines

2004-02-03 Thread John Nichel
Robert Sossomon wrote: There was a wong answer and then there is the right answer: $fp = fopen($file,r); while (!feof($fp)) { $line = fgets($fp, 4096); //gets one line at a time echo $line; // Or whatever else you want to do } fclose($fp); HTH. Robert If all the OP wants to do

Re: [PHP] New lines

2004-02-03 Thread John W. Holmes
From: John Nichel [EMAIL PROTECTED] If all the OP wants to do is echo out the file, then why not just use the file() function. Then each line is loaded up into an array element, and you've saved yourself a bit of cpu. And your example above doesn't address the OP's claim that it is not

[PHP] Document generation from XML

2004-02-03 Thread Russell Seymour
Good evening list, I apologise profusely if after reading anyone thinks that is OT, but I relally need some pointers with a project I am working on. I have searched the Internet for information on XML document generation but there is too much information that I cannot decide which way to go.

Re: [PHP] New lines

2004-02-03 Thread John Nichel
John W. Holmes wrote: From: John Nichel [EMAIL PROTECTED] If all the OP wants to do is echo out the file, then why not just use the file() function. Then each line is loaded up into an array element, and you've saved yourself a bit of cpu. And your example above doesn't address the OP's claim

Re: [PHP] Document generation from XML

2004-02-03 Thread Ray Hunter
On Tue, 2004-02-03 at 13:50, Russell Seymour wrote: In the beginning only one output format was required, HTML and then PDF was a requirement. More and more formats are now required by my users and rather than create a new output script for each different format I am thinking about outputting

RE: [PHP] New lines

2004-02-03 Thread Robert Sossomon
A LOT of this is pure speculation though, which is why I sent the one I did. Since with it he can patch whatever data he gets from $line into his code wherever he needs it, whether he flat file is pure text or some HTML or if the output is going to be a drop-down list (nl2br wouldn't work in this

Re: [PHP] Document generation from XML

2004-02-03 Thread Cesar Cordovez
I had exactly the same problem some time ago... My solution was very similiar of what you are trying to do, but my internal format is not XML but a group of arrays (faster processing). Then using some OOP I created the diferent output formats for my reports, therefore I have a microsoft

Re: [PHP] Regular expressions

2004-02-03 Thread pete
Thank you very much Jochem and John. It works like a charm now, and I was beginning to grow weary after experimenting with result sets for almost 10 hours now. How would you - by the way - concatenate text to the replacement string? ;-Pete On Tue, 3 Feb 2004 14:15:00 -0500, [EMAIL PROTECTED]

RE: [PHP] Document generation from XML

2004-02-03 Thread Williams, Olwen - SAL
I'm working with another (very unusual) webserver on our intranet. When I wanted to do graphs recently I settled on an XML output from my other server, and a PHP routine on apache that produces the graph. The other server references the PHP which outputs a .png sending enough information to that

[PHP] include_once() isnt!

2004-02-03 Thread Rob
Ive programmed with C/C++ for years and have recently started to dabble in PHP. Ive written a multi-part script for a friend and Ive run into a problem. Ive got 14 include files 3 of which are basic components that may or may not be used by other components. One is an authorisation class, another

RE: [PHP] New lines

2004-02-03 Thread Nico Berg
Guys, guys, No quarrel please! The website of mr. Wong works fine. The first time it take a long time to open and I falsly thought the site didn't work. But on the other site i know what html is and no the list i want has nothing to do with html! The code I use is not mine, it is a hangman game

[PHP] Re: include_once() isnt!

2004-02-03 Thread Justin Patrin
Rob wrote: Ive programmed with C/C++ for years and have recently started to dabble in PHP. Ive written a multi-part script for a friend and Ive run into a problem. Ive got 14 include files 3 of which are basic components that may or may not be used by other components. One is an authorisation

[PHP] FreeBSD to Linux -- PHP Issues

2004-02-03 Thread Daryl Meese
Hello all, I am considering changing hosting providers and moving from FreeBSD to Linux. My question is are there any PHP related issues to moving (functions that don't work on Linux but do on FreeBSD, etc)? I doubt there are but have to cover the bases. Also, if you got any suggestions for

RE: [PHP] New lines

2004-02-03 Thread Matt Matijevich
[snip] This is where the var's $list and $additional_letters are filled. The file is called hangman.php. I want to open this file, put the words into a html file so that someone can change them and write them back. That's it. [/snip] is it out of the question to store the values in ther own

Re: [PHP] FreeBSD to Linux -- PHP Issues

2004-02-03 Thread John Nichel
Daryl Meese wrote: Hello all, I am considering changing hosting providers and moving from FreeBSD to Linux. My question is are there any PHP related issues to moving (functions that don't work on Linux but do on FreeBSD, etc)? I doubt there are but have to cover the bases. Nope, no issues that

Re: [PHP] Regular expressions

2004-02-03 Thread Jochem Maas
replacement is evaluated... therefore: function check_this_out($arg) { return a href='#'$arg/a; } $myString = 'hello'; $pattern = '/(.*)/e'; $replacement = check_this_out('\\1' . ' $myString'); echo preg_replace($pattern, $replacement, 'test says:'); [EMAIL PROTECTED] wrote: Thank you very

[PHP] authentication comparing to /etc/passwd

2004-02-03 Thread Adam Williams
Hi, is there a PHP function or some sort of way to have a user enter their username and password in a form, and compare the username and password and see if the username exists and the password is correct? basically I want to have a page where a person enters their username and password and if

Re: [PHP] FreeBSD to Linux -- PHP Issues

2004-02-03 Thread Tim Thorburn
I've moved sites between 3 or 4 different hosting providers until I found one that didn't sell out the week after we signed up, and was actually fast enough along with decent tech support. Never had any troubles with PHP as long as the version was somewhat similar. Started with Sun Solaris,

Re: [PHP] FreeBSD to Linux -- PHP Issues

2004-02-03 Thread Ryan A
Hi, I myself had reserverations about moving to a FreeBSD host, but have had an excellient experience with the guys at www.hub.org. Quick support, access to my httpd.conf and php.ini files, ssh and a whole lot more. Both the guys there who i have spoken too are real cool too (chris and marc) and

Re: [PHP] PHP code encryption

2004-02-03 Thread Jason Sheets
I and another person am now maintaining Turck MMCache, another release will be made shortly but until then the current release should work fine. There is also a web based encoder for Turck MMCache at http://phpcoder.sourceforge.net The great thing about MMCache is it is open source and usually

[PHP] PEAR DB::isError acting strange

2004-02-03 Thread David Clymer
I'm having some problems with the DB::isError function identifying a non-object as an error object (or so it seems). I'm using postgreSQL 7.3.x. The relevant code is below: /***[ my code start ]***/ $sql_queries = array();

Re: [PHP] Document generation from XML

2004-02-03 Thread Russell Seymour
Ray, I can create the XML of the document that I want to generate using the built in XML functions in PHP. THe thing I then want to do is be able to do is then use that XML to create documents in multiple formats, e.g. PDF. I think that I can use DocBook or Apache FO to do this, but I am not

[PHP] What should the permissions on a PHP file be?

2004-02-03 Thread Pooya Eslami
I need to know what is the most secure and reliable way to put permissions on a .php file. I usually put it as rw-r-r, is this good or is there a better way of arranging the permissions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Document generation from XML

2004-02-03 Thread Greg Beaver
Hi Russell, If you're documenting PHP software, you might consider using phpDocumentor. Your manual would be in DocBook, and phpDocumentor would both transform to HTML/PDF/CHM, and link to the auto-parsed API docs straight from the source. Kind of handy for people who'd rather code than

Re: [PHP] What should the permissions on a PHP file be?

2004-02-03 Thread John Nichel
Pooya Eslami wrote: I need to know what is the most secure and reliable way to put permissions on a .php file. I usually put it as rw-r-r, is this good or is there a better way of arranging the permissions? Depends on your environment. I usually have mine set up as rw-rw (directories as

Re: [PHP] Re: Document generation from XML

2004-02-03 Thread daniel
Hi Russell, If you're documenting PHP software, you might consider using phpDocumentor. Your manual would be in DocBook, and phpDocumentor would both transform to HTML/PDF/CHM, and link to the auto-parsed API docs straight from the source. Kind of handy for people who'd rather code

Re: [PHP] What should the permissions on a PHP file be?

2004-02-03 Thread Pooya Eslami
I need to know what is the most secure and reliable way to put permissions on a .php file. I usually put it as rw-r-r, is this good or is there a better way of arranging the permissions? Depends on your environment. I usually have mine set up as rw-rw (directories as rwxrwx---)

[PHP] Need to refine this:

2004-02-03 Thread John Taylor-Johnston
Hi, I need to refine this. I'm tired ... long day. I would like to echo $mydata-district only once unless it changes. echo table\n; while ($mydata = mysql_fetch_object($glquery)) { #- if $mydata-district is different, then echo tr bgcolor=\#CC\td$mydata-district/tdtd/tdtd/td/tr\n;

[PHP] Re: What should the permissions on a PHP file be?

2004-02-03 Thread John Taylor-Johnston
rw-r-r should do it. Permissions really only become an issue using Perl. PHP is very accomodating that way. Pooya Eslami wrote: I need to know what is the most secure and reliable way to put permissions on a .php file. I usually put it as rw-r-r, is this good or is there a better way of

[PHP] Re: authentication comparing to /etc/passwd

2004-02-03 Thread John Taylor-Johnston
if($PHP_AUTH_USER != user1) || ($PHP_AUTH_PW != password) ... or somehting like that. I can't find it in the manual, but it is there someplace. Adam Williams wrote: Hi, is there a PHP function or some sort of way to have a user enter their username and password in a form, and compare the

[PHP] Re: authentication comparing to /etc/passwd

2004-02-03 Thread John Taylor-Johnston
Found this too: ? if(!isset($PHP_AUTH_USER)) { Header(WWW-authenticate: basic realm=\$SID\); Header(HTTP/1.0 401 Unauthorized); $title=Login Instructions; echo blockquote You are not authorised to enter the site

Re: [PHP] Need to refine this:

2004-02-03 Thread Jason Wong
On Wednesday 04 February 2004 12:56, John Taylor-Johnston wrote: Please use a meaningful subject. I need to refine this. I'm tired ... long day. You're tired so you want others to do your work? I would like to echo $mydata-district only once unless it changes. Maintain a 'flag' which stores

Re: [PHP] What should the permissions on a PHP file be?

2004-02-03 Thread John Nichel
Pooya Eslami wrote: I need to know what is the most secure and reliable way to put permissions on a .php file. I usually put it as rw-r-r, is this good or is there a better way of arranging the permissions? Depends on your environment. I usually have mine set up as rw-rw (directories as

[PHP] Re: Sendmail wrapper

2004-02-03 Thread Manuel Lemos
On 02/02/2004 06:18 PM, Federico Petronio wrote: Hi all... I have a chrooted Apache/PHP on Solaris 8 working fine except for one PHP function, mail(). I read that in Unix environments there is not possible to make PHP use a remote SMTP and it needs to find a sendmail executable un the path.

Re: [PHP] Need to refine this:

2004-02-03 Thread John Taylor-Johnston
Jason, You're tired so you want others to do your work? No ... Maintain a 'flag' which stores 'previous' value of $mydata-district. If 'flag' and $mydata-district differ print $mydata-district and update 'flag'. I cannot declare $temp = $mydata-district; outside while ($mydata so ... ? I'm

Re: [PHP] Need to refine this:

2004-02-03 Thread Douglas Douglas
Just my two cents :) $temp = ; echo table\n; while ($mydata = mysql_fetch_object($myquery)) { if ($temp != $mydata-district) { $temp = $mydata-district; echo tr bgcolor=\#CC\td$mydata-district/td/tr\n; } echo tr bgcolor=\#CC\td$mydata-city/td

  1   2   >