RE: [PHP] ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØ

2002-07-09 Thread Ben Ramsey
I've just joined this mailing list this afternoon. Does this kind of thing happen often? If so, I'm going to leave the list. Ben -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] Ben

2002-07-09 Thread Ben Ramsey
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 4:20 PM To: Ben Ramsey; [EMAIL PROTECTED] Subject: Re: [PHP] Ben First time Ben don't worry about it. This list is actually very adult much more so than others I've belonged to. But you just can't prevent things like this on an unmoderated list

[PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
); We've tested the PHP code on files, and it works, but it doesn't work on directories. Our current umask is 0002. We're using PHP 5.2.2 on Linux 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 i686 i386 GNU/Linux. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: PHP (doesn't work): chmod('/path/to/dir', 02775); We've tested the PHP code on files, and it works, but it doesn't work on directories. Drop the preceding 0 from the chmod() function parameters

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: PHP (doesn't work): chmod('/path/to/dir', 02775); We've tested the PHP code on files, and it works, but it doesn't work on directories. Drop the preceding 0 from the chmod() function parameters

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 11:45 AM, Tijnema wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: So, what are we doing wrong with chmod() that is causing us to get the wrong results? Keep in mind that we are running the PHP script as the same user who owns the directory. Who is the owner of the directory

Re: [PHP] Setting group sticky bit on directory with chmod()

2007-08-02 Thread Ben Ramsey
On 8/2/07 10:57 AM, Daniel Brown wrote: On 8/2/07, Ben Ramsey [EMAIL PROTECTED] wrote: PHP (doesn't work): chmod('/path/to/dir', 02775); We've tested the PHP code on files, and it works, but it doesn't work on directories. Drop the preceding 0 from the chmod() function parameters

Re: [PHP] Good php-news newsletter?

2007-08-24 Thread Ben Ramsey
the PHP developer community. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Breaking lines

2006-10-03 Thread Ben Ramsey
? Use double quotation marks instead of single quotation marks: \n See here for why: http://us3.php.net/manual/en/language.types.string.php#language.types.string.syntax.double -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Really strange

2006-10-04 Thread Ben Ramsey
and you're trying to include config.inc, then it obviously can't find it because it doesn't exist. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Really strange / TYPO

2006-10-04 Thread Ben Ramsey
a file one directory above it. Ben Ramsey wrote: On 10/4/06 8:32 PM, Deckard wrote: Hi, I have this line of code: include_once('../config.inc.php'); I'm 100% sure that the file config.inc.php is a directory up. config.inc.php is in /var/www/html and the file that calls it is in /var/www

Re: [PHP] reading PDF's

2005-07-01 Thread Ben Ramsey
/ As for reading the text from a PDF, maybe there's some sort of OCR library for PHP out there, but I don't know about it. It'd be a great thing to see, though. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: date field

2005-08-10 Thread Ben Ramsey
than 1 year ago (or should I think of 365 days)? `updated` date NOT NULL default '1999-12-12' I've looked at: http://ca3.php.net/manual/en/function.getdate.php Thanks, John -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Catching all errors and redirecting

2005-08-18 Thread Ben Ramsey
://www.php.net/set_error_handler -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
to use the stripslashes() function. Using stripslashes() will remove slashes that were intended to be in the output. Hint: turn off magic_quotes_gpc. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php cli script with if-then's very slow

2005-08-18 Thread Ben Ramsey
time. When you execute it, you are executing the compiled code that the machine natively understands. PHP, on the otherhand, is not compiled and has to be interpreted by the PHP engine each time it is run. This is, naturally, going to make it slower than C. -- Ben Ramsey http

[PHP] Re: Custom session handling - bad or good idea?

2005-08-18 Thread Ben Ramsey
Schlossnagle's _Advanced PHP Programming_ book. Take a look at pages 564 through 568. He talks about writing a custom session handler in C. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP MySQL insert

2005-08-18 Thread Ben Ramsey
said in this thread, the problem is on quoting and maybe on converting the values to entities, to prevent some quote break the sql structure. You don't need to convert the values to HTML entities when saving to a database. That's not going to prevent this problem. -- Ben Ramsey http

Re: [PHP] Re: PHP MySQL insert

2005-08-19 Thread Ben Ramsey
Please always reply to the list so that others can benefit from the exchange. As it happens, I'm not exactly very knowledgeable about character sets, so someone on the list may be able to offer more help with regard to the problem you're experiencing. -Ben areguera wrote: On 8/19/05, Ben

[PHP] Deadlock with session handling code?

2005-09-08 Thread Ben Ramsey
The following message is from a co-worker. I'm passing it along as a favor. Any help would be greatly appreciated since we're both somewhat stuck with no clue how to proceed with this. Thanks, Ben Ramsey I'm having a major problem with my PHP scripts getting stuck on one of our production

[PHP] Re: Parsing MS-WORD docs

2005-09-08 Thread Ben Ramsey
://wvware.sourceforge.net/ Word2x: http://word2x.sourceforge.net/ -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Pear DB and memcached

2006-06-06 Thread Ben Ramsey
(DB_FETCHMODE_ASSOC); $data = $db-getAll($sSQL); memcache_set($MEMCACHE_STR, MD5($sSQL), $data, 0, 10); Now, your result set is stored properly on the memcache server. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: running php method in the background

2006-06-08 Thread Ben Ramsey
so that i can process user input while not interrupting the protocol. Have you looked at pcntl_fork()? http://www.php.net/pcntl-fork -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
the form with other values in POST than you intend. So, there are two things you must do here: 1) always check the origin of your data (don't use $_REQUEST, even if it seems convenient), and 2) always check that the input received is input expected (filter the input). -- Ben Ramsey http

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
(validate) the input. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
you can't tell the scope of the data. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Ben Ramsey
at least know it comes from an HTTP request, so you know not to trust anything from it. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
individual host and access the same profile. So, you'll need to authenticate the user when they visit a new host. This may be a decrease in usability, but it's an increase in security. For more information about sessions, read the manual: http://www.php.net/session -- Ben Ramsey http

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
increases the risk of exposure. [Hi Ben!] -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Register Globals

2005-11-08 Thread Ben Ramsey
-- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
to share sessions across two different domains. If you must share profile information, then (in my opinion) require authentication and a separate session on the second domain. Otherwise, use a subdomain to share sessions. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
a NULL value? You should filter your variables before you use them--even variables coming from $_SERVER. Remember, $_SERVER variables can be overwritten: $_SERVER['SERVER_NAME'] = 'Howdy Doody'; echo $_SERVER['SERVER_NAME']; So, make sure they're what you expect them to be. -- Ben Ramsey http

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
On 11/8/05 11:52 PM, Ben Ramsey wrote: I know this is off-topic for this thread, but just as I see isset() misused (as in this case), I often see empty() misused. For example, when using empty(), the following all return TRUE: On second thought, misused is the wrong word. I mean misunderstood

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
in because it will have already expired. This alleviates the exposure issues I was discussing. Hope this helps. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
On 11/9/05 9:45 AM, Paul Williams wrote: ?php print EOF HTML $_SERVER['PHP_SELF'] /HTML EOF; ? Try it with curly braces: ?php print EOF HTML {$_SERVER['PHP_SELF']} /HTML EOF; ? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
it this way: ?php print EOF HTML $_SERVER[PHP_SELF] /HTML EOF; ? Personally, I put curly braces around all interpolated variables because it makes it easier for me to read and see the variables, but this is really up to user preference. -- Ben Ramsey http://benramsey.com/ -- PHP General

Re: [PHP] Using the echo tag...

2005-11-09 Thread Ben Ramsey
On 11/9/05 10:03 AM, Paul Williams wrote: So would it be acceptable if I used curly braces on all variables (whether superglobals or not) in a here document? Yes. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
probably not very sensitive). Does this answer your question? And, yeah, denying used order numbers would be a good idea. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread Ben Ramsey
, and if this is a route you want to take, I would suggest looking at PEAR::HTTP_Request, since it provides an easy to use API for this. I, however, don't think you'll need to do this (at least it doesn't sound like something that's necessary given what I know about your form). -- Ben Ramsey http://benramsey.com

Re: [PHP] java .vs php

2005-11-09 Thread Ben Ramsey
://public.yahoo.com/~radwin/talks/php-at-yahoo-zend2005.pdf -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unable to send variables to MySQL table

2005-11-09 Thread Ben Ramsey
$add_to_db. Then take the echoed line and try to run it against the database. Does it still work, then? -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Select and $_POST

2005-11-09 Thread Ben Ramsey
something it shouldn't. This, of course, assumes you're using MySQL, but there are other escaping functions for other databases. Just look in the PHP manual. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Richard Lynch's Email Address ...

2005-11-09 Thread Ben Ramsey
of work into it to help out with this. In the meantime, check out PEAR::Mail, which includes Mail_RFC822 that can be used to validate e-mail addresses. Also, if your PHP is compiled --with-imap, then you can use imap_rfc822_parse_adrlist() to validate e-mail addresses. -- Ben Ramsey http

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread Ben Ramsey
is that the developer should be able to trust the data in $clean. If PHP had a taint mode and didn't have register_globals, then we'd be making some progress. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Filtering and Escaping (Was: Select and $_POST)

2005-11-14 Thread Ben Ramsey
is going, so $url, $sql, $html, etc. But, with that in mind, it wouldn't be too hard to use $_OCLEAN['url'], $_OCLEAN['sql'], and $_OCLEAN['html'] as arrays within the $_OCLEAN array. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
the standard installation of PHP on FC3, then it won't have pcntl enabled with --enable-pcntl because it's not enabled by default. You will have to recompiled PHP with this feature. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
the first note about leaving the program running in the background. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mail problem at interland

2005-01-29 Thread Ben Ramsey
/package.mail.mail.intro.php. -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php rich text editors

2005-04-07 Thread Ben Ramsey
DuSTiN KRySaK wrote: Can anyone refer me to anything that will work with PHP? Just need it for a blog type application. FCKEditor works well, has a PHP version, and is cross-browser: http://www.fckeditor.net/ -- Ben Ramsey Zend Certified Engineer http://benramsey.com -- PHP General Mailing List

[PHP] Re: shared library in php

2005-04-11 Thread Ben Ramsey
the extension you're looking for. If it's a library you created and you want to use it as a PHP extension, take a look at the PHP manual, particularly the section on creating extensions: http://www.php.net/manual/en/zend.creating.php -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
permissions to the Web directory. In general, permission settings under Windows suck. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
Ahmed Abdel-Aliem wrote: On Apr 11, 2005 8:28 PM, Ben Ramsey [EMAIL PROTECTED] wrote: Ahmed Abdel-Aliem wrote: i have a problem with deleting files, i use windows XP and installed on it apache server PHP 5.1 i use unlink($file) to delete files but it doesn't work while it works fine on my

[PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
(files/.$this-File_Name, 0777); See here for more info: http://us2.php.net/chmod Like I said, I'm not sure whether this is the cause of the problem, but give it a shot and see what happens. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: Can't Delete File Using Unlink

2005-04-11 Thread Ben Ramsey
John Nichel wrote: b) Paths in the MS world are with the backslash (\) and not the forward slash (/) Windows NT onward (XP, 2003, etc.) should understand both the forward slash and the backslash in a file path. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http

[PHP] Re: Is the syntax correct?

2005-04-12 Thread Ben Ramsey
BY id $order ); The rest of it looks fine to me. -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shared library in php

2005-04-12 Thread Ben Ramsey
don't want to promote illegal activities on this mailing list. :-) -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Script Needed

2004-01-14 Thread Ben Ramsey
The script should be easy enough to create on your own. Just check the documentation on the mail() function at php.net. -Ben Eric Belardo wrote: Good evening all, I am designing a website were different users will be posting their portfolios and I am seeking a PHP Contact form script that

[PHP] Re: Installing PHP on IIS6 Windows 2003

2004-01-15 Thread Ben Ramsey
I'm suffering from installing PHP on IIS 6.0, Windows 2003 Web Edition Server. Any how-to ? or anyone how can write the instructions how to do it exactly ? I found a helpful guide to installing PHP on IIS 6.0 (Win2003). Browse to http://www.php.net/manual/en/installation.php . Look in the

[PHP] Re: create_function() and anonymous methods

2004-01-15 Thread Ben Ramsey
Is it possible to use create_function() to define anonymous methods (like in Java) ? I'm not exactly sure what an anonymous method is, but I do know that PHP 5.0 Beta 3 offers a new object model that includes abstract classes and methods, which may be something you will want to take a look at.

[PHP] Junk Mail from this List?

2004-01-15 Thread Ben Ramsey
I'm using Mozilla Thunderbird 0.7 to view and post to this news group, so I don't know if that has anything to do with this, but, after just posting a few messages to the list, I've received a bunch of what I consider spam to my e-mail address. The spam doesn't consist of advertisements but

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

Re: [PHP] Variables

2004-01-15 Thread Ben Ramsey
AH How do you insert a php variable into a javascript function? AH function redirect(?php $MyVar ?) { location = ?php $MyVar ?; } function redirect (?=$MyVar?) { location = ?=$MyVar?; } or use: function redirect (?php echo $MyVar; ?) { location = ?php echo MyVar; ?; } The short syntax only works

[PHP] Re: server hanging on php site

2004-01-15 Thread Ben Ramsey
I don't see any errors or an increased cpu/memory load. First of all, make sure that display_errors in your php.ini file is set to On. I believe that the distribution file that comes with PHP has it set to Off by default. Once it's set to On, see if you can get it to generate an error and

[PHP] Re: filtering filename.ext on file-upload.

2004-01-15 Thread Ben Ramsey
How can you filter the extension for files being uploaded on a system via form. Use pathinfo() ... check it out at http://www.php.net/manual/en/function.pathinfo.php -Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Please help me with these questions..

2004-01-16 Thread Ben Ramsey
An excellent resource for all these questions is the documentation found at http://www.php.net/docs.php. Below, I've provided some links to the specfic docs for each question. 1- MD5 with PHP values. http://www.php.net/md5 2- Random values in PHP.

[PHP] Re: How to compare between two values?

2004-01-16 Thread Ben Ramsey
How to compare between two values You may also use strcmp() to compare string values: if (strcmp($string1, $string2) == 0) { //do stuff } I know that in ASP (*gasp*... he uses a MS technology!) the StrComp function has an increased performance difference over comparing the strings with an

[PHP] Re: Schedule an Event with PHP

2004-01-16 Thread Ben Ramsey
Besides using CRON to hit that particular event table, is there any other method I am not thinking of that can be used with PHP? I want to check that event table every 5 minutes. If this is on a Web site, can you not just check the database everytime a user hits a page in the site rather than

[PHP] Re: dynamic array creation from form elements

2004-01-16 Thread Ben Ramsey
Try using $_POST[listItem$i] instead of $_POST[listItem . $i] or do something like this: $post_var_name = 'listItem' . $i; this do $_POST[$post_var_name]; I don't think you can do any evaluation within the brackets. Thus, you couldn't use the concatenating dot. -Ben -- PHP General Mailing

[PHP] Re: dynamic array creation from form elements

2004-01-16 Thread Ben Ramsey
I don't think you can do any evaluation within the brackets. Thus, you couldn't use the concatenating dot. Nevermind... I am wrong on this. But, I also completely missed that the code you have posted doesn't set $iListItems as Richard suggested. So, go with his suggestion. :) -Ben -- PHP

[PHP] Re: sorting multi-dimensional arrays

2004-01-16 Thread Ben Ramsey
//now, I want that array sorted by the clinic_name, and then doc_name. Can someone who has more currently active brain cells than me figure out what the array_multisort function call should look like? In the documentation, I've found plenty of examples to do a multi-dimensional sort on one

Re: [PHP] Re: server hanging on php site

2004-01-16 Thread Ben Ramsey
BK PHP page causes the whole httpd to stop responding momentarily; BK no sites will load, those that are loading stop in the middle. BK But after say 30-45 seconds it continues just fine BR First of all, make sure that display_errors in your php.ini BR file is set to On. I believe that the

[PHP] Re: Please help me retrieving data from a PHP file!!???

2004-01-16 Thread Ben Ramsey
How to retrieve data from a PHP file? (The value that will be retrieved of course it is echoed in the PHP file, and it will be shown in a TextBox in my VB program.. so I want to retrieve it to my EXE VB program that will put it inside a TextBox or something like that..) From within a PHP

[PHP] Re: Variables not working!

2004-01-19 Thread Ben Ramsey
Try using $_POST['fname'] instead of $fname. This just means that register_globals is probably set to off in php.ini, which is the recommended setting. Take a look at the section on predefined variables in the PHP manual for more on this:

[PHP] [Fwd: Delivery Report (failure) for php-general@lists.php.net]

2004-01-19 Thread Ben Ramsey
-ID: [EMAIL PROTECTED] Date: Fri, 16 Jan 2004 10:38:49 -0500 From: Ben Ramsey [EMAIL PROTECTED] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 References: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED

[PHP] Re: libphp_common430 is in conflit with php-4.3.1-11mdk

2004-01-19 Thread Ben Ramsey
What's the error? Luiz Gustavo Sarubi Macchi wrote: Please, I´m trying to compile PHP so it´s reporting an error: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this code right?

2004-01-19 Thread Ben Ramsey
Radwan Aladdin wrote: Oh sorry.. I didn't notice that.. anyway.. I want to know.. what to add to this code to make it also check the serial between the database (That users' row) and the GET variable before it echos anything.. so the UserName, Password and Serial must be the same for that user..

[PHP] Re: Server Map Path

2004-01-19 Thread Ben Ramsey
Is there an equivalent to Server.MapPath(MyDir\MyLocation) in php? I've looked in the docs and don't seem to find it. I did find a reference to; I believe what you're looking for is: realpath('./') That should do the same trick as Server.MapPath(). -Ben -- PHP General Mailing List

Re: [PHP] Is this code right?

2004-01-19 Thread Ben Ramsey
Radwan Aladdin wrote: Do you mean this is the right code : The code overall looks right, but you set $Serial twice... first you do: $Serial = $_GET['Serial']; Then you do: $Serial = htmlspecialchars($row[0]); Then you set $UserSerial to $row[1] (the same as the Password column). So, when

[PHP] Generating an Excel file?

2004-01-19 Thread Ben Ramsey
I'm pretty sure I know how to use header() create a CSV file for a client to download data from a database, but I think it would really impress this client if I could generate a Microsoft Excel file instead of a CSV file. Anyone know how to do this? -Ben -- PHP General Mailing List

[PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
Alright. You've all given some great suggestions, and I'm going to track them down. But, for now, I'm settling for creating a CSV file. My next question: How do I get the file to download without the .php extension on the end? It's downloading it as filename.csv.php. The code to right my

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
Adding any of those headers still does not remove the .php from the end of the file when I am prompted for the download. I have a client that will be downloading this file, and I do not wish to instruct them to first remove the .php extension before they can view it. -Ben [EMAIL PROTECTED]

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Ben Ramsey
John W. Holmes wrote: From what I've seen on here, the only workaround is to pass an extra variable in the URL that ends in .csv, even though you don't need to use that variable. file.php?var=whateverdummy=f.csv Olwen - Sal Williams wrote: Name it for example something.csv The in your

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Ben Ramsey
[EMAIL PROTECTED] wrote: or download the file without the php-script and analyse the http-headers with a network-sniffer There is no way to download the file without the PHP script. It is being generated by the PHP script from data in a database. The file does not actually exist. -Ben --

Re: [PHP] $_SESSION

2004-01-20 Thread Ben Ramsey
Alex Hogan wrote: I got back an error that read; Warning: session_start(): Cannot send session cookie - headers already sent by Warning: session_start(): Cannot send session cache limiter - headers already sent. You need to use session_start() before any headers are written. -Ben -- PHP

[PHP] Re: connecting PHP to MS Access

2004-01-20 Thread Ben Ramsey
Sounds to me like you have everything pretty much figured out now, but no one has yet mentioned the ODBC functions built into PHP, so I thought I'd throw that out as a way to actually connect to and retrieve data from a MS Access database. Just set up a DSN and connect to it. The ODBC

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
Flash has the ability to read in text files, so you could use PHP to output data in the correct format and use Flash to read the PHP script like it reads a text file. We did this in ASP once upon a time. Here's a tutorial about reading text files into Flash:

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
can read that in just fine without needing to connect via a socket. -Ben Ben Ramsey wrote: Flash has the ability to read in text files, so you could use PHP to output data in the correct format and use Flash to read the PHP script like it reads a text file. We did this in ASP once upon a time

[PHP] Re: Flash-PHP Socket Connection

2004-01-20 Thread Ben Ramsey
with GET or POST, but I'm looking for a socket connections of following reasons: 1) I want a fast connection 2) I'm looking at this as a challenge, because it doesn't seem like anyone else has done this before Eric Ben Ramsey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What I mean

[PHP] Re: PHP FuseBox

2004-01-21 Thread Ben Ramsey
As far as I can tell, there isn't a common coding practice among PHP developers. What I mean is: there is no standard as in ANSI Standard C++. However, I believe that there beginning to be a move toward a more standardized way of coding, and I would greatly support and like to be involved in

Re: [PHP] PHP 5 Book

2004-01-21 Thread Ben Ramsey
Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I can't find that in any of the new features logs. Anyone know about this? It'd be a great feature to have. Unless, of course, anyone knows how to do this without a CREATE VIEW statement. -Ben [EMAIL PROTECTED] wrote: (cant

Re: [PHP] PHP FuseBox

2004-01-21 Thread Ben Ramsey
If you checked out the PHP Community site announcement on the php.net site, you'd notice that the site may involve some coding standards creation. I find this very interesting and perhaps exciting. http://shiflett.org/archive/19 [EMAIL PROTECTED] wrote: I've developed my own methodology and

Re: [PHP] PHP 5 Book

2004-01-22 Thread Ben Ramsey
VIEWs are those nice things that PostgreSQL includes that MySQL doesn't yet. ;P Jay Blanchard wrote: [snip] Speaking of MySQL, I heard tale that 5.0 would include VIEWS, but I can't find that in any of the new features logs. Anyone know about this? It'd be a great feature to have. Unless,

Re: [PHP] MSSQL connection

2004-01-22 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If your Web server is running on a machine that is separate from your database server, then you'll also need to copy the file ntwdblib.dll from the database server to your C:\WINDOWS\system32 folder. PHP needs that DLL for the mssql functions to work

[PHP] Access Violation at 77FCC61F?

2004-01-23 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anyone know what this error means: PHP has encountered an Access Violation at 77FCC61F I'm running PHP 5.0 beta 3 on IIS 5.0 on a Win2K machine. I received the above error message multiple times after changing addslashes($value) to str_replace(',

Re: [PHP] Why we love Microsoft (0t)

2004-01-23 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Copyright and trademark are two wholly separate things. The Kimberly-Clark Corporation has a registered trademark on the name and logo for Kleenex. Thus, no one else has a right to use the word Kleenex to describe their product. That, however,

Re: [PHP] Why we love Microsoft (0t) - JELLO

2004-01-23 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As a humorous sidenote, I meant to say: let's hope that Windows (a registered trademark brand of Microsoft) doesn't get to the level of name recognition where the consumer refers to all graphical desktops as Windows. ;-) Roger Spears wrote: | Another

[PHP] Re: PHP integration with ASP

2004-01-25 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Since the action of your form is the ASP script, it will always take your user to the ASP script and not return results to the PHP application, which I think it what you want to do, if I am not mistaken. I found a link in the manual

[PHP] Re: question PHP - HTML

2004-01-26 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you View Source in IE, you'll see it printed in the expected way. The browser, though, will not show it as you expect it. This is because the browser needs a br tag for a newline and will not read a \n as a br. So, use br instead of \n. Viviane Hu

[PHP] Re: send a POST to a URL from within PHP code

2004-01-26 Thread Ben Ramsey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I answered a question similar to this yesterday. There is a user-submitted function listed in the PHP manual under HTTP functions that will POST to another page from within a PHP script and return the value of the POST back to the PHP script without

  1   2   3   >