[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: Save page as text

2005-06-30 Thread Bogdan Stancescu
Hello Rafael, You can try using output control functions (see http://ro.php.net/manual/en/function.ob-start.php) and, depending on whether you want to upload the file or save it on your server (I don't understand which from your message), serve the result with a Content-type: text/plain

Re: [PHP] Achieving 64-bit integers on 32-bit platforms

2005-06-30 Thread Richard Lynch
On Wed, June 29, 2005 9:02 pm, Dan Goodes said: This 32-bit limitation is haunting me everywhere I turn. Is it possible with PHP (at compile-time if need be) to make it use large (64-bit) integers? I believe that PHP runs fine on 64-bit hardware, and uses 64-bit ints everywhere on that...

Re: [PHP] Save page as text

2005-06-30 Thread Richard Lynch
On Wed, June 29, 2005 2:22 pm, [EMAIL PROTECTED] said: I have page with PHP and Javascript code and I need to a link or bottun in it to save its content to a plain text file. (I'm using an apache server in a machine running Windows 2003, and I want to be able to use this feature in IE 6 and

Re: [PHP] I can't cURL

2005-06-30 Thread Richard Lynch
On Wed, June 29, 2005 9:31 am, Jon said: I was able to modify the ebay login example that was provided on http://curl.haxx.se/libcurl/php/examples/ to login to a billing portal that I am trying to access. by doing that I am able to open the home.asp page. What I am wanting is to be able to

RE: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Richard Lynch
On Wed, June 29, 2005 9:24 am, Andrew Scott said: At the end of the day you, the guy around the corner and even me will use what we need to use to get the job done. Don't get me wrong I like php, it has a good support for free stuff, but it's a pain in the butt to configure it into a full

RE: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Andrew Scott
Actually Richard that is not what I am trying to do. This guy actually is after some feedback and that's what I am trying to give him. Pros for PHP: - It is free, and takes more time to learn that coldfusion (debatable yes). It has a huge support from other developers, and is usually

[PHP] Array assignment references: strange behavior

2005-06-30 Thread Nenad Jovanovic
Hi! Under PHP 4.3.10, the following simple code behaves as expected: $b[1] and $c are not modified by the final assignment to $a[1]: Code 1: $a[1] = 1; $b[1] = 2; $c = 3; $a = $b; $a[1] = 7; // resulting mappings: // $a[1] ... 7 // $b[2] ... 2 // $c .. 3 However, the

Re: [PHP] Re: PHP vs. ColdFusion

2005-06-30 Thread Richard Lynch
On Tue, June 28, 2005 8:17 pm, Rick Emery said: Quoting Anton Kovalenko [EMAIL PROTECTED]: As to ColdFusion, It seems to me that this technology is dead already. What makes you say this? I had never heard anything like this, but it would certainly be powerful ammunition to present to my

Re: [PHP] Re: PHP vs. ColdFusion

2005-06-30 Thread Anton Kovalenko
Richard Lynch wrote: Quoting Anton Kovalenko [EMAIL PROTECTED]: As to ColdFusion, It seems to me that this technology is dead already. What makes you say this? I had never heard anything like this, but it would certainly be powerful ammunition to present to my bosses. Perhaps some sort

[PHP] PHP Build Tool / CVS management

2005-06-30 Thread Jonathan Kart
Hey everyone, wondering if anyone has any suggestions for a build management tool written in php to lay over a cvs repository. We're really looking for something along the lines of anthill -http://www.urbancode.com/projects/anthill/default.jsp but more php focused. Like an anthill-like tool

Re[2]: [PHP] Re: PHP vs. ColdFusion

2005-06-30 Thread Richard Davey
Hello Anton, Thursday, June 30, 2005, 10:05:45 AM, you wrote: AK I do have some dozens of freinds who work as web-developers. The AK use Java, ASP.Net, PHP. I know none, who uses ColdFusion in his AK work, though ColdFusion is a relatevly old technology. So, that's AK my ugly point -) It's a

Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Richard Davey
Hello Andrew, Thursday, June 30, 2005, 9:15:22 AM, you wrote: AS Coldfusion is also free (Blue Dragon) and has just as much support AS as PHP, although. PHP can not run in a J2EE environment, limiting AS it to small scall websites and limiting the prospect of expansion AS or server migration.

RE: Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Andrew Scott
Richard, And your point of before you pay your programmer is what one of my other points was. CF is very rapid development, and you might say the same about PHP. The point is that these are all the things you need to take into consideration, the cost that it would take to develop and maintain

Re: Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread david forums
Hi Concerning php and J2EE, zend platform is providing a solid bridge between both environment. This as been specially build for developping big system (banking, tracking, etc). regards david Le Thu, 30 Jun 2005 13:06:22 +0200, Richard Davey [EMAIL PROTECTED] a écrit: Hello

RE: Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Jay Blanchard
[snip] Would you develop in a language that you know could not deliver an enterprise solution if in 6 months that's what you really need, and how would you look if you recommended a language because it was free, but in time had to spend more again to make it fully scalable to an enterprise level

[PHP] Ouput HTML w/PHP

2005-06-30 Thread Rick Emery
And now for something completely different... I have a question that has been nagging at me. I've searched the archives, FAQs, and web sites, but haven't found an answer. I have two ways that I've output HTML with PHP; one is to write the HTML, using the PHP tags to execute code when

Re: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Brad Pauly
On 6/30/05, Andrew Scott [EMAIL PROTECTED] wrote: Cons for PHP: - Coldfusion is also free (Blue Dragon) and has just as much support as PHP, although. PHP can not run in a J2EE environment, limiting it to small scall websites and limiting the prospect of expansion or server

Re: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Stut
Andrew Scott wrote: snip CF is very rapid development, and you might say the same about PHP. The point is that these are all the things you need to take into consideration, the cost that it would take to develop and maintain in either language, as well as cost involved in the need of the

Re: [PHP] Ouput HTML w/PHP

2005-06-30 Thread Duncan Hill
On Thursday 30 June 2005 13:50, Rick Emery typed: the validator doesn't parse the PHP to get the HTML output (which is why I wonder if I'm not better writing the HTML and sticking PHP where it's needed). Is there a way for me to maybe use the PHP tidy functions on the string containing the

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-30 Thread Brian V Bonini
On Wed, 29 Jun 2005, Bob Winter wrote: Brian, The script works for me, I should have included the screen input/output, which now follows: Hmmm, this simply does not work for me. Maybe something with my version of php or ssh.. I'm at a loss.. $ php -v PHP 4.3.5 (cli) (built: Apr 30 2004

[PHP] Re: Ouput HTML w/PHP

2005-06-30 Thread Catalin Trifu
Hi, It seems to me you are going the wrong way with embedded PHP; try separating logic from view, tons of mvc frameworks out there and templating engines. Try firefox with web developer extension - Validate Local HTML. Catalin Rick Emery wrote: And now for something completely

Re: Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Matthew Weier O'Phinney
* Andrew Scott [EMAIL PROTECTED]: CF is very rapid development, and you might say the same about PHP. The point is that these are all the things you need to take into consideration, the cost that it would take to develop and maintain in either language, as well as cost involved in the need of

Re: [PHP] Re: PHP vs. ColdFusion

2005-06-30 Thread Yves Arsenault
As for statistics, there are so many large intranet sites in use that never see the light of day using CF, PHP, ASP.NET that numbers would never be very acurate. If it interests any of you, you could check out www.forta.com/blog/ and search for his listings of major corporate entities using

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-30 Thread Bob Winter
Brian, Is /www/files/services/ the correct relative path?? You could try using the absolute path to see if it fixes the problem. Also, and maybe more significant, I use tcsh . . . if you use bash this could be the conflict. I see that the echo of the $cmd string from PHP is missing the

RE: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Andrew Scott
OK. What is J2EE, if you know the answer to that then you will know that php doesn't have the ability to run as multiple instances. Lets take security for example, php is known to not have an installer because of security correct me if I am wrong on this assumption. I am only going by what I hear

RE: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Jay Blanchard
[snip] Cons for PHP: - Coldfusion is also free (Blue Dragon) and has just as much support as PHP, although. PHP can not run in a J2EE environment, limiting it to small scall websites and limiting the prospect of expansion or server migration. I'm wondering if you could expand on

RE: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Jay Blanchard
[snip] What is J2EE, if you know the answer to that then you will know that php doesn't have the ability to run as multiple instances. Lets take security for example, php is known to not have an installer because of security correct me if I am wrong on this assumption. I am only going by what I

Re: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Stut
Andrew Scott wrote: OK. What is J2EE, if you know the answer to that then you will know that php doesn't have the ability to run as multiple instances. Lets take security for example, php is known to not have an installer because of security correct me if I am wrong on this assumption. I am

[PHP] Re: Ouput HTML w/PHP

2005-06-30 Thread Satyam
Some time ago I started working on something realted to this. I was very unsatisfied with managing HTML as just another string, since HTML does have a structure, which we should be able to check before releasing it, if possible, by the same IDE we program with. Perhaps you will want to check

Re: Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Brad Pauly
On 6/30/05, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: That doesn't address scalability, however. So, let's look at that. I'm not sure how CF scales, not having been in a CF shop. However, I know what I can do to scale PHP: * Use code optimizers/bytecode caches (zend, apc,

Re: [PHP] PHP vs. ColdFusion

2005-06-30 Thread John Nichel
Andrew Scott wrote: OK. What is J2EE, if you know the answer to that then you will know that php doesn't have the ability to run as multiple instances. Lets take security for example, php is known to not have an installer because of security correct me if I am wrong on this assumption. I am

Re: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Brad Pauly
On 6/30/05, Andrew Scott [EMAIL PROTECTED] wrote: OK. What is J2EE, if you know the answer to that then you will know that php doesn't have the ability to run as multiple instances. Lets take security for example, php is known to not have an installer because of security correct me if I am

[PHP] Weird Image Problem

2005-06-30 Thread Shane Little
I'm bin2hex'ing images from an upload script and inserting into a mysql blob field. The php script that re-packs the hex data back to binary, does the createimagefromstring() and streams the image to the browser is generating a corrupted image... i.e. The image looks fine until part-way

[PHP] cUrl and proxies

2005-06-30 Thread Mark Rees
Hello This code gives me a 407 Proxy Authentication Required message. Can anyone see what is missing? The username and password are definitely correct, as are the proxy IP and port. Win2k. php 5.0.4 $ch=curl_init(); curl_setopt ($ch, CURLOPT_URL, 'http://www.google.com/'); curl_setopt($ch,

Re: [PHP] Ouput HTML w/PHP

2005-06-30 Thread André Medeiros
On Thu, 2005-06-30 at 08:50 -0400, Rick Emery wrote: And now for something completely different... I have a question that has been nagging at me. I've searched the archives, FAQs, and web sites, but haven't found an answer. I have two ways that I've output HTML with PHP; one is to write

[PHP] Re: cUrl and proxies

2005-06-30 Thread Mark Rees
UPDATE: I think it is a bug in cURL, according to this link (I am using an ISA proxy). https://sourceforge.net/tracker/?func=detailatid=100976aid=1188280group_i d=976 So all I need to do is install the latest version of cURL then. I am really struggling with this - I don't have a good

[PHP] Re: Ouput HTML w/PHP

2005-06-30 Thread Murray @ PlanetThoughtful
Rick Emery wrote: This leads (sort of) to a second question: how can I validate my HTML? My applications run on an intranet (with database access), so I can't use the W3C Validator to point to the URL. If I try to upload the file, the validator doesn't parse the PHP to get the HTML output

[PHP] Missing characters when processing scripts

2005-06-30 Thread Charlene
I have a semi -random problem that characters in the php script are dropped. A very noticible instance is in a statement like: $query = SELECT junk FROM table; $result = mysql_query( $query, $handle) or die (mysql_error()); I get an error message from the die function like: Error

[PHP] postgres - mysql last_inserted_id

2005-06-30 Thread Uroš Kristan
Hello, I have an application in production, build on mysql database. I decided to migrate to postgres because of numerous reasons. Can you guys please guide me into the right direction? the main problem is the missing autoincrement of pgsql and getting the last record from the tabel, for

Re: [PHP] postgres - mysql last_inserted_id

2005-06-30 Thread Richard Lynch
On Thu, June 30, 2005 11:55 am, Uro¹ Kristan said: I have an application in production, build on mysql database. I decided to migrate to postgres because of numerous reasons. Can you guys please guide me into the right direction? the main problem is the missing autoincrement of pgsql and

Re: [PHP] Missing characters when processing scripts

2005-06-30 Thread Richard Lynch
On Thu, June 30, 2005 11:04 am, Charlene said: I have a semi -random problem that characters in the php script are dropped. A very noticible instance is in a statement like: $query = SELECT junk FROM table; $result = mysql_query( $query, $handle) or die (mysql_error()); I get an error

Re: [PHP] Re: cUrl and proxies

2005-06-30 Thread Richard Lynch
On Thu, June 30, 2005 9:27 am, Mark Rees said: UPDATE: I think it is a bug in cURL, according to this link (I am using an ISA proxy). https://sourceforge.net/tracker/?func=detailatid=100976aid=1188280group_i d=976 So all I need to do is install the latest version of cURL then. I am really

Re: [PHP] Weird Image Problem

2005-06-30 Thread Richard Lynch
On Wed, June 29, 2005 3:30 pm, Shane Little said: I'm bin2hex'ing images from an upload script and inserting into a mysql blob field. The php script that re-packs the hex data back to binary, does the createimagefromstring() and streams the image to the browser is generating a corrupted

Re: [PHP] Weird Image Problem

2005-06-30 Thread Kristen G. Thorson
Richard Lynch wrote: On Wed, June 29, 2005 3:30 pm, Shane Little said: I'm bin2hex'ing images from an upload script and inserting into a mysql blob field. The php script that re-packs the hex data back to binary, does the createimagefromstring() and streams the image to the browser is

Re: [PHP] postgres - mysql last_inserted_id

2005-06-30 Thread Jason Wong
On Friday 01 July 2005 02:55, Uroš Kristan wrote: I have an application in production, build on mysql database. I decided to migrate to postgres because of numerous reasons. Good idea :) Can you guys please guide me into the right direction? the main problem is the missing autoincrement

Re: [PHP] postgres - mysql last_inserted_id

2005-06-30 Thread Jason Wong
On Friday 01 July 2005 04:06, Richard Lynch wrote: last record from the tabel, for linking to another tabel. You have to use http://php.net/pg_last_oid to get the PostgreSQL internal Object ID (OID) -- You can then use the ubiquitous oid column. $query = insert ...;

Re: [PHP] Ouput HTML w/PHP

2005-06-30 Thread Richard Lynch
On Thu, June 30, 2005 5:50 am, Rick Emery said: This leads (sort of) to a second question: how can I validate my HTML? My applications run on an intranet (with database access), so I can't use the W3C Validator to point to the URL. If I try to upload the file, the validator doesn't parse the

Re: [PHP] Weird Image Problem

2005-06-30 Thread Shane Little
Kristen G. Thorson wrote: MySQL blobs are actually limited to 64K. I think a MEDIUMBLOB holds about 16 MB if you're dead-set on storing the image in the database. You might want to check that your max_allowed_packets size is large enough. You can find that by querying SHOW VARIABLES LIKE

Re: [PHP] PHP search

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 8:13 pm, Bruce Gilbert said: I am fairly new to PHP, and I am looking to create a search functionality on a website using php. Can anyone point me to a good tutorial that can walk me through this? Your best bets are: Use http://google.com and add site:example.com as one

RE: [PHP] PHP search

2005-06-30 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, June 30, 2005 2:33 PM said: There are innumerable gothcas to it to start with, ... Is that a special kind of goth? :P Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP search

2005-06-30 Thread Greg Donald
On 6/30/05, Richard Lynch [EMAIL PROTECTED] wrote: Use htdig to index your site. Here's a nice tutorial on how to wrap ht://Dig results with PHP for custom layouts and formatting: http://www.devshed.com/c/a/PHP/Search-This/ -- Greg Donald Zend Certified Engineer MySQL Core Certification

Re: [PHP] the BACKSLASH

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 3:01 pm, Martín Marqués said: El Dom 26 Jun 2005 18:12, Jochem Maas escribió: the backslash has caught us all out when we first started, and beyond. many 'noobs' have had the fortune of being explained, in depth, how and why concerning the backslash by a singular Richard

Re: [PHP] the BACKSLASH

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 2:42 pm, Sebastian said: backslash was invented for windows ;) I'm pretty sure backslash as an escape character pre-dates Windows... Maybe not, but pretty sure. btw, what do we have to do to get Radio announcers to read / correctly? It's *NOT* a backslash, you morons! --

Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 12:57 pm, M Saleh EG said: In all the cases if someone thinks a framework is bloated. Should just keep it bloated for him/herself. Programmers, and specially PHP programmers who are the majority of web-programming in IT labor market. So being it bloated for someone or

Re: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Esteamedpw
In a message dated 6/29/2005 11:26:08 A.M. Central Standard Time, [EMAIL PROTECTED] writes: Yes a framework can be built in PHP, C# or any language but how would you like to design something like this. cfpage cfframe cfinputHidden Name=test Caption=New Record cfinputText Name=FirstName

Re: [PHP] $_SESSION and header()

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 7:33 am, Alessandro Rosa said: (a) : After saving a couple of data into two $_SESSION variables from a form, (b) : I used the header() function to redirect the browser to (c) : display another page. (c) needs ?php session_start();? at the top, just like (a) and (b) and

Re: [PHP] including the result of one query in another query

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 4:53 am, Brian V Bonini said: On Sun, 2005-06-26 at 06:38, Pedro Quaresma de Almeida wrote: Hi I have two databases, on for aeromodelistas (aeromodelling) and another for Códigos Postais (Postal Codes). I whant to do the following query SELECT CódigoPostal FROM

Re: [PHP] including the result of one query in another query

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 3:38 am, Pedro Quaresma de Almeida said: I have two databases, on for aeromodelistas (aeromodelling) and another for Códigos Postais (Postal Codes). I whant to do the following query First, MySQL *DOES* allow you to select from multiple databases in a single query. Most

Re: [PHP] array_diff php version

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 2:19 am, André Le Tissier said: Help! Array_diff is the perfect function for what I am try to do but I have a php version 4.1.5. Is there any replacement I can use to achieve the same result There are seven different solutions to this (with modifications of what

Re: [PHP] Achieving 64-bit integers on 32-bit platforms

2005-06-30 Thread Dan Goodes
On Thu, 30 Jun 2005 at 00:16, Richard Lynch wrote: On Wed, June 29, 2005 9:02 pm, Dan Goodes said: This 32-bit limitation is haunting me everywhere I turn. Is it possible with PHP (at compile-time if need be) to make it use large (64-bit) integers? I believe that PHP runs fine on

Re: [PHP] a basic array question!

2005-06-30 Thread Richard Lynch
On Sat, June 25, 2005 2:01 pm, bruce said: feel kind of foolish posting this.. but i can't seem to figure it out for now.. Here's a way to tackle this kind of thing in the future: Divide and Conquer. print_r($foo) prints out a BUNCH of stuff. Focus only on the outer layer: i have an array,

Re: [PHP] Re: send email at certain hour

2005-06-30 Thread Richard Lynch
On Sat, June 25, 2005 11:55 am, Arthur Wiebe said: vlad georgescu wrote: i want to make a reminder application which sends emails at certain hour in php. is this posibile ? if not, what else can I use ? I've done it using pure PHP for a calendar script. What I did was write a PHP script

Re: [PHP] Strange is_dir() behavior

2005-06-30 Thread Richard Lynch
On Sat, June 25, 2005 8:54 am, Marcos Mendonça said: Yes, if i try to to echo the variable $entry outside the if is returns the expected directories list. I tried giving it the full path and it still doesn't work. Show us that source code. Cuz I wouldn't expect it to work without the full

[PHP] Writing a PHP Web application

2005-06-30 Thread Tim Burgan
Hello, What are the options to get code to run on the server (every XX minutes), without any user interaction, etc. Example 1: If I have a directory that contains files, can I write a script that will delete all files older that 5 days? Example 2: If I write an email web application, and the

Re: [PHP] Verifying images with getimagesize()

2005-06-30 Thread Richard Lynch
On Sat, June 25, 2005 8:41 am, Jack Jackson said: Thanks for telling me about that, Edward. I apprecate it. Actually in this case I was using it only to verify that it was something like an image to validate the file type before allowing it on the server. But you raise a very good point and I

Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-30 Thread Richard Lynch
On Sat, June 25, 2005 7:32 am, Matthew Weier O'Phinney said: * Catalin Trifu [EMAIL PROTECTED] : I also tend to stay away from PEAR, which is kinda bloated for my taste, except the Log package. rant I hear that a lot on this list, and I don't understand the reasoning behind such comments --

Re: [PHP] Writing a PHP Web application

2005-06-30 Thread Philip Hallstrom
What are the options to get code to run on the server (every XX minutes), without any user interaction, etc. If you are running on a unix like system (linux, freebsd, solaris, etc.) cron can do this for you. See this: http://en.wikipedia.org/wiki/Cron If on windows there are probably

[PHP] getting a filename [with no extension] out of a url

2005-06-30 Thread Graham Anderson
if $_SERVER['SCRIPT_NAME'] give this /folder/folder/Library/php/filename.php what would be the proper way to strip the string until only 'filename' is left I'm a bit new at eregi stuff any help would be appreciated many thanks g -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] getting a filename [with no extension] out of a url

2005-06-30 Thread Tom Rogers
Hi, Friday, July 1, 2005, 9:54:42 AM, you wrote: GA if $_SERVER['SCRIPT_NAME'] give this GA /folder/folder/Library/php/filename.php GA what would be the proper way to strip the string until only 'filename' GA is left GA I'm a bit new at eregi stuff GA any help would be appreciated GA many

Re: [PHP] Re: MMcache question

2005-06-30 Thread Richard Lynch
On Sat, June 25, 2005 3:37 am, Catalin Trifu said: No! You don't have to rewrite your application. What mmacache does is to keep a bytecode version of the script available so that PHP won't have to reparse the script every time, which is expensive and also has a nice code optimizer. This

Re: [PHP] Re: MMcache question

2005-06-30 Thread Sebastian
you sound exactly like someone i know.. i enjoy reading your long posts.. no sarcasm ;-) i'd defently hire you, but you're probably too expensive ;-) Richard Lynch wrote: On Sat, June 25, 2005 3:37 am, Catalin Trifu said: No! You don't have to rewrite your application. What mmacache

Re: [PHP] newline and pregreplace

2005-06-30 Thread Richard Lynch
On Fri, June 24, 2005 3:18 pm, Dotan Cohen said: I've got a line like this: $str=preg_replace( -regex here-, '\nnote\1/note', $str); Which has one of two problems: If I leave the single quotes around the second argument, then it returns as \n and not a newline. If I change the single quotes

Re: [PHP] Re: send email at certain hour

2005-06-30 Thread Arthur Wiebe
Richard Lynch wrote: On Sat, June 25, 2005 11:55 am, Arthur Wiebe said: vlad georgescu wrote: i want to make a reminder application which sends emails at certain hour in php. is this posibile ? if not, what else can I use ? I've done it using pure PHP for a calendar script. What I did

Re: [PHP] Object Oriented PHP (5)

2005-06-30 Thread Richard Lynch
On Fri, June 24, 2005 12:56 pm, Josh Olson said: PHP has inspired me to become a better programmer. I have been actively reading books as well as online content to try to become better at designing and programming object oriented web applications. My primary focus is PHP. Will you help a

Re: [PHP] Can't even make a simple test RSS feed

2005-06-30 Thread Richard Lynch
On Fri, June 24, 2005 12:23 pm, Brian Dunning said: What am I doing wrong? This doesn't work. The browser does not even load the page, no error or anything: ?php echo '?xml version=1.0?rss version=2.0channel'; echo 'item'; echo 'titlehdfghdf/title'; echo 'descriptiondfghdfh/description';

Re: [PHP] reading PDF's

2005-06-30 Thread Richard Lynch
On Fri, June 24, 2005 12:10 pm, Jon said: Is it possible to read text from a PDF file with PHP? How? At the crudest level, you can fopen/fread a PDF and dump it out, and pick out the plain-text readable bits with your eyes. :-) After that, there are definitely some commercial command-line tools

Re: [PHP] Re: MMcache question

2005-06-30 Thread Richard Lynch
On Thu, June 30, 2005 5:25 pm, Sebastian said: you sound exactly like someone i know.. i enjoy reading your long posts.. no sarcasm ;-) i'd defently hire you, but you're probably too expensive ;-) Thanks! Some people take my posts far more seriously and/or negatively than I intend, though...

Re: [PHP] getting a filename [with no extension] out of a url

2005-06-30 Thread Richard Davey
Hello Graham, Friday, July 1, 2005, 12:54:42 AM, you wrote: GA if $_SERVER['SCRIPT_NAME'] give this GA /folder/folder/Library/php/filename.php $_SERVER['SCRIPT_NAME'] won't give you that, $_SERVER['SCRIPT_FILENAME'] would. SCRIPT_NAME would just give you /filename.php And if you need to

Re: [PHP] Achieving 64-bit integers on 32-bit platforms

2005-06-30 Thread Richard Lynch
On Thu, June 30, 2005 4:02 pm, Dan Goodes said: On Thu, 30 Jun 2005 at 00:16, Richard Lynch wrote: On Wed, June 29, 2005 9:02 pm, Dan Goodes said: This 32-bit limitation is haunting me everywhere I turn. Is it possible with PHP (at compile-time if need be) to make it use large (64-bit)

RE: [PHP] PHP search

2005-06-30 Thread Richard Lynch
On Thu, June 30, 2005 2:36 pm, Chris W. Parker said: Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, June 30, 2005 2:33 PM said: There are innumerable gothcas to it to start with, ... Is that a special kind of goth? Yeah, it's California Goth, also known as Surf Goth. But sometimes

Re: [PHP] postgres - mysql last_inserted_id

2005-06-30 Thread Richard Lynch
On Thu, June 30, 2005 2:17 pm, Jason Wong said: On Friday 01 July 2005 04:06, Richard Lynch wrote: last record from the tabel, for linking to another tabel. You have to use http://php.net/pg_last_oid to get the PostgreSQL internal Object ID (OID) -- You can then use the ubiquitous oid

[PHP] Re: php5.1 compiling memory usage

2005-06-30 Thread Xuefer
On 6/14/05, Xuefer [EMAIL PROTECTED] wrote: i'm compiling php5.1 using php zend_vm_gen.php --with-vm-kind=GOTO (or SWITCH) and make it takes me 300 virtual mem to compile zend_execute.c without ending, hav eto CTRL+c to break CFLAGS: -g3 -O3 -Wall -march=pentium3 -pipe php5.1 is on the

Re: [PHP] Object Oriented PHP (5)

2005-06-30 Thread Matthew Weier O'Phinney
* Richard Lynch [EMAIL PROTECTED] : On Fri, June 24, 2005 12:56 pm, Josh Olson said: PHP has inspired me to become a better programmer. I have been actively reading books as well as online content to try to become better at designing and programming object oriented web applications. My

[PHP] Upload and Read pdf file

2005-06-30 Thread Bagus Nugroho
Hi All, is possible to upload pdf file into MySQL database, then read in web browser using php? And how? Thanks for help rgds

[PHP] Conversion of period and space for $_GET, $_REQUEST, etc. is rather senseless

2005-06-30 Thread Joe Krahn
PHP imports GET and POST data to array elements by senselessly converting periods and spaces to underscore. The intent is to make strings variable-name compatible for conversion directly into global variables via import_request_variables or register_globals. String-to-variable name mangling