[PHP] Including Google Ads

2006-08-09 Thread C.F. Scheidecker Antunes
Hello all, How do I include Google Ads on my PHP script? I do not want to include it only but to be able to set the keywords for the add. Maybe even have it to change from time to time, probably using AJAX. Any good pointers on Google Ads? Thanks, C.F. -- PHP General Mailing List (http://

[PHP] PHP + DDE live feed

2006-04-09 Thread C.F. Scheidecker Antunes
Hello, I have an Excel spreadsheet that is automatically updated with quotes. I am doing a project for my BS and I need to grab the information from this spreadsheet and populate a MySQL database. Any ideas on how to accomplish that with PHP? The spreadsheet uses a live DDE feed to fetch info

[PHP] DDE + PHP

2006-04-09 Thread C.F. Scheidecker Antunes
Hello, I have an Excel spreadsheet that is automatically updated with quotes. I am doing a project for my BS and I need to grab the information from this spreadsheet and populate a MySQL database. Any ideas on how to accomplish that with PHP? The spreadsheet uses a DDE feed to fetch informati

Re: [PHP] Re: PHP book recommendations>

2005-02-14 Thread C.F. Scheidecker Antunes
I've enjoyed Schlossnagle as I have it on my personal library. Also I am finishing to read PHP 5 Power Programming from Prentice Hall and the creators of PHP. If you want to learn coding style and coding good practices check out this book. A cheap place to get books here in the US is bookpool.com

[PHP] MySQL 4.1 upgrade under PHP4

2005-02-13 Thread C.F. Scheidecker Antunes
Hello all, Does anyone upgraded from MySQL 4.0 to MySQL 4.1 using PHP 4 code? If so, what are the changes that were required on the code? PHP website says that it is required to install a new MySQL extension. I am doing PHP4 programming under Linux. What do you suggest that I should be aware while

[PHP] Artificial Intelligence for PHP

2005-02-12 Thread C.F. Scheidecker Antunes
Hello, I am interested on Artificial Intelligence for PHP, pattern maching, etc. More specifically: data mining, statistics and pattern maching. Couple of years ago there was a presentation on the MELL Extension - AI for PHP. I've tried to google it but I've found no code or examples. Does anyone

[PHP] Which PHP for MySQL 4.1

2004-11-11 Thread C.F. Scheidecker Antunes
Hello, I would like to migrate my MySQL servers from 4.0 to 4.1. As I use PHP as well as Java with these servers I wonder what PHP 4 version would be compatible with MySQL 4.1. Has anyone used MySQL 4.1 with PHP yet? I appreciate your thoughts. Thanks. -- PHP General Mailing List (http://www.php.

[PHP] opensource php compiler

2004-09-23 Thread C.F. Scheidecker Antunes
Hello all, There's a compiler called Roadsend which gives you the ability to compile php scripts into binaries executables. That is nice but I wonder if there would be any other compiler that would do the job and be opensource. Does anyone know anything about it or could point me to resources a

[PHP] How to get mime type from file name

2004-08-15 Thread C.F. Scheidecker Antunes
Hello, Is there any function where I can pass a file name like "file.png" and get return the string of its type 'image/png' ? Basically it is a funcion that takes a file name and returns a string of its mime type. I have used mime_mail to send attachments but the I need when I am attaching the

[PHP] checking for upper case letter on string

2004-08-12 Thread C.F. Scheidecker Antunes
Hello all, I need to check if there are any upper case letters on a given string. There can be one or more letters that might be upper case on a given string no matter their position within the string. Is there any way to check for it? obs: I do not want to convert to lowercase, but to check for

[PHP] Still need help with regex function

2004-07-31 Thread C.F. Scheidecker Antunes
Hello, In order to get the filenames from the output below I have tried the following: preg_match_all('/inflating:"(.*?)"/', $stdout, $matches); print_r($matches); return $matches[1]; But I only get empty arrays with it. I need to fix that so I can have the filenames stored on arrays and also ev

[PHP] help with regex

2004-07-30 Thread C.F. Scheidecker Antunes
Hello, I has as the output of a unzip command called from a PHP script the following: unzip test.zip Archive: test.zip inflating: arch1.txt inflating: arch2.txt inflating: arch3.txt inflating: arch4.txt inflating: arch5.txt inflating: arch6.txt The same I have from a pkware execution : pku

[PHP] Extracting string from shell_exec call

2004-07-27 Thread C.F. Scheidecker Antunes
Hello all. I have a function that executes the unzip command. function test_unzip($command) { $stdout = shell_exec($command); echo $stdout; } This is the content of $stdout after calling it with $command = "unzip ./email/test.zip"; Archive: ./email/test.zip inflating: ./txt/test.t

[PHP] Problem with circular include statement

2004-07-27 Thread C.F. Scheidecker Antunes
Hello all, I have 3 scripts script1.php and script2.php where both include the same general.inc file of functions. Then I have script3.php that calls functions from both scritp1.php and script2.php. As both script1 and script2 include general.inc when I try to use diferent function on script3 I

[PHP] replace n first occurences of a char in a string

2004-07-23 Thread C.F. Scheidecker Antunes
Hello all, If I have a string like this 123.456.789.01 , where dots are used to separate the thousands and the decimal part. How can I first detect this situation? More than one dot. I guess I could use str_word_count() from the manual, right? Then, once I have determined there are more than on

[PHP] Converting regional decimal numbers

2004-07-23 Thread C.F. Scheidecker Antunes
Hello all, I have a few users that use a different number format, other than the US one, which is 1.526,23 . That is, the comma is used as a separator for the fractional part of the number (.23) and the dot is used to separate thousands. Therefore, I need to convert 1.526,23 to 1,526.23, invert t

[PHP] Efficient way to filter this string

2004-07-22 Thread C.F. Scheidecker Antunes
Hello, I have an email string that sometimes has a name and the email address between <> and sometimes has the email adress right away. Two examples of the possible value of $address Joe Doe <[EMAIL PROTECTED]> [EMAIL PROTECTED] I need to convert this string always to the email address and disc

[PHP] string filtering

2004-07-20 Thread C.F. Scheidecker Antunes
Hello all, I need to filter some strings. They can only contain characters like a...z or A..Z and 0..9. Some strings have blank spaces, -,./?>,< characters that must be discarded. I wrote a function to check each and every character but I guess there must be something else more efficient. Any s

[PHP] Importing Excel data using PHP

2004-07-19 Thread C.F. Scheidecker Antunes
Hello all, I need to have some excel capabilities for an automated script. Excel can save files in CSV which are very easy to read and parse with PHP as they are nothing more than text files. Pear has a module called Spreadsheet_Excel_Writer so that you can create Excel files. However I need t

[PHP] More PHPEclipse

2004-07-19 Thread C.F. Scheidecker Antunes
Dan, I have done the same thing and I have the same problem. Did you make it work yet? In my case however, under Windows, preferences I can see PHP SQL (Quantum DB) but not the rest of the PHP options. My registry shows (under Help, Configuration details) *** Plug-in Registry: net.sourceforge.p

[PHP] separating a file extention

2004-07-18 Thread C.F. Scheidecker Antunes
Hello all, Is there any easy and efficient way to separate files extention that vary in size? Some have 3 chars after the dot, some 2, some 1, some 4, some none. Examples: test.zip test.gz test.z test.jpeg test.jpg test (no extention) an have the result returned on a $fext field? I think this ca

[PHP] Compare two TXT files

2004-07-17 Thread C.F. Scheidecker Antunes
Hello all, Is there a more efficient way to compare 2 TXT files other than reading line by line ? What I was doing was reading line by line and compare both files, if one line is different the loops are interrupted and the function returns true. Any ideas? Thanks in advance. -- PHP General Mail

[PHP] Help on copying part of a text file

2004-07-16 Thread C.F. Scheidecker Antunes
Hello all, I need some help on the following: I need to extract a paragraph from a text file that is delimited with a --start-paragraph-- and --end-paragraph-- However, after --start-paragraph-- there's a blank line that I need to remove. The delimiter --start-paragraph-- might be one the first

[PHP] finding a substring

2004-07-16 Thread C.F. Scheidecker Antunes
Hello all, I need to read lines within a text file that might have a " value='somevalue' " string the position of "value=" varies from line to line but there's only one "value=" in each line. So what I need to do is to parse the file and find the "value=" and put their values in an array. Supo

[PHP] Problems saving some email attachments

2004-07-15 Thread C.F. Scheidecker Antunes
Hello all, This is part of a code to save the attachments of an email message that I am trying to figure out. Maybe someone can help me figuring this one out. The code is bellow. I am also including part of the emails source codes. One is not multi-part and does not work, while the second is a

[PHP] Offset error

2004-07-15 Thread C.F. Scheidecker Antunes
Hello, error: PHP Notice: Undefined offset: 1 in /home/ant/test.app/teste3/getfiles.php on line 217 I have this Undefined offset error in PHP because I am trying to get a value from this $att[$k]->parameters[1]->value that sometimes does not exist with offset 1 as the parameters go up to 0 a

[PHP] MIME files decoding

2004-07-15 Thread C.F. Scheidecker Antunes
Hello all, In order to use pear mimedecode.php I have a few questions that were not answered by the documentation. I have emails that have .zip, .pdf, .txt and .csv files. Some emails have more than one attachment. I would like to have a php script to fetch these emails and save only those with

[PHP] PHP5 for Fedora Core 2

2004-07-14 Thread C.F. Scheidecker Antunes
Hello all, Are there any pre compiled rpm packages from Fedora Core 2 yet? If not, I will most likely built it myself. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best external app from php

2004-06-29 Thread C.F. Scheidecker Antunes
Hello all, I need to have a web application to call an external app that needs to execute on the background. (It is an *NIX server) The app that is being called will do a lenghty work but will be called by a php script through the web server. An user will log in, request a computation, the scrip

[PHP] mail command with PHP 4.3.4-1.1 and Fedora Core 1

2004-05-18 Thread C.F. Scheidecker Antunes
Hello all, I have updated an old system to Fedora 1 and php php-4.3.4-1.1. However the mail comand does not work anymore. The php.ini of the original system did not have anything special. Sendmail is not being run locally in this machine. What might be causing it? Thanks in advance, C.F. -- PHP Gen

[PHP] Werid problemswith mail() command: From address on sent messages

2002-11-28 Thread C.F. Scheidecker Antunes
Hello All, I wonder if is there anyone who ever had the same problem and know how to solve it. I have a web site that does send e-mail to some users based on requests. The problem is that although I pass the right user/from address on the mail function, the message source shows From as beeing a

[PHP] Difficult MIME question

2002-09-18 Thread C.F. Scheidecker Antunes
Hello all, I have one situation other than the normal that I cannot extract/save the MIME content of an e-mail which Content-type is different than the normal. When I get attachments that have the following normal structure: === Content-Type: application/x-zip-compre