Re: [PHP] fwrite not working in php3

2003-07-17 Thread Curt Zirzow
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi there i have a little problem writing files on a php3 server this code worked yesterday but isnt $handle = fopen(/www_tools/apache/htdocs/phptest/temp_real/test.inc,'a'); Test your $handle to see if you successfully opened the file. if (!

Re: [PHP] reading from dir and displaying thumbs

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 02:44, Ryan A wrote: I want to convert my old java greetings programs into php scripts but am stuck on one little thing. I have a bunch of thumbnails in a 3 directories, the problem is the number of thumbnails in each directory is differient...how do i first make the

Re: [PHP] state (Field Problem)

2003-07-17 Thread Louie Miranda
got it working.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 17, 2003 1:49 PM Subject: Re: [PHP] state (Field Problem) On Thursday 17 July 2003 12:56, Louie Miranda wrote: Given

Re: [PHP] How unsafe is register_globals?

2003-07-17 Thread Curt Zirzow
Paul Chvostek [EMAIL PROTECTED] wrote: I've got this new server running with folks from all over uploading PHP code. I don't know all the folks, so I've turned on safe_mode, set an open_basedir to each user's documentroot, and left register_globals at its default. And now I'm getting

Re: [PHP] STRING FORMATTING QUESTION

2003-07-17 Thread Curt Zirzow
Dale Hersh [EMAIL PROTECTED] wrote: My question is regarding strings in php. I have this form in which the user fills in a description. The problem is that if the user uses any aprostrophe's or any other unusual characters in the form, the string can not be inserted into my ms sql database.

Re: [PHP] Anyone for cookies and milk? :-)

2003-07-17 Thread Nomadeous
From the official doc: http://www.php.net/manual/en/function.setcookie.php All the arguments except the name argument are optional. You may also replace an argument with an empty string () in order to skip that argument. Because the expire and secure arguments are integers, they cannot be skipped

Re: [PHP] Code and Good Design Methods

2003-07-17 Thread Ray Hunter
Actually, MVC works really well with XML technologies, however, there needs alot of work in php's core to fully utilize the benefits of an mvc paradigm. -- BigDog On Wed, 2003-07-16 at 04:12, Joel Rees wrote: Hi Joel, Thanks for nice comments on the XML, XSL. I want to know more

Re: [PHP] fwrite not working in php3

2003-07-17 Thread daniel
sorry guys the server was full again , doesnt return any error at all funny hey On Thursday 17 July 2003 09:46, [EMAIL PROTECTED] wrote: hi there i have a little problem writing files on a php3 server this code worked yesterday but isnt $handle =

[PHP] Recomposed per instructions??? jpeg photo file upload problem

2003-07-17 Thread John T. Beresford
Hi All, I have a system that allows a person to upload photos to the server via an admin web form. I have been using the code for about a year with no problem. I designed it specifically for a client of mine that has just started cruising on a sailboat for a few years. They tryed uploading a

Re: [PHP] Display HTML/PHP code on a web page

2003-07-17 Thread Curt Zirzow
Jason Paschal [EMAIL PROTECTED] wrote: I've googled for it, but nothing came up. How do I display code on a page without it being executed? This has to do with how your webserver is set up, because it see's that its a php file it runs it thruough php. i want the page to display HTML code as

Re: [PHP] imagecreate() error

2003-07-17 Thread Michelle Bernard
no errors have come up yet, still getting the same problem too, I am pulling out my hair :) everything else works nice and smoothly just this whole gd thing... Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Do you get any error at apache start up or in error logs?

Re: [PHP] Anyone for cookies and milk? :-)

2003-07-17 Thread Curt Zirzow
Nomadeous [EMAIL PROTECTED] wrote: From the official doc: http://www.php.net/manual/en/function.setcookie.php All the arguments except the name argument are optional. You may also replace an argument with an empty string () in order to skip that argument. Because the expire and secure

Re: [PHP] XML

2003-07-17 Thread Ray Hunter
1. How efficient is to use XML+XSLT solution? Does it add processing overhead to the system? The efficientcy is relative to many factors, however I can stress this. The style sheets can be cached client side and then only xml data can be sent to the user. This reduces bandwidth and allows the

Re: [PHP] Display HTML/PHP code on a web page

2003-07-17 Thread Ray Hunter
I've googled for it, but nothing came up. How do I display code on a page without it being executed? If you want to show php source then you can use show_source function or highlight_file function. -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Interesting question re HTTP Ranges and PHP

2003-07-17 Thread Curt Zirzow
Dan Goodes [EMAIL PROTECTED] wrote: Hi folks, I currently have an interesting dilemma - any help is appreciated (if possible, CC directly to [EMAIL PROTECTED] as well as the list). What Ive got is a PHP wrapper script that performs authetication, and uses readfile() to return the

[PHP] Re: Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)

2003-07-17 Thread Ivo Fokkema
It prompts you for downloading the file because Apache doesn't recognize it as a PHP-file but sends it directly to the browser. The browser then doesn't find any known extension (.txt, .htm, .html) and prompts for download. As Marek allready explained, you need to configure Apache to recognize

Re: [PHP] XML

2003-07-17 Thread Curt Zirzow
Ray Hunter [EMAIL PROTECTED] wrote: 1. How efficient is to use XML+XSLT solution? Does it add processing overhead to the system? The efficientcy is relative to many factors, however I can stress this. The style sheets can be cached client side and then only xml data can be sent to the

[PHP] Re: really no way to get byte size of variable?

2003-07-17 Thread Ivo Fokkema
Baroiller Pierre-Emmanuel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, did you try count($value) and strlen($value) ? count($value) will give size of an array, and strlen($value) size of a string ... Actually, count($value) returns the amount of values within the array, not

Re: [PHP] How unsafe is register_globals?

2003-07-17 Thread Paul Chvostek
On Thu, Jul 17, 2003 at 01:56:57PM +0800, Jason Wong wrote: gets the error php_flag not allowed here. I see from the comments at http://www.php.net/register_globals that I need AllowOverride Options to make that function ... but is it possible to have fine-grained enough an

[PHP] Re: Need Help: Please click on Test Link

2003-07-17 Thread Ivo Fokkema
Well, worked nicely for me... Can you tell me where you can fetch this kind of information? -- [Win2000 | Apache/1.3.23] [PHP/4.2.3 | MySQL/3.23.53] Ivo Fokkema PHP MySQL programmer Leiden University Medical Centre Netherlands Suhas Pharkute [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Re: include statement giving me hives! - help

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 06:25, DougD wrote: when you call your script, is $point defined somewhere ? if $point is empty, you'll get an empty string for $links_include and include $links_include will not work. yes, I should have mentioned: $point is defined in the URL string

Re: [PHP] Recomposed per instructions??? jpeg photo file upload problem

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 14:40, John T. Beresford wrote: I have a system that allows a person to upload photos to the server via an admin web form. I have been using the code for about a year with no problem. I designed it specifically for a client of mine that has just started cruising on

Re: [PHP] really no way to get byte size of variable?

2003-07-17 Thread Curt Zirzow
Petre Agenbag [EMAIL PROTECTED] wrote: Hi List Just want to make sure: Is there no way for me to easily determine the byte size occupied by a variable (regardless of type)? It might be trivial, or I'm missing the point (as per usual)... I think I'm missing the point. I'm not sure

Re: [PHP] Recomposed per instructions??? jpeg photo file upload problem

2003-07-17 Thread Curt Zirzow
John T. Beresford [EMAIL PROTECTED] wrote: Hi All, Hi [...] The relevent PHP code from my system for the checking is: if ($type != image/jpeg) { $ReturnSaying = !! The file is not a JPEG picture. Please try again; include(photo_error.php); exit; where is the variable $type comming

[PHP] session objects crossing applications

2003-07-17 Thread Jason
I need help. I've got two copies of my application.foobar and foobar_dev When I go to http://foo.com/foobar/ a session is created and a database connection class is established and placed into this session. Then if within the same browser (using internet explorer) I go to

[PHP] PHP code beautifier?

2003-07-17 Thread Jacob Vennervald Madsen
Hi List Does anybody know any good PHP code beautifiers/formaters? Preferably one which is configurable so I can specify the exact format I want. Cheers, Jacob Vennervald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] retrieving form checkbox values

2003-07-17 Thread caspar kennerdale
I have a form which I want to post multiple values from one function to another using checkboxes. Having one value is simple- the form submits the value $File and is then retrieved in the target function via $_Request['File'] So far so good. Now I want to have multiple values for $File,

Re: [PHP] retrieving form checkbox values

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 16:45, caspar kennerdale wrote: I have a form which I want to post multiple values from one function to another using checkboxes. Having one value is simple- the form submits the value $File and is then retrieved in the target function via $_Request['File'] So far so

Re: [PHP] How unsafe is register_globals?

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 15:07, Paul Chvostek wrote: Take control of the setting yourself by setting it httpd.conf, inside the container of the virtual host in question. Not so easy with mod_vhost_alias, given that I want it to apply only to certain users, and possibly only for directories

Re: [PHP] PHP POS program

2003-07-17 Thread Davy Obdam
What about this, i looked on google and found this - http://www.google.com/search?q=point-of-sale%20program%20+%20phpsourceid=mozilla-searchstart=0start=0ie=utf-8oe=utf-8 http://www.google.com/search?q=point-of-sale%20program%20+%20phpsourceid=mozilla-searchstart=0start=0ie=utf-8oe=utf-8 And

Re: [PHP] Recomposed per instructions??? jpeg photo file uploadproblem

2003-07-17 Thread John T. Beresford
At 8:13 AM + on 7/17/03, Curt Zirzow wrote: The relevent PHP code from my system for the checking is: if ($type != image/jpeg) { $ReturnSaying = !! The file is not a JPEG picture. Please try again; include(photo_error.php); exit; where is the variable $type comming from? Hi Curt, It's

RE: [PHP] retrieving form checkbox values

2003-07-17 Thread Sævar Öfjörð
I think you have to do input type=checkbox name=File[] Then $File becomes an array. If you want to retrieve the value for each checkbox you can use a for loop and do value=$File[$i] -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 17. júlí 2003 08:58 To: [EMAIL

Re: [PHP] include statement giving me hives! - help

2003-07-17 Thread Marek Kilimajer
DougD wrote: I am new to all this, but here is the basic code: $link_titles = file('links/master.txt'); $links_include = $link_titles[$point]; // path to directory include $links_include; If I echo the value of $links_include just prior to the include() function it contains what I would

RE: [PHP] retrieving form checkbox values

2003-07-17 Thread George Pitcher
Here's my register globals off version: Make sure that your form send a post with the highest index value [howmany]. $howmany=$_POST['howmany']; for ($index = 1; $index $howmany; $index++){ $checkbox = 'checkbox'.$index; $checkbox= $_POST[$checkbox]; ... Repeat for your

Re: [PHP] session objects crossing applications

2003-07-17 Thread Marek Kilimajer
Set up cookie parameters before calling session_start(): void session_set_cookie_params ( int lifetime [, string path [, string domain [, bool secure]]]) Jason wrote: I need help. I've got two copies of my application.foobar and foobar_dev When I go to http://foo.com/foobar/ a session is

[PHP] zend optimizer for 4.3.2

2003-07-17 Thread Michael Rubin
Does anyone know when Zend Optimizer will support up to PHP version 4.3.2? Currently it only supports up to 4.3.0. Sincerely, Michael Rubin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] retrieving form checkbox values

2003-07-17 Thread Marek Kilimajer
This is not necessary, you can do foreach($_POST['File'] as $file) { // ... } George Pitcher wrote: Here's my register globals off version: Make sure that your form send a post with the highest index value [howmany]. $howmany=$_POST['howmany']; for ($index = 1; $index $howmany;

[PHP] Oracle CMS

2003-07-17 Thread Chris Cook
Are there any open source CMSs that work with Oracle? Thanks, Chris _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Need Help: Please click on Test Link

2003-07-17 Thread Peter Clarke
Suhas Pharkute wrote: http://sspsoft.com/test/ip2ll.php (in case if you cannot get it, please click on http://ns1.webhostdns.us and then click on the website link.) which should identify your Country, State, City. Please click on one of the buttons to provide feedback. I'm in London, England and

RE: [PHP] zend optimizer for 4.3.2

2003-07-17 Thread Adrian Teasdale
I might be wrong (it's been known in the past!) but I think that theirs supports 4.3.x Best regards Adrian sourceguardian.com -Original Message- From: Michael Rubin [mailto:[EMAIL PROTECTED] Sent: 17 July 2003 10:30 To: [EMAIL PROTECTED] Subject: [PHP] zend optimizer for 4.3.2

Re: [PHP] Recomposed per instructions??? jpeg photo file upload problem

2003-07-17 Thread Marek Kilimajer
I don't understand how it has been working till now! My IE6.0 and IE5.0 sends image/pjpeg for jpg files. John T. Beresford wrote: At 8:13 AM + on 7/17/03, Curt Zirzow wrote: The relevent PHP code from my system for the checking is: if ($type != image/jpeg) { $ReturnSaying = !! The file

RE: [PHP] Re: Need Help: Please click on Test Link

2003-07-17 Thread Brian S. Drexler
All I got was Error -Original Message- From: Peter Clarke [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 7:14 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Need Help: Please click on Test Link Suhas Pharkute wrote: http://sspsoft.com/test/ip2ll.php (in case if you cannot get it,

Re: [PHP] bcc on php

2003-07-17 Thread Wendell Brown
On Thu, 17 Jul 2003 05:55:27 +, Curt Zirzow wrote: Example 4. Sending complex email http://www.php.net/manual/en/function.mail.php um.. don't use that example, it is the incorrect way to send a bcc. for one it wont work and two the people will see the bcc, defeating the purpose of a bcc.

Re: [PHP] zend optimizer for 4.3.2

2003-07-17 Thread MIKE YRABEDRA
on 7/17/03 7:20 AM, Adrian Teasdale at [EMAIL PROTECTED] wrote: I might be wrong (it's been known in the past!) but I think that theirs supports 4.3.x The OS X version came out yesterday and it DOES require 4.3.2 Not sure about the other platforms.

[PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread MIKE YRABEDRA
I just upgraded to 4.3.2 and one of my scripts will not work now. The script basically used fopen to get a file, then it would write it to a static page (cutting down on DB access). The script has worked fine for months under 4.3.0, but not under 4.3.2 It looks as if it only opens and writes

Re: [PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread desa15
check if allow_url_fopen is on in /etc/php.ini or C:\Windows\php.ini Un saludo, Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bcc on php

2003-07-17 Thread Abdolhamid Joukar
be aware that BCC header some times don't works properly on Windows platforms and the recipient can see the BCC header from the source of mail! :o regards Abdolhamid Joukar ] - Original Message - From: Ralph Guzman [EMAIL PROTECTED] To: 'Louie Miranda' [EMAIL PROTECTED]; [EMAIL

Re: [PHP] Display HTML/PHP code on a web page

2003-07-17 Thread Abdolhamid Joukar
i'm not sure but i think a tag in html is available which name code and /code you should put your codes between this couple ... regards Abdolhamid Joukar - Original Message - From: Jason Paschal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 17, 2003 9:29 AM

[PHP] NON-PHP question (I-frames)

2003-07-17 Thread Ron Allen
Do we have any I-frame experts for IE. I am trying to use multiple I-frames in Internet Explorer. When two of them are applied they both lose their positon attributes. Any clues? html head style type=text/css #floatframe {position:absolute; left: 40px; top: 40px;

RE: [PHP] Display HTML/PHP code on a web page

2003-07-17 Thread Jay Blanchard
[snip] i'm not sure but i think a tag in html is available which name code and /code [/snip] You can also put your code between pre/pre tags (pre-formatted text) I do this to display pre formatted text in text area boxes h3 class=nomargin?php print($rowart-title); // article title ?/h3

[PHP] Linux Installation

2003-07-17 Thread Haseeb
hi, first of all i don't know anything about linux . wehad a administratorfor all our linux requirements, now that the company has fired him (without hiring anyone for the job) i am left on my own . i want to use vpopmail extension. but the problem is it is not installed on the linux server.

Re: [PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread MIKE YRABEDRA
on 7/17/03 7:55 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: check if allow_url_fopen is on in /etc/php.ini or C:\Windows\php.ini It is, and fopen IS working. The problem is that it is only pulling half of the page down? Like it is reaching a limit to the amount of data it will pull???

Re: [PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread desa15
ohh, excuse me, i read bad your message. What is the size of the file ?? check in php.ini the postmax_size param. Is very strange Un saludo, Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] deleting one cookie is deleting both..why? (tiny scripts)

2003-07-17 Thread Ryan A
Hi again, I am setting 2 cookies like so:(setCookie.php) ?php setcookie(name1,1,0,,.bestwebhosters.com); setcookie(name2,1,0,,.bestwebhosters.com); echo done; ? then I am trying to delete the second cookie like so:(delCookie.php) ?php setcookie(name2,1,-3600,,.bestwebhosters.com); echo done; ?

[PHP] :: operator problem

2003-07-17 Thread Mirek Novak
Hi, I have defined class 'image' with method 'getData' so can I do this ?php $class = 'image'; $id = '1234567abcdef'; $result = $class::getData($id); ? TIA -- Mirek Novak jabberID: [EMAIL PROTECTED] ICQ: 119499448 -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Parsing POP3 Mailbox

2003-07-17 Thread Brian S. Drexler
Ok, this is what I want to do. I would like to parse a mailbox and forward the returned mail in it to other users. For instance, if I send an e-mail to [EMAIL PROTECTED] and [EMAIL PROTECTED] doesn't exist it is going to send the return to [EMAIL PROTECTED]. I want to parse [EMAIL PROTECTED]

Re: [PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread MIKE YRABEDRA
on 7/17/03 8:28 AM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: ohh, excuse me, i read bad your message. What is the size of the file ?? check in php.ini the postmax_size param. 8MB, that should plenty big enough. ++ Mike Yrabedra (President)

Re: [PHP] SOLVED :: operator problem

2003-07-17 Thread Mirek Novak
Mirek Novak napsal(a): Hi, I have defined class 'image' with method 'getData' so can I do this ?php $class = 'image'; $id = '1234567abcdef'; $result = $class::getData($id); ? TIA Ha, found solution in online docs wiki, chapter

[PHP] outputting a carriage return

2003-07-17 Thread bob pilly
Hi all Can someone tell me why if i echo a line like this: echo this is a \n newline; the output is: this is a newline. But if i do this: $text=this is a \n newline; echo $text; the output is: this is a newline? Is there something i have to do to a variable in order for echo or print to

[PHP] scoring/sorting db search results based on score

2003-07-17 Thread Dave [Hawk-Systems]
looking for code snippets or links to examples of the following; - Have a database with multiple fields that will be searched against (happens to be PostgreSQL in this instance, but we can migrate any MySQL based examples/code) - We wish to score search results - ie: a match in keywords is worth

RE: [PHP] outputting a carriage return

2003-07-17 Thread Edward Peloke
try nl2br() http://us2.php.net/manual/en/function.nl2br.php -Original Message- From: bob pilly [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 9:12 AM To: [EMAIL PROTECTED] Subject: [PHP] outputting a carriage return Hi all Can someone tell me why if i echo a line like this:

[PHP] Re: outputting a carriage return

2003-07-17 Thread Baroiller Pierre-Emmanuel
Hi, take a look at thedoc... there is a function called nl2br() to convert \n to br for html display. regards, P.E. Baroiller Bob pilly [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] Hi all Can someone tell me why if i echo a line like this: echo this is a \n newline;

Re: [PHP] bcc on php

2003-07-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 17 Jul 2003 at 13:09, lines prefixed by '' were originally written by you. be aware that BCC header some times don't works properly on Windows platforms and the recipient can see the BCC header from the source of mail! I am using

[PHP] Re: fwrite not working in php3

2003-07-17 Thread Baroiller Pierre-Emmanuel
does your file test.inc exists, and... have you perms to write in this directory ? [EMAIL PROTECTED] a écrit dans le message de news:[EMAIL PROTECTED] hi there i have a little problem writing files on a php3 server this code worked yesterday but isnt $handle =

Re: [PHP] How to store a file into MSSQL?

2003-07-17 Thread Adam Voigt
On MSSQL it would be a NTEXT column. On Wed, 2003-07-16 at 18:14, Javier wrote: [EMAIL PROTECTED] (John Manko) wrote in news:[EMAIL PROTECTED]: Does it apply also to MSSQL = Microsoft SQL Server? Look here http://www.mysql.com/doc/en/BLOB.html Actually, if you don't care if the

Re: [PHP] Parsing POP3 Mailbox

2003-07-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 17 Jul 2003 at 14:04, lines prefixed by '' were originally written by you. Ok, this is what I want to do. I would like to parse a mailbox and forward the returned mail in it to other users. For instance, if I send an e-mail to

[PHP] Re: PHP code beautifier?

2003-07-17 Thread Joseph Szobody
Jacob, http://www.tote-taste.de/X-Project/beautify/ http://www.semdesigns.com/Products/Formatters/PHPFormatter.html http://www.trita.com/features/php-beautifier.jsp http://www.bierkandt.org/beautify/ http://www.trita.com/ http://www.beautifier.org/ This should get you started. I think

Re: [PHP] Re: PHP code beautifier?

2003-07-17 Thread Jacob Vennervald Madsen
Thanks a lot. Jacob Vennervald On Thu, 2003-07-17 at 15:29, Joseph Szobody wrote: Jacob, http://www.tote-taste.de/X-Project/beautify/ http://www.semdesigns.com/Products/Formatters/PHPFormatter.html http://www.trita.com/features/php-beautifier.jsp http://www.bierkandt.org/beautify/

Re: [PHP] scoring/sorting db search results based on score

2003-07-17 Thread Marek Kilimajer
Try SELECT , (((keywords LIKE '%$search%') * 5) + ((title LIKE '%$search%') * 3) + (description LIKE '%$search%')) score FROM . ORDER BY score DESC Dave [Hawk-Systems] wrote: looking for code snippets or links to examples of the following; - Have a database with multiple fields that

Re: [PHP] Re: PHP code beautifier?

2003-07-17 Thread John Manko
I really think that this depends on the topic. I know that if I'm looking for an editor (esp for a language just starting in), I can search google all day, but end up with a list full of fud. In situations like this, I would prefer to go straight to the source and ask the people who have put

Re: [PHP] XML

2003-07-17 Thread Ray Hunter
On Thu, 2003-07-17 at 01:28, Curt Zirzow wrote: Ray Hunter [EMAIL PROTECTED] wrote: 1. How efficient is to use XML+XSLT solution? Does it add processing overhead to the system? The efficientcy is relative to many factors, however I can stress this. The style sheets can be cached

Re: [PHP] Re: PHP code beautifier?

2003-07-17 Thread Jacob Vennervald Madsen
Actually I did search Google first and I did get the same results you got. But what I was looking for was actually not a list of different beautifiers but comments from developers having experience with a specific beautier that they find does the job well. Jacob Vennervald On Thu, 2003-07-17 at

[PHP] Re: scoring/sorting db search results based on score

2003-07-17 Thread Peter Clarke
Dave wrote: looking for code snippets or links to examples of the following; - Have a database with multiple fields that will be searched against (happens to be PostgreSQL in this instance, but we can migrate any MySQL based examples/code) - We wish to score search results - ie: a match in

[PHP] Protecting files with PHP

2003-07-17 Thread Maria Garcia Suarez
Hi there! I'm developing an application to which you can upload files. Right now the destination folder of those files is at /public_html/files which makes them visible from the internet. I thought of putting that ./files/ folder outside the ./public_html/ folder and make those files be only

[PHP] Problem adding value to session array

2003-07-17 Thread Matt Palermo
I have a session array that stores some values that I set. It holds all the inserted values, unless the value I want to insert has a space in it, then it only inserts the characters before the space into the array. It looks like this: // This works $sessionArray[1] = nospace; echo result:

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Andrew Brampton
Place a .htaccess in the files directory denying all access to it, and also possibly redirecting them to a login page. However since your users should never know about the files/ directory there is no real point :) Then code a PHP script to serve the files just in the same way you would if they

Re: [PHP] Problem adding value to session array

2003-07-17 Thread Jason Wong
On Thursday 17 July 2003 22:06, Matt Palermo wrote: I have a session array that stores some values that I set. It holds all the inserted values, unless the value I want to insert has a space in it, then it only inserts the characters before the space into the array. It looks like this: //

Re: [PHP] How unsafe is register_globals?

2003-07-17 Thread Mark
http://httpd.apache.org/docs-2.1/mod/core.html#allowoverride You can indicate which directives can be overrriden, and which cannot. --- Paul Chvostek [EMAIL PROTECTED] wrote: On Thu, Jul 17, 2003 at 01:56:57PM +0800, Jason Wong wrote: gets the error php_flag not allowed here. I see from

Re: [PHP] Parsing POP3 Mailbox

2003-07-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Thu, 17 Jul 2003 at 15:10, lines prefixed by '' were originally written by you. Forgive me for bothering you again with such a silly question, but say want to connect as localhost with password PASS. How could I call the function? No

Re: [PHP] Linux Installation

2003-07-17 Thread John Nichel
Haseeb wrote: hi, first of all i don't know anything about linux . we had a administrator for all our linux requirements, now that the company has fired him (without hiring anyone for the job) i am left on my own . i want to use vpopmail extension. but the problem is it is not installed on

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Petre Agenbag
If you place files inside a webfolder, then they are publicly accessible, period. They might not be obvious, ie. you would have to guess that there are files in a specific folder AND know the exact name of the file, but if you do happen to guess correct, then the files are downloadable. There

Re: [PHP] Linux Installation

2003-07-17 Thread Haseeb
i have vpopmail configured and running what next ?? Haseeb ---Original Message--- From: John Nichel Date: Thursday, July 17, 2003 07:21:22 PM To: Haseeb Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Linux Installation Haseeb wrote: hi, first of all i don't know anything about

RE: [PHP] zend optimizer for 4.3.2

2003-07-17 Thread Brad Young
Yes, Zend Optimizer definitely does support 4.3.X. Brad __ Brad Young [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] www.zend.com http://www.zend.com Zend - The PHP Company -Original Message- From: Adrian Teasdale [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: [PHP] headers already sent and cookie problem

2003-07-17 Thread frederik feys
Hi all, hi Mike, Here's the URL: http://www.aurelis.org/store/cart.txt and the get_cartID: http://www.aurelis.org/store/includes/functions/get_cartID.txt Thanks in advance! Fred -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: woensdag 16 juli 2003 12:20 To:

Re: [PHP] scoring/sorting db search results based on score

2003-07-17 Thread Dean E. Weimer
Try SELECT , (((keywords LIKE '%$search%') * 5) + ((title LIKE '%$search%') * 3) + (description LIKE '%$search%')) score FROM . ORDER BY score DESC PostgreSQL cannot type cast the Boolean type so you have to use a case statement, also changing like to ilike will get results

Re: [PHP] Protecting files with PHP

2003-07-17 Thread John Nichel
Petre Agenbag wrote: If you place files inside a webfolder, then they are publicly accessible, period. Not true. .htaccess turns a public directory into a private directory. Even if you know the path and filename you want, without an accepted username/password, you're not getting the file.

Re: [PHP] Linux Installation

2003-07-17 Thread John Nichel
Haseeb wrote: i have vpopmail configured and running what next ?? Haseeb Recompile php adding --with-vpopmail[=DIR] to your configuration. ---Original Message--- From: John Nichel mailto:[EMAIL PROTECTED] Date: Thursday, July 17, 2003 07:21:22 PM To: Haseeb mailto:[EMAIL

[PHP] Default mode -- Output buffering ??

2003-07-17 Thread Alain Williams
I recently upgraded from RedHat 9 supplied 4.1.2 to from_the_net 4.3.2. I am running the command line version (#!/usr/bin/php) as a .cgi rather than directly in apache as a module (with a .php suffix). What I find is that the first line after #!/usr/bin/php needs to be: Content-type:

[PHP] PHP/HTML Question

2003-07-17 Thread Nick Couchman
I have a quick question about PHP and HTML. I have a page that is supposed to update the status of hosts by pinging each host and displaying the result. I would like to get the page to the point that I can have something (either PHP or JavaScript or the like) ping every 10 seconds or so and

RE: [PHP] PHP/HTML Question

2003-07-17 Thread Jay Blanchard
[snip] I have a quick question about PHP and HTML. I have a page that is supposed to update the status of hosts by pinging each host and displaying the result. I would like to get the page to the point that I can have something (either PHP or JavaScript or the like) ping every 10 seconds or

Re: [PHP] PHP/HTML Question

2003-07-17 Thread Ray Hunter
I have a quick question about PHP and HTML. I have a page that is supposed to update the status of hosts by pinging each host and displaying the result. I would like to get the page to the point that I can have something (either PHP or JavaScript or the like) ping every 10 seconds or

Re: [PHP] PHP/HTML Question

2003-07-17 Thread Nick Couchman
Ray Hunter wrote: I have a quick question about PHP and HTML. I have a page that is supposed to update the status of hosts by pinging each host and displaying the result. I would like to get the page to the point that I can have something (either PHP or JavaScript or the like) ping every 10

Re: [PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread Curt Zirzow
MIKE YRABEDRA [EMAIL PROTECTED] wrote: I just upgraded to 4.3.2 and one of my scripts will not work now. The script basically used fopen to get a file, then it would write it to a static page (cutting down on DB access). The script has worked fine for months under 4.3.0, but not under

Re: [PHP] outputting a carriage return

2003-07-17 Thread Curt Zirzow
bob pilly [EMAIL PROTECTED] wrote: Hi all Can someone tell me why if i echo a line like this: echo this is a \n newline; the output is: this is a newline. But if i do this: $text=this is a \n newline; echo $text; the output is: this is a newline? works fine for me. Is

Re: [PHP] PHP/HTML Question

2003-07-17 Thread Curt Zirzow
Nick Couchman [EMAIL PROTECTED] wrote: I have a quick question about PHP and HTML. I have a page that is supposed to update the status of hosts by pinging each host and displaying the result. I would like to get the page to the point that I can have something (either PHP or JavaScript or

Re: [PHP] deleting one cookie is deleting both..why? (tiny scripts)

2003-07-17 Thread Chris Shiflett
--- Ryan A [EMAIL PROTECTED] wrote: I am setting 2 cookies like so:(setCookie.php) ... setcookie(name1,1,0,,.bestwebhosters.com); setcookie(name2,1,0,,.bestwebhosters.com); ... then I am trying to delete the second cookie like so:(delCookie.php) ...

Re: [PHP] Protecting files with PHP

2003-07-17 Thread Juan Nin
I need to do the same and a .htacces file would not suite the problem I need to do as yahoogroups does When you upload a file to the Files section, it send by default an e-mail to the group members with a link to the file When you click on the link, you're sent to a login page, and after login in

Re: [PHP] PHP/HTML Question

2003-07-17 Thread John Nichel
Nick Couchman wrote: I have a quick question about PHP and HTML. I have a page that is supposed to update the status of hosts by pinging each host and displaying the result. I would like to get the page to the point that I can have something (either PHP or JavaScript or the like) ping every

Re: [PHP] How unsafe is register_globals?

2003-07-17 Thread Paul Chvostek
But those are APACHE directives. What I'm looking for is finer-grained control over what php_flag lines will be accepted. A quick test wrapped in a Directory APPEARS not to be at risk, but I'd rather get confirmation of this before I rely on it. Can someone confirm that mod_php4 will not allow

Re: [PHP] include statement giving me hives! - SOLVED

2003-07-17 Thread DougD
rtrim () solved the issue. There was a newline sitting at the end of the variable and messing it up! Thanks for all your help! Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] DougD wrote: I am new to all this, but here is the basic code: $link_titles =

  1   2   >