Re: [PHP] british date format

2008-05-09 Thread André Medeiros
Try this: http://pt.php.net/manual/en/function.strptime.php Use the result with mktime to get the timestamp. I also checked set_locale but that won't interfere with strtotime :( On Fri, May 9, 2008 at 9:58 AM, Merca, Ansta Ltd [EMAIL PROTECTED] wrote: Hi Anyone dd/mm/ as a date variable?

Re: [PHP] Re: british date format

2008-05-09 Thread André Medeiros
Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After replying however, I noticed that strptime is only implemented in PHP5. Sorry about that mate. On Fri, May 9, 2008 at 2:36 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Merca, Ansta Ltd

Re: [PHP] Re: british date format

2008-05-09 Thread André Medeiros
Yeah, that would be the way to do it ;) On Fri, May 9, 2008 at 3:54 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Shawn McKenzie wrote: André Medeiros wrote: Shawn, I think the idea here was to get a timestamp from a date in that format he was telling about. After replying however, I

Re: [PHP] php.ini

2008-05-09 Thread André Medeiros
I'm not sure PHP5 would read php.ini from that directory. You should take in account that your hosting company may _NOT_ allow you to change certain parameters. That said, try visiting http://us2.php.net/configuration.changes and see how that works for you. Good luck On Fri, May 9, 2008 at 4:47

Re: [PHP] PHP and #if

2008-03-14 Thread André Medeiros
OK, here's how it goes: ?php if(!defined('_THIS_PHP_FILE_PHP')) { define('_THIS_PHP_FILE_PHP', true); // define your classes and functions here } // endif _THIS_PHP_FILE_PHP ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] error_reporting(E_ALL) doesn't show anything

2007-05-15 Thread André Medeiros
Either that, or ini_set('display_errors', '1'); On 5/15/07, Jim Lucas [EMAIL PROTECTED] wrote: Afan Pasalic wrote: hi, in php.ini is error_reporting turned off. and, to see an error have to open error_log. though, for me is much easier to have it on and see the errors on the screen.

Re: [PHP] retrieve POST body?

2007-04-18 Thread André Medeiros
Reading from php://input on a webserver will retrieve the Body of the HTTP Request. On 4/18/07, Justin Frim [EMAIL PROTECTED] wrote: Greetings, Is there any way to retrieve the POST message body when a form is submitted to a PHP script using multipart/form-data? I can't use just the $_POST[]

Re: [PHP] PHP excel capability

2007-04-18 Thread André Medeiros
1) You'll be better off using templates, AFAIK. 2) PHP has classes to generate PDF's without the need of extensions. (http://www.fpdf.org/) On 4/18/07, Jonathan Kahan [EMAIL PROTECTED] wrote: Hi all, Can PHP be used to generate an excel file that A) Contains Macros B) Allows Graphics to be

Re: [PHP] retrieve POST body?

2007-04-18 Thread André Medeiros
php://input ?? ;) On 4/18/07, Justin Frim [EMAIL PROTECTED] wrote: Chris Shiflett wrote: Justin Frim wrote: Is there any way to retrieve the POST message body when a form is submitted to a PHP script using multipart/form-data? There's the always_populate_raw_post_data configuration

Re: [PHP] retrieve POST body?

2007-04-18 Thread André Medeiros
php://stdin perhaps? On 4/18/07, Justin Frim [EMAIL PROTECTED] wrote: André Medeiros wrote: Reading from php://input on a webserver will retrieve the Body of the HTTP Request. Not for me it doesn't. That only seems to work when the form is submitted as application/x-www-form-urlencoded

Re: [PHP] What is $this-

2007-02-18 Thread André Medeiros
Actually, $this-$message would be wrong, but the concept is right. On 2/19/07, Leonard Burton [EMAIL PROTECTED] wrote: HI, $this-SetFont('Arial','B',15); what you include is a snippet from a class. Here is a brief into to how a class works, sort of like a function. The $this refers to the

[PHP] Weird behaviour with IE

2007-01-11 Thread André Medeiros
Hi list. I know this may be a bit out of topic, but I've decided to try. This website I'm maintaining opens just fine in firefox, and loads everything. However, the same doesn't happen in IE, since the status bar reads 1 item(s) remaining on most of the pages. That issue raises another

Re: [PHP] PHP analytics

2006-12-06 Thread André Medeiros
Storing the document that is being called and get paramaters on a DB is very simple You would have an include like $doc = $_SERVER['PHP_SELF']; $get_vars = serialize($_GET); mysql_query('INSERT INTO logs (page, vars) VALUES (' . $doc . ', ' . addslashes($get_vars) . ')'); Of course you'd need

Re: [PHP] PHP analytics

2006-12-06 Thread André Medeiros
Not really, it's instant now. You just have to have a google account. On 12/6/06, Edward Kay [EMAIL PROTECTED] wrote: What you describe is certainly possible, and many sites have this functionality. If you're just starting out however, look into Google Analytics. It gives you more info than

Re: [PHP] PHP analytics

2006-12-06 Thread André Medeiros
Do those log GET params? On 12/6/06, Vincent DUPONT [EMAIL PROTECTED] wrote: You could look for Apache logs analysers, too vincent -Original Message- From: Rick. [mailto:[EMAIL PROTECTED] Sent: Wed 6/12/2006 12:48 To: php-general@lists.php.net Subject: [PHP] PHP analytics Hello I

Re: [PHP] Microsoft Partners With Zend

2006-11-04 Thread André Medeiros
A bit out of topic perhaps, but is this the time to see Steve Balmer and his developers dance all over again? ;) H On 11/3/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, November 3, 2006 12:36 pm, Curt Zirzow wrote: Here is the actual demo given:

Re: [PHP] Finding user's timezone

2006-11-03 Thread André Medeiros
The result of that function would depend on where the server is installed, not where the client is accessing it from, right? On 11/3/06, Dotan Cohen [EMAIL PROTECTED] wrote: How does php decide what timezone a user is in? Although I am in Haifa, Israel (GMT+2), when I go to a page with date(e)

Re: [PHP] Finding user's timezone

2006-11-03 Thread André Medeiros
I second that. My company has an IP address on the mainland which is our internet gateway, but on the azorean islands the time zone is different. On 11/3/06, Edward Kay [EMAIL PROTECTED] wrote: Hmm... in $_SERVER array you get a client IP so You know client coutry. if exists a list of ip

[PHP] Send process to background

2006-10-13 Thread André Medeiros
Hello list, I am working on a backup system that needs to be called through a webpage to start the process. I am trying to do this on a one-file-only sollution. The thing is, the first request to the site needs to start the backup, but I didn't want to use any command-line tools, since some of

Re: [PHP] Send process to background

2006-10-13 Thread André Medeiros
PROTECTED] wrote: On Fri, 2006-10-13 at 16:05 +, André Medeiros wrote: The thing is, the first request to the site needs to start the backup, but I didn't want to use any command-line tools, since some of our servers rely on safe_mode. Is there any way to send output to the browser

[PHP] Execution time

2006-09-08 Thread André Medeiros
Hello everyone. This may seem as a silly question, but I went through the documentation and it wasn't explicit on this issue, at least for me. Let's say that I'm on an 128kb/s upload. I need to upload an 100mb file through a POST. PHP has, by default, 90 seconds execution limit time. So, the

Re: [PHP] Video uploading with PHP - convert to flash on the fly?

2006-09-04 Thread André Medeiros
ffmpeg _DOES_ convert to flash video (FLV). On 9/4/06, Paul Scott [EMAIL PROTECTED] wrote: On Mon, 2006-09-04 at 11:50 +0200, Merlin wrote: thank you for the hint. ffmpeg seams to be a good way to create thumbnails out of the video, but how to convert it on the fly to flash video? PHP

Re: [PHP] convert byte to MB

2006-07-25 Thread André Medeiros
divide by 1024, and you'll get KB divide again by 1024 and you'll get MB same for GB, TB, etc On 7/25/06, weetat [EMAIL PROTECTED] wrote: Hi all , I have data which have value in bytes for example , $bytes = 33554432; How to convert this to MB ? THanks - weetat (PHP Novice)

Re: [PHP] What would cause this?

2006-06-01 Thread André Medeiros
Here's what you can do: Have a timestamp of the last e-mail stored on a file. If time() - that timestamp 600 (10 minutes) then don't send the e-mail. When sending it, do this $server_array = print_r($_SERVER, true); and use the $server_array variable to obtain some info regarding the client

Re: [PHP] corrupt pdfs

2006-05-31 Thread André Medeiros
A quick google search tells you that LONGBLOB can contain string with a maximum length of 4294967295 characters, which translates into 4gb+/- Maybe a MEDIUMBLOB (16777215 characters) would already do the trick, no? It supports as much as 16mb +/- On 5/31/06, Chris [EMAIL PROTECTED] wrote:

Re: [PHP] Upload files problems

2006-05-26 Thread André Medeiros
I believe that those 90 seconds start counting as soon as php starts interpreting the request, ie. after getting the file and form, not when it starts uploading. The second one wouldn't make much sense. On 5/26/06, Rory Browne [EMAIL PROTECTED] wrote: It's very hard to read code, when either

Re: [PHP] RE: Can php convert doc to HTML?

2006-05-24 Thread André Medeiros
So, here's what you need. http://ftp.45.free.net/pub/catdoc/catdoc-0.94.2.zip This converts doc files to .txt, although I'm not sure that it will keep the format intact. Take care. On 5/24/06, Finner, Doug [EMAIL PROTECTED] wrote: On 5/23/06, Martin Alterisio [EMAIL PROTECTED] wrote: If

Re: [PHP] parsing/replacing for special MS Word characters

2006-05-24 Thread André Medeiros
When my clients use word to compose the contents of a website, I always recommend them to paste the contents onto notepad and only then pass them to the RTE on the browser so that the text looses all it's formatting. Sucks, but it's the only way I know. Since then, they started formatting using

Re: [PHP] sorting dates with php

2005-12-21 Thread André Medeiros
You COULD sort them if the date was stored backwards, ie. Year/Month/Day On 12/21/05, Jim Moseby [EMAIL PROTECTED] wrote: Have a load of dates in the format DD/MM/YY. Thet are stored as a VARCHAR on a mysql DB. I need a way to sort them into order(most recent first) Using the

Re: [PHP] LDAP and a pain in my neck

2005-10-20 Thread André Medeiros
Check your webserver logs. If PHP couldn't use the extension, it will accuse that in the logs. On 10/20/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Call to undefined function: ldap_connect() What am I missing? TIA. Did you uncomment (and properly define) the 'extension_dir'

Re: [PHP] Re: php guru!!!!!

2005-09-18 Thread André Medeiros
items' as well as the user selecting different items within the various pages... however, i'm now having an issue when i try to use the 'header' function to redirect the user to another page after the given logic is completed. -bruce -Original Message- From: André Medeiros

Re: [PHP] Re: edit $variable online?

2005-08-17 Thread André Medeiros
If I were you I'd have a file just to define those kind of values (ie. config.php), wich would be included as needed. On 8/17/05, Mark Rees [EMAIL PROTECTED] wrote: Jesús Alain Rodríguez Santos [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have in a php page one ($variable

Re: [PHP] mail()

2005-08-17 Thread André Medeiros
Do you have a mail server running? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail()

2005-08-17 Thread André Medeiros
If you want to receive e-mails from the outside, yes, you'll have to register a domain, configure an MTA to work on windows and all that jazz. Besides, if you want to manage pop, you might as well start looking at the php4-imap / php5-imap module to be able to work with POP more easily. I might

Re: [PHP] protecting a directory

2005-08-14 Thread André Medeiros
Apache already has that feature. It's a directive in .htaccess, IIRC. On 8/14/05, jenny mathew [EMAIL PROTECTED] wrote: hello, i want to protect a directory using php username and password authentication.the username and passwords will be stored in .htpasswd file.but the problem is that how

Re: [PHP] How to determine if a script instance is already running?

2005-08-02 Thread André Medeiros
On Tue, 2005-08-02 at 09:49 -0400, Jim Moseby wrote: I have a command line script that needs to run continuously, and so I plan to have cron execute it every so often. I want to have the script first check to see if another instance is already running and, if so, die(). Now, I know I can

Re: [PHP] How to determine if a script instance is already running?

2005-08-02 Thread André Medeiros
On Tue, 2005-08-02 at 15:09 +0100, Stut wrote: André Medeiros wrote: Do like some services do: 1) Check if script.pid exists 2) If it doesn't 2.1) Write the process's PID onto the file (http://pt.php.net/manual/en/function.getmypid.php) 3) If it does 3.1) Die gracefully

Re: [PHP] Running a PHP script everyday

2005-08-01 Thread André Medeiros
Shit shit shit!!! I completelly forgot! #!/usr/local/bin/php -q Notice the -q, it's important. Sorry :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running a PHP script everyday

2005-07-30 Thread André Medeiros
You can cron the script to run. Do the following: 1) Add #!/usr/bin/php as the first line on your .php file. If /usr/bin/php isn't where your php binary lives, type whereis php to find out 2) Make sure you chmod +x your php script. 3) http://www.linuxforums.org/tutorials/1/tutorial-4017.html On

Re: [PHP] allowing selected file types

2005-07-30 Thread André Medeiros
You might want to read up on this: http://en.wikipedia.org/wiki/Magic_number_%28programming%29 On 7/30/05, Sebastian [EMAIL PROTECTED] wrote: i know i shouldn't rely on mime types for file verification but anyways.. I use application/zip which works fine on firefox and only allows zips..

Re: [PHP] is it possible.

2005-07-29 Thread André Medeiros
When deppending on authentication, never link the files directly. You can create a download.php file that gets an ID through the URL, checks if the user is authenticated and then read the file. You will need these functions: http://pt.php.net/file_get_contents http://pt.php.net/header Header()

Re: [PHP] PHP and ISMAP

2005-07-29 Thread André Medeiros
Why not using a rewrite rule that would point to an index.php or somesuch? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP and ISMAP

2005-07-29 Thread André Medeiros
On Fri, 2005-07-29 at 14:47 +0200, Michelle Konzack wrote: Please no CC, I am on the list. Am 2005-07-29 14:20:47, schrieb André Medeiros: Why not using a rewrite rule that would point to an index.php or somesuch? And then ? I have e.g. 8x6 click maps, pointing all to the same

Re: [PHP] help with ORDER BY query

2005-07-29 Thread André Medeiros
if( mysql_num_rows( $query_r ) 0 ) { while( $currentResult = mysql_fetch_array( $query_r ) ) { // do something with the result. } } else { echo 'No results.'; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP code in a MySQL record

2005-07-29 Thread André Medeiros
Either what Kris says, or you can use a templating engine. See Smarty (http://smarty.php.net) On 7/29/05, Kristen G. Thorson [EMAIL PROTECTED] wrote: Is there a particular reason you need *PHP* in the database? If not, then use a placeholder system of some sort ( like #var# ) and

Re: [PHP] function with argument of type array

2005-07-28 Thread André Medeiros
On Thu, 2005-07-28 at 11:08 +0200, marc serra wrote: Hi, i want to know if it is possible to create a function and declare that one of its arguments is array type. In fact i want to do something like this function test(String $litteral, array $foo){ . } I got an error when i

Re: [PHP] define (true/false)

2005-07-28 Thread André Medeiros
On Wed, 2005-07-27 at 17:17 -0400, Sebastian wrote: i never really used constants before so this may sound stupid.. when you define a constant using define() and want to return true/false is this logical: if($bars == 3) { define('BAR', 1); } then: if(BAR) { // bars is

Re: [PHP] function with argument of type array

2005-07-28 Thread André Medeiros
On Thu, 2005-07-28 at 12:45 +0100, Marcus Bointon wrote: On 28 Jul 2005, at 12:07, André Medeiros wrote: On Thu, 2005-07-28 at 11:08 +0200, marc serra wrote: Hi, i want to know if it is possible to create a function and declare that one of its arguments is array type. In fact i want

Re: [PHP] preg_match - help please

2005-07-28 Thread André Medeiros
On Thu, 2005-07-28 at 19:45 +0800, Jason Wong wrote: On Thursday 28 July 2005 01:50, André Medeiros wrote: You can have four words to describe a first and last name... you can have other alphabets, like arabian, chinese, etc... inserting accented characters alone would make that a big

Re: [PHP] define (true/false)

2005-07-28 Thread André Medeiros
On Thu, 2005-07-28 at 14:41 +0200, Jochem Maas wrote: André Medeiros wrote: On Wed, 2005-07-27 at 17:17 -0400, Sebastian wrote: i never really used constants before so this may sound stupid.. when you define a constant using define() and want to return true/false is this logical

Re: [PHP] Multipage form redux

2005-07-28 Thread André Medeiros
The point of sessions is that when you close your browser, you loose it. I'm affraid that if you want sessions that last two weeks, you'll have to make your own session handler :) but yeah, it's possible, and it beats the crap out of the fill form, store in db, fill form, store in db method. --

Re: [PHP] How Can I send mail in php in HTML format?

2005-07-28 Thread André Medeiros
On Thu, 2005-07-28 at 12:30 -0700, Tomás Rodriguez Orta wrote: Hello friends. How Can I send mail from php in HTML format?. I use the mail() function, but I dont know doing.somebody can I help me? Best regards TOMAS

Re: [PHP] New installation of PHP 5.0.4 on Windows 2003 server

2005-07-28 Thread André Medeiros
Try looking into IIS's error log. There might be something useful there. When, for some reason, this happens in apache, for instance, the error log tells you what went wrong (missing simbol, missing lib, whatever). Good luck! -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Multipage form redux

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 07:51 -0400, Jack Jackson wrote: Hi, I have searched the archives and seen links to tutorials at phpclasses (which seem to be down) and not found an answer to my question: I have a long form I want to break into seven pages. Rather than pass values from page to page as

Re: [PHP] how to know referral function

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 15:14 +0200, Daniele Palumbo wrote: hi. i have a p_debug(), that print out some useful information (for me). it is called by a lot of my functions, and i want to know which one is generating the error. the referral function :) no, i don't want to write in all

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 15:27 +0100, Steve Turnbull wrote: Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use preg_match to verify their input. The pattern I am trying to match is; Firstname Secondname I am not bothered about character

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 15:27 +0100, Steve Turnbull wrote: Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use preg_match to verify their input. The pattern I am trying to match is; Firstname Secondname I am not bothered about character

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 16:16 +0100, Mark Rees wrote: André Medeiros [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 2005-07-27 at 15:27 +0100, Steve Turnbull wrote: Hi I want to see that a user is submiting a form field in the correct manner. So I decided to use

RE: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 11:41 -0400, Mike Johnson wrote: From: André Medeiros [mailto:[EMAIL PROTECTED] On Wed, 2005-07-27 at 16:16 +0100, Mark Rees wrote: Or even four - like Rafael van der Vaart for example - so make sure that the surname box matches spaces as well, and special

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 11:55 -0400, John Nichel wrote: André Medeiros wrote: That's not very nice of you, saying that to people who try to help ;) if( strpos( $_POST['frmName'], ' ' ) === false ) { // Do error handling here } else { // All is OK :) } How does

Re: [PHP] preg_match - help please

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 12:30 -0400, John Nichel wrote: André Medeiros wrote: On Wed, 2005-07-27 at 11:55 -0400, John Nichel wrote: André Medeiros wrote: That's not very nice of you, saying that to people who try to help ;) if( strpos( $_POST['frmName'], ' ' ) === false ) { // Do

[PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
Hi guys. I'm having some trouble here regarding a project. I have a table with projects, wich can be recursive (ie. sub-projects) and it is related to itself. By making the following query -8-- SELECT * FROM projects LEFT JOIN projects proj_parent ON

RE: [PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
sollution (wich neither will make me very happy, but that's life). Thanks for your prompt reply :) C. -Original Message- From: André Medeiros [mailto:[EMAIL PROTECTED] Sent: 26 July 2005 12:18 To: php-general@lists.php.net Subject: [PHP] MySQL + PHP question

Re: [PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
One thing I didn't quite explain myself well... I'm building this to register objects on a permission system. The SQL weight is heavy as it is, and I want to save queries as much as possible. Making two queries to extract information about a project and it's parent is not something I'd want to

RE: [PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
You're missing the point here. I know how to get the parent project's info. I know recursiveness. I _JUST_ don't know how to get the current and parent project's info in just ONE QUERY (since I'm trying to save them because the sql weight is getting pretty heavy). -- PHP General Mailing List

Re: [PHP] Playing Audio

2005-07-26 Thread André Medeiros
On Tue, 2005-07-26 at 13:47 +0100, Tom Chubb wrote: This seems really silly, but I can't find a way of doing it! How can I play/stream an audio file, that may be upto an hour long and keep it playing while visitors view other pages? Is it possible to use sessions so that the file will continue

Re: [PHP] MySQL + PHP question

2005-07-26 Thread André Medeiros
On Tue, 2005-07-26 at 13:39 +0100, Mark Rees wrote: André Medeiros [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One thing I didn't quite explain myself well... I'm building this to register objects on a permission system. The SQL weight is heavy as it is, and I want to save

Re: [PHP] stipping raw text from rss story

2005-07-26 Thread André Medeiros
On Tue, 2005-07-26 at 09:28 -0400, Krypto 76 wrote: I want to write a j2me midlet that displays a story headline and description. This is working great. However I want to write a php script that I can hit the url/page of the full story with then pull all of the stories text and remove all

Re: [PHP] Very Basic question: What IDE/tools I need to begin using PHP?

2005-07-26 Thread André Medeiros
You would actually only need Zend Studio Client. It's the best PHP IDE i've ever tried (and believe me, i've been around ;) On 7/26/05, Taksam [EMAIL PROTECTED] wrote: Hi everybody, I am learning PHP, and have this very basic question: What software/tools I need to begin? What is the best

Re: [PHP] Re: System specific information gathering

2005-07-24 Thread André Medeiros
Or that... :P On 7/24/05, Joe Wollard [EMAIL PROTECTED] wrote: As always, look for someone else's existing project and see how they did it. ;-) http://phpsysinfo.sourceforge.net/ Good Luck! -Joe On Jul 23, 2005, at 9:25 AM, André Medeiros wrote: First of all, you want to have

Re: [PHP] Re: System specific information gathering

2005-07-23 Thread André Medeiros
First of all, you want to have the two values in seperate variables. After reading the contents from the file, do something like: -8- function parseUptimeSeconds( $seconds ) { $resultArray = Array( 'weeks' =

Re: [PHP] Help with a home-grown function

2005-07-22 Thread André Medeiros
On Thu, 2005-07-21 at 13:37 -0700, Dan Trainor wrote: Hello, all - I've been looking around for a function that would tell me if a $value in a $key=$value array was empty, and I could not find one. So I decided to make my own. Even if I am re-inventing the wheel, I thought that the

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread André Medeiros
Given it's a fatal error, it's as bad as a syntax error. It cancels everything it's doing and leaves. Remember that, even the shutdown function has to obey the time limit. On 7/22/05, Liang ZHONG [EMAIL PROTECTED] wrote: ?php set_time_limit(0); function f(){ $count=1000;

Re: [PHP] Howto connect to the internet using php

2005-07-21 Thread André Medeiros
On Thu, 2005-07-21 at 12:10 +0200, Steven wrote: Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting the windows dialer or by some other means? The windows machine uses a standard 56k dialup to connect to the internet. Thanks Steve

Re: [PHP] Howto connect to the internet using php

2005-07-21 Thread André Medeiros
On Thu, 2005-07-21 at 12:10 +0200, Steven wrote: Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting the windows dialer or by some other means? The windows machine uses a standard 56k dialup to connect to the internet. Thanks Steve

Re: [PHP] mail will not send attachment

2005-07-21 Thread André Medeiros
Try http://phpmailer.sourceforge.net/ Works awesomelly great. I've been using it for quite some time now, and I don't want to look at mail() again :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Before I pull anymore hair out.. Is anyone Using..

2005-07-20 Thread André Medeiros
On Wed, 2005-07-20 at 10:21 -0500, Chuck Carson wrote: Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle 10g support and using apache 2.0.54? I have looked at every 10 times over. I have built php with oracle support probably 100 times on 5 different platforms and never had

RE: [PHP] My Project

2005-07-19 Thread André Medeiros
On Tue, 2005-07-19 at 17:46 +0100, Shaw, Chris - Accenture wrote: Taxi for one.. -Original Message- From: George B [mailto:[EMAIL PROTECTED] Sent: 19 July 2005 17:39 To: php-general@lists.php.net Subject: [PHP] My Project Hey guys! This is gona be one of my last questions

Re: [PHP] My Project

2005-07-19 Thread André Medeiros
On Tue, 2005-07-19 at 17:57 +0100, Mikey wrote: George B wrote: Paul Waring wrote: On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote: And I have 100 points. How would I make it so when I click BUY!! My money automaticaly subtracts from 100 to 90. How do I do that?

Re: [PHP] Re: Trimming Text

2005-07-17 Thread André Medeiros
] wrote: Al wrote: André Medeiros wrote: Greetings. I am trying to trim some text containing HTML tags. What I want to do is to trim the text without trimming the tags or html entities like nbsp; and such, wich completelly break the design. Has anyone succeded on doing such a thing

Re: [PHP] Question about apache-php concurrent process control

2005-07-17 Thread André Medeiros
I did something like that for a newsletter sending script. Basiclly, I had two scripts: a) AddEdit.php that would list the newsletter's items and allow it to send b) Send.php that was a script I ran on the background When pressed Send on AddEdit, it would do something like $tempName = tempnam(

Re: [PHP] Is GD available

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 07:06 -0700, Todd Cary wrote: I have php 4.3.11 available, and when I do a phpinfo() http://209.204.172.137:81/testphp.php I see it in the configuration, but it is not listed elsewhere. How can I test to see if it is available? gd_info() is not in 4.3.11 and

[PHP] Trimming Text

2005-07-15 Thread André Medeiros
Greetings. I am trying to trim some text containing HTML tags. What I want to do is to trim the text without trimming the tags or html entities like nbsp; and such, wich completelly break the design. Has anyone succeded on doing such a thing? phpclasses.org won't help :( Thanks in advance.

Re: [PHP] Is GD available

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 07:25 -0700, Todd Cary wrote: In php 4.3.11, ini files are placed in /etc/php.d that have extension=. I have one (i.e. gd.ini) with extension=libgd.so.2 and libgd.so.2 is in /usr/lib/php4. Todd André Medeiros wrote: On Fri, 2005-07-15 at 07:06 -0700, Todd

Re: [PHP] Is GD available

2005-07-15 Thread André Medeiros
/gd/. However, the site says that gd should be supported out of the box. I am going to try and find the rpm for php-4.3.11 and reinstall it. Todd André Medeiros wrote: On Fri, 2005-07-15 at 07:25 -0700, Todd Cary wrote: In php 4.3.11, ini files are placed in /etc/php.d that have

Re: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 15:40 +0100, Raz wrote: Take a look at http://uk.php.net/manual/en/ref.pcre.php - plenty of useful functions for this sort of thing... raz Implementing regular expressions on this kind of task would be a big PITA... and that's if it works (read my previous e-mail).

Re: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 15:49 +0100, Raz wrote: Are you trying to turn, for example p Some text here. /p into pSome text here./p ? Let's say that I have an original string like: This is regular text span class=textwith some text inside a span/span Let's say I want to trim it to 25

Re: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 16:12 +0100, Raz wrote: If you really want to do it, you're gonna have to get your hands dirty, I'm afraid...;) ...off with the gloves...! I was affraid that would happen :( Thanks anyway :) Take care! -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 10:02 -0500, Jay Blanchard wrote: [snip] Let's say that I have an original string like: This is regular text span class=textwith some text inside a span/span Let's say I want to trim it to 25 chars. Brainless trimming would give me something like This is

Re: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 16:03 +0100, Richard Davey wrote: Hello André, Friday, July 15, 2005, 4:24:23 PM, you wrote: AM I am trying to trim some text containing HTML tags. What I want to AM do is to trim the text without trimming the tags or html entities AM like nbsp; and such, wich

Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread André Medeiros
What about... form action=saveConfig.php method=post Database Host: input type=text name=config[database][host] value=?=$config['database']['host']? /br / Database User: input type=text name=config[database][user] value=?=$config['database']['user']? /br / !-- some more fields here -- /form

Re: [PHP] sockets

2005-07-12 Thread André Medeiros
On Tue, 2005-07-12 at 16:49 +0200, daro wrote: Hi. I'm writing a TCP/IP server and client. On your website I found ready php script http://pl2.php.net/sockets but I have a question. For TCP/IP server the example script from your website has to be put on server as index.php file and the

Re: [PHP] sockets

2005-07-12 Thread André Medeiros
On Tue, 2005-07-12 at 09:58 -0500, Greg Donald wrote: On 7/12/05, daro [EMAIL PROTECTED] wrote: I don't know where should I put this script to be able to receive all datas and respond with proper strings. You would run the script as a shell script from the command line. On windows

Re: [PHP] max_file_size

2005-07-12 Thread André Medeiros
On Tue, 2005-07-12 at 11:35 -0400, Sebastian wrote: Each time i try setting MAX_FILE_SIZE in a form and using the upload error code to check if the file is large it always uploads the entire file before showing the error that the file is too big.. either the manual is incorrect or this does

Re: [PHP] sockets

2005-07-12 Thread André Medeiros
Please, PLEASE Reply to All! Yes, you have to add something like --8- while(true) { // code here if( $someConditionThatWillMakeMeExit ) { break; } sleep(1); // to prevent excessive processor

Re: [PHP] max_file_size

2005-07-12 Thread André Medeiros
On Tue, 2005-07-12 at 12:38 -0400, John Nichel wrote: Sebastian wrote: snip it doesnt seem to work on IE or Firefox.. two of the most popular browsers.. this shoudn't even be in the manual then because if it doesnt work for these two browsers then i would consider it pointless to use.

Re: [PHP] sockets

2005-07-12 Thread André Medeiros
Since there was no reference to that on the PHP manual, I thought about mentioning it just to be safe. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] constructors in PHP

2005-07-11 Thread André Medeiros
On Mon, 2005-07-11 at 16:44 +0200, Alessandro Rosa wrote: Is there the possibility to have in PHP multiple class constructors as in C++ or just one ? I would be sure about it in order to prevent useless mad investigations in the code I'm writing. Thanks in advance ... Alessandro Rosa

Re: [PHP] Two websites need to share part of one database, suggestions please

2005-07-11 Thread André Medeiros
What about using web-services (something ala xml?). Could that be considered an option? On 7/11/05, Brad Pauly [EMAIL PROTECTED] wrote: On 7/8/05, Chris W. Parker [EMAIL PROTECTED] wrote: Which option should I go for? Is there another option I'm not considering? Another possibility

Re: [PHP] Two websites need to share part of one database, suggestions please

2005-07-11 Thread André Medeiros
/11/05, Chris W. Parker [EMAIL PROTECTED] wrote: André Medeiros mailto:[EMAIL PROTECTED] on Monday, July 11, 2005 12:44 PM said: What about using web-services (something ala xml?). Could that be considered an option? No because I don't how to use that stuff. :) Chris. -- PHP

  1   2   >