RE: [PHP] php.ini file

2005-03-21 Thread Kim Madsen
-Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 8:57 AM Check the output of phpinfo(); to see where it is expecting the file to be. Works only if the installation is completed and PHP is running ;-) Use your system wide /tmp folder. I

[PHP] How to show user country (internet connection) on a page

2005-03-21 Thread Sebastiano
Hi everyone, I would like to show the country of the user provider during the navigation. I haven't problem with provider located in europe, simply this code: $indirizzo_cliente = $_SERVER[REMOTE_ADDR]; $i=0; $fp = file (http://www.ripe.net/whois?form_type=simplefull_query_string=searchtext=$

[PHP] die function

2005-03-21 Thread Barbara Picci
Hi all, I have a machine that must insert in cron in a mysql db in another remote machine. The problem is that I cannot know if the connection in the first machine (adsl) go down because no entry in the machine log is generated. I would like to redirect the die function in a e-mail that say me

[PHP] Damn escaping... Grunf...

2005-03-21 Thread Mário Gamito
Hi, I want this code to display peoples' names within an hyperlink. I'm tired of trying different ways, read all about it in PHP's manual, but i can't get it there. You can visit http://www.dte.ua.pt/cv In the rightmost column it is suposed to apear two name below Links, but... it doen't,

[PHP] Escaping

2005-03-21 Thread Mário Gamito
Hi, I want this code to display peoples' names within an hyperlink. I'm tired of trying different ways, read all about it in PHP's manual, but i can't get it there. You can visit http://www.dte.ua.pt/cv In the rightmost column it is suposed to apear two name below Links, but... it doen't,

[PHP] test

2005-03-21 Thread Sebastiano
Is the list active? My last received message is: [PHP] die function -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] test

2005-03-21 Thread Jay Blanchard
[snip] Is the list active? My last received message is: [PHP] die function [/snip] yes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML HTTP

2005-03-21 Thread Jerry Swanson
I need to use SOAP and I use PHP 5. Do I need to compile PHP with some option? Thanks On Fri, 18 Mar 2005 16:03:20 -0500, Jason Barnett [EMAIL PROTECTED] wrote: Chris Shiflett wrote: Jerry Swanson wrote: I generated XML file. I need to send the file to another server not through FTP

RE: [PHP] XML HTTP

2005-03-21 Thread Jay Blanchard
[snip] I need to use SOAP and I use PHP 5. Do I need to compile PHP with some option? [/snip] Probably. Have you RTFM on the subject? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini file

2005-03-21 Thread Burhan Khalid
Kim Madsen wrote: -Original Message- From: Burhan Khalid [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 8:57 AM Check the output of phpinfo(); to see where it is expecting the file to be. Works only if the installation is completed and PHP is running ;-) Use your system wide

[PHP] Renaming Directories

2005-03-21 Thread Daniel Schierbeck
I've made a small PHP script that renames the files and folders in my music library, to make them more linux-friendly. I'm running PHP 5.0.3 on version 2.6.9 kernel. What's happening is that all files and folders are renamed, except for folders whose names consist of one word only (such as

RE: [PHP] Damn escaping... Grunf...

2005-03-21 Thread YaronKh
Hi Try using instead of ' Meaning you should write: Print (a href =\http://www.dte.ua.pt/cv/email=?.$recordSet-fields[0]. \ br /); -Original Message- From: Mrio Gamito [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 12:50 PM To: php-general@lists.php.net Subject: [PHP] Damn

Re: [PHP] multiple words search query advise

2005-03-21 Thread Brent Baisley
You want to use a full text index spanning the two fields. You wouldn't want to do a LIKE search because that wouldn't be able to use indexes, resulting in a full table scan every search. If you are using MySQL, you search read the part of the manual on creating and using full text indexes.

[PHP] Re: Renaming Directories

2005-03-21 Thread Daniel Schierbeck
Daniel Schierbeck wrote: I've made a small PHP script that renames the files and folders in my music library, to make them more linux-friendly. I'm running PHP 5.0.3 on version 2.6.9 kernel. What's happening is that all files and folders are renamed, except for folders whose names consist of

[PHP] Re: die function

2005-03-21 Thread Jason Barnett
Barbara Picci wrote: Hi all, I have a machine that must insert in cron in a mysql db in another remote machine. The problem is that I cannot know if the connection in the first machine (adsl) go down because no entry in the machine log is generated. I would like to redirect the die function

[PHP] How to show user country by IP (II post)

2005-03-21 Thread Sebastiano
Hi all, I send this message for the second time becouse I had problems with the mailing list. I would like to show the country of the user provider (only by organizations databases). I haven't problem with provider located in europe, simply this code: $indirizzo_cliente = $_SERVER[REMOTE_ADDR];

Re: [PHP] Re: Renaming Directories

2005-03-21 Thread Frank Arensmeier
Hello Daniel! In the code it says: echo rename($path_old, $path_new) ? done\n : failed\n; I assume that this line is supposed to actually rename the directory. Why did you wrote echo before rename? Try to change the code to: if (!rename($path_old,$path_new)) { echo failed\n; } else {

[PHP] Re: looking for address finder..uk

2005-03-21 Thread Jason Barnett
AndreaD wrote: I'm looking for an address finder where a user types in a postcode and house number and then the user is given an option of to houses to choose from. Anything like this available for a small charge? Ross Try talking to Richard Lynch... he *might* be able to help you out.

[PHP] Re: PHP 5 DOM, XPath, UTF-8, and Form Input

2005-03-21 Thread Jason Barnett
C Drozdowski wrote: I have been doing some testing and need confirmation that the following is correct. You have a DOMDocument that potentially contains UTF-8 encoded data (it might not however). You want to search it via DOMXpath-query() using a value that comes from a $_POST value. If

Re: [PHP] Damn escaping... Grunf...

2005-03-21 Thread Mrio Gamito
Hi Yharonkh, Thanks a lot. It really did the trick :) Regards, Mrio Gamito [EMAIL PROTECTED] wrote: Hi Try using instead of ' Meaning you should write: Print (a href =\http://www.dte.ua.pt/cv/email=?.$recordSet-fields[0]. \ br /); -Original Message- From: Mrio Gamito [mailto:[EMAIL

[PHP] Re: XSLT solution

2005-03-21 Thread Jason Barnett
Devraj Mukherjee wrote: Hi everyone, I have been very intrigued by the way Gentoo.org offers its documentation. The documents are stored using a series of XML files and are delivered via XSLT via some ruby scripts. Are there any similar frameworks, solutions availble for the PHP world?

Re: [PHP] multiple words search query advise

2005-03-21 Thread Ryan A
Hey! Thanks! I'll look it up. -Ryan On 3/21/2005 5:53:38 AM, Brent Baisley ([EMAIL PROTECTED]) wrote: You want to use a full text index spanning the two fields. You wouldn't want to do a LIKE search because that wouldn't be able to use indexes, resulting in a full table scan every search.

Re: [PHP] Forms

2005-03-21 Thread Matt M.
Does anyone know how to get a particular option to display in a drop menu? select name=category id=category option selected=true value=Option ValueOption Value/option option value=line-/option option value=value1 value1/option option value=value2 value2 /option

Re: [PHP] Forms

2005-03-21 Thread Chris Ramsay
On Mon, 21 Mar 2005 10:04:23 -0600, Marquez Design [EMAIL PROTECTED] wrote: Greetings, Does anyone know how to get a particular option to display in a drop menu? Perhaps, do db query first, then for each option (perhaps as a foreach or something): echo option name=\whatever\ value=\\;

Re: [PHP] Forms

2005-03-21 Thread Miles Thompson
At 12:04 PM 3/21/2005, Marquez Design wrote: Greetings, Does anyone know how to get a particular option to display in a drop menu? select name=category id=category option selected=true value=Option ValueOption Value/option option value=line-/option option value=value1

Re: [PHP] Forms

2005-03-21 Thread [EMAIL PROTECTED]
The way I did: # taking values from DB $query = mysql_query(select * from VALUES) $result = mysql_fet_array($query); #create an array of all values of dropdow menu $values = arra('value1', 'value2', 'value3', 'value4'); # create SELECT form using for loop echo 'select name=category

[PHP] Re: [PHP-WIN] setting php for accepting the urls... phpinfo.php/extra/information/

2005-03-21 Thread Elizabeth Smith
Leif Gregory wrote: Hello Rob, Saturday, March 19, 2005, 2:39:08 AM, you wrote: R could someone possibly point me in the right direction for allow R PHP on IIS 6 to accept urls with the query string seperated by R slashes.. This is called slash arguments and IIS can not natively handle it. I ran

[PHP] Forms

2005-03-21 Thread Marquez Design
Greetings, Does anyone know how to get a particular option to display in a drop menu? select name=category id=category option selected=true value=Option ValueOption Value/option option value=line-/option option value=value1 value1/option option value=value2 value2 /option

[PHP] Mod Rewrite help

2005-03-21 Thread Brian Dunning
I know this isn't exactly a PHP question, but it's for a PHP site if that helps :) :) How would I mod_rewrite a request for /baseball.htm into /query.php?q=baseball? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Richard Davey
Hello Brian, Monday, March 21, 2005, 6:05:59 PM, you wrote: BD I know this isn't exactly a PHP question, but it's for a PHP site if BD that helps :) :) BD How would I mod_rewrite a request for /baseball.htm into BD /query.php?q=baseball? Definitely more than one way to skin this cat,

Re[2]: [PHP] Mod Rewrite help

2005-03-21 Thread Richard Davey
RD Definitely more than one way to skin this cat, but the following will RD work: RD RewriteEngine on RD RewriteRule ^baseball.htm/ /query.php?q=baseball [L] Erm, self-correcting myself here - don't have the / after .htm! Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Brian Dunning
How would I mod_rewrite a request for /baseball.htm into /query.php?q=baseball? This should be doing it as far as I can tell, but for some reason it's not... RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Mod Rewrite help

2005-03-21 Thread Mikey
RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 AFAIK you should have that space at the end of your regex after the $ HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP-NUKE on IIS

2005-03-21 Thread Armando Afa
It is posible to install php-nuke on IIS? Thanks in advance Armando

[PHP] PHP-NUKE

2005-03-21 Thread Armando Afa
Hi, I've already downloaded ver 7.2 of php-nuke, but it does not tell how to install it on Windows environment. Can somebody tell me where did I go wrong? I've have always follos the instruction manual but it does no work with IIS Thanks in advance, once again Armando

RE: [PHP] PHP-NUKE

2005-03-21 Thread Jay Blanchard
[snip] I've already downloaded ver 7.2 of php-nuke, but it does not tell how to install it on Windows environment. Can somebody tell me where did I go wrong? I've have always follos the instruction manual but it does no work with IIS [/snip] Right there on phpnuke.org

Re: [PHP] class and global

2005-03-21 Thread Mister Jack
Ok, i've found a workaround. So contrary to what is stated apparently in the documentation I had to declara the variables explicitely global to make it working and to create the object and assign _without_ reference. to sum up : global $freedb; $freedb = new freedbaxs(); function

[PHP] fwrite and sort

2005-03-21 Thread Sebastian
i have a form with checkboxes which after POST it writes to a file. i would like to allow the user to sort the selected checkbox filename in the order they want it written to file. so i was thinking creating an input text box where they can enter a number, then have it written to file in that

RE: [PHP] PHP-NUKE

2005-03-21 Thread Nick Zukin
There is a lot of information like this at nukecops.com, too, btw. You'll want to start here: http://nukecops.com/forum2.html Nick -Original Message- From: Armando Afa [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 12:19 PM To: php-general@lists.php.net Subject: [PHP] PHP-NUKE

[PHP] ODBC Errors and Undefined functions

2005-03-21 Thread Jay Blanchard
Okie dokie. I have an odbc data and I can use odbc_result_all() to return data in an HTML table format. If I switch to odbc_fetch_array() or odbc_fetch_object() I get a call to an undefined function even though TFM says that these are available in 4.3.7 running phpinfo() shows that ODBC is enabled

RE: [PHP] ODBC Errors and Undefined functions

2005-03-21 Thread Jay Blanchard
[snip] Okie dokie. I have an odbc data and I can use odbc_result_all() to return data in an HTML table format. If I switch to odbc_fetch_array() or odbc_fetch_object() I get a call to an undefined function even though TFM says that these are available in 4.3.7 running phpinfo() shows that ODBC is

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Jochem Maas
Mikey wrote: RewriteEngine on RewriteRule /^(.+).htm$ /query.php?q=$1 ^-- this slash looks to me like its in the wrong place. AFAIK you should have that space at the end of your regex after the $ HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Different approach?

2005-03-21 Thread Jochem Maas
John Taylor-Johnston wrote: Sorry to bother. I was hoping for inspiration. The code works. I wonder if there is a cleaner way? what is the context of the code you posted? ... in a function? class? part of an app? whats its purpose? why do you need to check/create the table dynamically? why do

Re: [PHP] sessioncookies?

2005-03-21 Thread Jochem Maas
William Stokes wrote: Hello, I have a following line in my code to set a session cookie when user logs in. It works fine. setcookie(sess_id,$sess_id,0,/); Can I store more information to the session cookie? I mean other variables. what are you trying to do? (do you need the info in the cookie

[PHP] refreshing an included php file

2005-03-21 Thread AndreaD
I have a file, index.php and this has an included file, lets call it calculate.php. When I insert values in text boxes and hit submit the values are written as cookies. The question is how can I refresh calculate.php so it shows the new value. AD -- PHP General Mailing List

RE: [PHP] refreshing an included php file

2005-03-21 Thread Chris W. Parker
AndreaD mailto:[EMAIL PROTECTED] on Monday, March 21, 2005 2:27 PM said: I have a file, index.php and this has an included file, lets call it calculate.php. When I insert values in text boxes and hit submit the values are written as cookies. The question is how can I refresh calculate.php

[PHP] [semi OT]: Planning projects

2005-03-21 Thread Chris W. Parker
Hello, This is the only programming list I participate in so that is why I'm asking my question here. I hope no one objects greatly! So my question has to do with planning a project (not necessarily a website in general, but a programming project specifically). I've got Visio 2003 and a pad of

Re: [PHP] [semi OT]: Planning projects

2005-03-21 Thread Richard Lynch
On Mon, March 21, 2005 2:55 pm, Chris W. Parker said: a pad of paper with a pencil. +1 :-) Seriously, any time I try to plan something out for any kind of programming, I find that a nice big desk surface, and a pencil and paper are the best tools. After I've got things worked out on paper,

[PHP] Download system

2005-03-21 Thread JoShQuNe \(TR\)
Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now: dl.php?rel=/files/somefile.zip, i want: dl.php?id=64b3j283) The file path and id is read from mysql table. System

Re: [PHP] refreshing an included php file

2005-03-21 Thread Richard Lynch
On Mon, March 21, 2005 2:27 pm, AndreaD said: I have a file, index.php and this has an included file, lets call it calculate.php. When I insert values in text boxes and hit submit the values are written as cookies. The question is how can I refresh calculate.php so it shows the new value.

[PHP] Re: refreshing an included php file

2005-03-21 Thread Jason Barnett
AndreaD wrote: I have a file, index.php and this has an included file, lets call it calculate.php. When I insert values in text boxes and hit submit the values are written as cookies. The question is how can I refresh calculate.php so it shows the new value. AD You'll need calculate.php to

[PHP] Re: [semi OT]: Planning projects

2005-03-21 Thread Jason Barnett
disclaimerI am not very good at diagramming these things!/disclaimer After programming in PHP for a while I ran across this (helpful) website. Although I don't really do this like I should, perhaps this link will explain things well and /or inspire you to do things The Right Way?

[PHP] Building modular applications (long)

2005-03-21 Thread Chris W. Parker
Hello, So I was thinking about building some modularity into future projects and wanted to bounce some ideas off my fellow list members. My definition of modular application is: A modular application is one that can have it's major functions added/removed with the click of a button, or the

Re: [PHP] Download system

2005-03-21 Thread Richard Lynch
On Mon, March 21, 2005 3:45 pm, JoShQuNe \(TR\) said: Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now: dl.php?rel=/files/somefile.zip, i want:

Re: [PHP] ODBC Errors and Undefined functions

2005-03-21 Thread Jason Barnett
Jay Blanchard wrote: [snip] Okie dokie. I have an odbc data and I can use odbc_result_all() to return data in an HTML table format. If I switch to odbc_fetch_array() or odbc_fetch_object() I get a call to an undefined function even though TFM says that these are available in 4.3.7 running

Re: [PHP] fwrite and sort

2005-03-21 Thread Richard Lynch
http://php.net/asort On Mon, March 21, 2005 12:29 pm, Sebastian said: i have a form with checkboxes which after POST it writes to a file. i would like to allow the user to sort the selected checkbox filename in the order they want it written to file. so i was thinking creating an input

RE: [PHP] [semi OT]: Planning projects

2005-03-21 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Monday, March 21, 2005 3:44 PM said: On Mon, March 21, 2005 2:55 pm, Chris W. Parker said: a pad of paper with a pencil. +1 Seriously, any time I try to plan something out for any kind of programming, I find that a nice big desk surface, and a

Re: [PHP] Re: looking for address finder..uk

2005-03-21 Thread Richard Lynch
On Mon, March 21, 2005 6:50 am, Jason Barnett said: AndreaD wrote: I'm looking for an address finder where a user types in a postcode and house number and then the user is given an option of to houses to choose from. Anything like this available for a small charge? Ross Try talking

Re: [PHP] Download system

2005-03-21 Thread JoShQuNe \(TR\)
--- Richard Lynch [EMAIL PROTECTED] wrote: On Mon, March 21, 2005 3:45 pm, JoShQuNe \(TR\) said: Hi, i want to add my site a more specific download system. The redirecting is now done by directly giving the path of the file to variable. I want to do it over an id number. (now:

Re: [PHP] carriage returns using error_log?

2005-03-21 Thread Richard Lynch
Heh... no, I was already using double quotes. I also tried using actual carriage returns in the string, that didn't work either. Is error_log simply incapable of obeying carriage returns within the error string? It works for me, but if it's not working for you... function

Re: [PHP] Regex

2005-03-21 Thread Richard Lynch
On Sun, March 20, 2005 3:18 pm, Colin Ross said: I'm trying to compress down a php-powered javascript file. In the file i have php run a bunch of loops and foreaches to build huge nested arrays for use in the javascript. Have you considered using PHP to write JavaScript that will build the

RE: [PHP] [semi OT]: Planning projects

2005-03-21 Thread Miles Thompson
I'm with Richard - lots of scrap paper, couple of nice sharp HB pencils ... let it ferment a bit, then pseudocode in a plain text editor. As for the graphics - well, I have an old template used in Introductory Basic for the Control Data Corporation whatever. Haven't used it since about 1970,

Re: [PHP] Re: http authentication with safe mode enabled?!

2005-03-21 Thread Richard Lynch
I have no idea what to do to deal with this. There is only one .htaccess file, which is in the top-level directory of my account with my ISP. And I've even put You can always add more .htaccess files in more directories, or edit the one that's there. AuthType None in there, but it doesn't

Re: [PHP] Authorization header is missing from apache_request_headers() array

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 6:24 am, LacaK said: When I try to use HTTP Digest Authorization using code like : Header( HTTP/1.0 401 Unauthorized); Header( WWW-Authenticate: Digest realm=\www.myrealm.com\, opaque=\opaque\, nonce=\nonce\, stale=\false\, qop=\auth\); browser returns in HTTP

Re: [PHP] Re: fopen

2005-03-21 Thread Richard Lynch
On Sat, March 19, 2005 6:48 am, John Taylor-Johnston said: chmod($defaultfile, 666); http://php.net/chmod has examples that tell you exactly why this is wrong... 666 is decimal. The 666 you want is Octal. They ain't the same number. What does the at_sign mean at the start of this

Re: [PHP] Download system

2005-03-21 Thread Chris Bruce
How about setting up symbolic links on the server in a tmp directory. You could use the values from your database table to create the sym links. Have the sym link be the token name and then have it linked to the real file name. You could then have a cron job running to clear the sym links at

Re: [PHP] Chapter 38. Handling file uploads

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 1:43 pm, Timothy A. Whitley, P.E. said: Warning: move_uploaded_file(/images/tim.jpg): failed to open stream: No such file or directory in /usr/hsphere/local/home/ice-admi/iceagents.com/CxDatabase/fileuploadh.ph p on line 20 Dollars to doughnuts there is *NO* /images

Re: [PHP] [semi OT]: Planning projects

2005-03-21 Thread Robert Cummings
On Mon, 2005-03-21 at 18:43, Richard Lynch wrote: On Mon, March 21, 2005 2:55 pm, Chris W. Parker said: a pad of paper with a pencil. +1 +1 For the most part if you're working on this alone, then the pencil, paper approach is probably the best. It doesn't matter how carefully you plan your

RE: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 12:00 pm, Steven Altsman said: Got packet bigger than 'max_allowed_packet' ... Gotta love mysql_error(); If I find out what causes this, I'll bring it over to this list too.. since it's been pretty quiet, I guess I've gotten folks stumped. If that's a MySQL error,

Re: [PHP] XML HTTP

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 11:14 am, Jerry Swanson said: I create XML file, how to pass the XML file to another server through HTTP? Let's try it this way: What's the other server? Did you read their FAQ and their documentation? Here are functions that, depending on what you read on the other

Re: [PHP] ODBC Errors and Undefined functions

2005-03-21 Thread Jason Barnett
Oh and Jay... since no one else has found the answer it would be nice if you could post your solution here when / if you find it. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-generalw=2 STFM |

Re: [PHP] sessioncookies?

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 8:30 am, William Stokes said: OK. so can I set 2 or more session cookies for the same user? Like this: setcookie(sess_id,$sess_id,0,/); setcookie(cookie2,$another_variable,0,/); If so is there a limit? The browser is not required to keep more than N cookies. I think N

Re: [PHP] preg_replace with rawurlencoded?

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 8:18 am, BlackDex said: I have a litle problem with replaceing a string in some HTML code. the html code is: --- img width=240 height=180 src=01%20-%20Raptor%20AMD%20Sempron_image001.jpg --- I want to change the 01%20-%20Raptor%20AMD%20Sempron_image001.jpg

[PHP] Re: refreshing an included php file

2005-03-21 Thread AndreaD
Richard had got it spot on! Have solved it by using iframes. AD AndreaD [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a file, index.php and this has an included file, lets call it calculate.php. When I insert values in text boxes and hit submit the values are written

Re: [PHP] getting text with strange encodng

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 5:40 am, Diana Castillo said: no, its not html entity, it doesnt have a semicolon, its exactly as I But some versions of Microsoft IE will display reg without the semi-colon as an HTML-entity, in complete violation of HTML specifications. Yes, really. So some idiot may

Re: [PHP] Reading all headers sent

2005-03-21 Thread Richard Lynch
Search php.net for RAW HTTP Maybe. On Fri, March 18, 2005 3:28 am, martin said: Thanks for the answer, what I'm trying to achieve is a php proxy that receives any GET/POST request with correspoding headers and brings back the results to the caller. Let's say I do a google search request

Re: [PHP] Custom errors handling class problem

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 12:46 am, Mihai Frisan said: I use a custom errors handling class, which set one of its methods as the php errors handler. All works well when I use this class in a file with only procedural code (all errors are caught by the custom errors handling class), but if I

[PHP] Re: can you help me ??

2005-03-21 Thread Richard Lynch
On Wed, March 16, 2005 1:57 am, Wahyu SP said: dear webmaster i would like to ask few questions : 1. can php determine the mime type of file without uploading a file ?? No. It's none of your damn business what's on my hard drive. :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP

Re: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-21 Thread Marek Kilimajer
Steven Altsman wrote: Got packet bigger than 'max_allowed_packet' ... Gotta love mysql_error(); If I find out what causes this, I'll bring it over to this list too.. since it's been pretty quiet, I guess I've gotten folks stumped. I think you can put the encrypted file to the database in chunks.

Re: [PHP] something stupid... split().

2005-03-21 Thread Richard Lynch
On Thu, March 17, 2005 3:16 am, Chris Knipe said: Lo all, echo ConvertTime($AcctSessionTime/90); # Returns: 03:17:46.77 I am trying to drop the .whatever.. Thus, list($Duration, $none) = split('.', ConvertTime($AcctSessionTime/90), 2); However, $Duration is empty, and $none has

Re: [PHP] opt-in mail list best practice

2005-03-21 Thread Richard Lynch
On Thu, March 17, 2005 2:37 am, Scott Haneda said: on 3/16/05 12:46 PM, Todd Trent at [EMAIL PROTECTED] wrote: - This could be hosted on shared hosting server. - Opt-in list could be less than 100 or in the 1000¹s. - May need a way to track sending success. Check this out:

Re: [PHP] SimpleXML and xpath woes

2005-03-21 Thread Richard Lynch
On Wed, March 16, 2005 9:39 am, Simon Turvey said: (Apologies for the larger than normal wrapping - there are some long lines) I'm playing with SimpleXML for reading REST responses from Amazon Web Services. Having successfuly read the response to my request I'd like to perform an xpath

Re: [PHP] Re: can you help me ??

2005-03-21 Thread Marek Kilimajer
Richard Lynch wrote: On Wed, March 16, 2005 1:57 am, Wahyu SP said: dear webmaster i would like to ask few questions : 1. can php determine the mime type of file without uploading a file ?? No. It's none of your damn business what's on my hard drive. :-) Using javascript, you can read the value

Re: [PHP] obscure error message - PHP Notice: (null)(): Permission denied (errflg=2) in Unknown on line 0

2005-03-21 Thread Richard Lynch
On Wed, March 16, 2005 2:32 pm, Zinovi Boyadjiev said: I am getting this strange error while developing imap mail to mysql inporting script : PHP Notice: (null)(): Permission denied (errflg=2) in Unknown on line 0 This looks like a custom error message and/or something coming about as a

Re: [PHP] PHP source code formatter for OS X

2005-03-21 Thread Richard Lynch
On Wed, March 16, 2005 8:11 pm, DuSTiN KRySaK said: Does anyone know of a PHP source code formatter to clean up sloppy code that runs on OS X? http://php.net/highlight_string may or may not do some cleanup. Probably not enough. I think there's a PHP pretty-printer at http://phpclasses.org

[PHP] Full-text searches sucks?

2005-03-21 Thread Ryan A
Hey all, I just put in a search function for a site using mySql full text, i am running it on my local server for now. I am running it on two fields: ad_sub and ad_text The results i getting are really quite bad, this is how i am testing it out: 1. I wrote an insert statement and looped it 700

Re: [PHP] ODBC Errors and Undefined functions

2005-03-21 Thread Philip Olson
Oh and Jay... since no one else has found the answer it would be nice if you could post your solution here when / if you find it. Accoding to the source, these two functions require something to exist: #ifdef PHP_ODBC_HAVE_FETCH_HASH PHP_FUNCTION(odbc_fetch_array);

Re: [PHP] Full-text searches sucks?

2005-03-21 Thread Larry E . Ullman
which means because I i getting a match for well over 50% of the records...its disregarding it. Yes, this is exactly the problem. Now i am in two minds if i should use this or go back to the same old dirty way...of exploding the search and using LIKE '%%' for each word FULLTEXT searches are

Re: [PHP] Re: fopen

2005-03-21 Thread John Taylor-Johnston
Thanks for that! John Richard Lynch wrote: On Sat, March 19, 2005 6:48 am, John Taylor-Johnston said: chmod($defaultfile, 666); http://php.net/chmod has examples that tell you exactly why this is wrong... 666 is decimal. The 666 you want is Octal. They ain't the same number.

[PHP] Apache user can't use exec(), passthru(), etc.

2005-03-21 Thread Jim Poserina
If I run this PHP script: ?php echo 'pre'; echo exec('whoami'); echo '/pre'; ? from the web, the output is pre/preand from the command line running as the apache user(webuser), the output is. Content-type: text/html X-Powered-By: PHP/4.3.9 pre/preBut if I run from the command line as root, the

Re: [PHP] Full-text searches sucks?

2005-03-21 Thread Ryan A
Hey! Thanks for replying. FULLTEXT searches are great; it's your testing of them that is poor. Kind of true, but I would have still been happy if it had found some records rather than 0 results. Also, FULLTEXT searches are improved as the number of __different__ records increase. Yep, I

Re: [PHP] Full-text searches sucks?

2005-03-21 Thread Larry E . Ullman
Thanks for replying. You're quite welcome. If you want to see some results, regardless of the 50% threshold, use the IN BOOLEAN MODE feature. Keep in mind, though, that in your case any search will return either 0 or 700 results. I dont want to do that as its only mysql 4.1+ compatable, IN BOOLEAN

Re: [PHP] Re: fopen

2005-03-21 Thread John Taylor-Johnston
Richard, thanks. chmod($defaultfile, 666); http://php.net/chmod has examples that tell you exactly why this is wrong... The 666 you want is Octal. chmod($defaultfile, 0666); Check. Thanks. Didn't pay enough attention to that. What does the at_sign mean at the start of this line? @

[PHP] access violation

2005-03-21 Thread Rob Agar
hi all All of a sudden, my local install of Apache has started throwing access violation errors. It's happening pretty frequently, particularly when hitting the refresh button on a page generated from POST data, causing a re-POST, but isn't 100% reproducible. Anyone else had a problem like this?

Re: [PHP] Re: Different approach?

2005-03-21 Thread John Taylor-Johnston
Jochem, what is the context of the code you posted? ... in a function? class? part of an app? whats its purpose? A singular, tutorial example I put together to show a basic way to connect and write if the table exists, if not create table. why do you need to check/create the table

Re: [PHP] Different approach?

2005-03-21 Thread Josh Whiting
On Thu, Mar 17, 2005 at 11:01:44AM -0500, John Taylor-Johnston wrote: Hi, I've read: http://dev.mysql.com/doc/mysql/en/create-table.html Would anyone code/approach this differently? [...] $sql = INSERT INTO $table (StudentNumber,Exercise1,Exercise2) values

Re: [PHP] Authorization header is missing from apache_request_headers() array

2005-03-21 Thread LacaK
Richard Lynch wrote: I could be *WAY* wrong, but I thought nobody ever bothered with Digest Auth because, e. It's not better/safer than HTTP Auth? HTTP Basic Authorization send login:password in clear text (only base64 encoded) so it can be 'eavesdropped' in HTTP Digest Authorization

Re: [PHP] obscure error message - PHP Notice: (null)():

2005-03-21 Thread M. Sokolewicz
Richard Lynch wrote: On Wed, March 16, 2005 2:32 pm, Zinovi Boyadjiev said: I am getting this strange error while developing imap mail to mysql inporting script : PHP Notice: (null)(): Permission denied (errflg=2) in Unknown on line 0 This looks like a custom error message and/or something

[PHP] Drop down list - persistant value

2005-03-21 Thread Jacques
I am using PHP. I have a registration page where the user has to select his country form a drop down list. If the username that the user selected for himself exists in the database I am sending him back to the registration form with all the fields completed with the values he previously

Re: [PHP] Drop down list - persistant value

2005-03-21 Thread Burhan Khalid
Jacques wrote: I am using PHP. I have a registration page where the user has to select his country form a drop down list. If the username that the user selected for himself exists in the database I am sending him back to the registration form with all the fields completed with the values he

  1   2   >