Re: [PHP] Fwd: Entries no longer appear in search

2007-01-29 Thread Chris
No need to keep posting the same question over and over again. If anyone has suggestions, they will reply. Kevin Jordan wrote: -- Forwarded message -- From: Kevin Jordan <[EMAIL PROTECTED]> Date: Jan 28, 2007 6:21 PM Subject: Fwd: Entries no longer appear in search To: php-gener

Re: [PHP] return bounced email to specific email address

2007-01-30 Thread Chris
[EMAIL PROTECTED] wrote: hi, is it possible to specify email address in mail() function where bounced email could return? I checked http://us2.php.net/manual/en/function.mail.php but didn't find anything. That's the right place. It's the 5th parameter you want to change. -- Postgresql & php t

Re: [PHP] PHP equivalent to Perl $0

2007-01-31 Thread Chris
Jay Blanchard wrote: [snip] In Perl there is the predefined $0 which contains the name of the file containing the Perl script being executed. Is there an equivalent in PHP? [/snip] $_SERVER['PHP_SELF'] Or if you're using it from the command line, $argv[0] -- Postgresql & php tutorials http://

Re: [PHP] Need sql-editor

2007-01-31 Thread Chris
Niklas Karlsson wrote: Hello everyone I need a good sql-editor where I can write sqlcode. The problem is that I don't have rights to list tables, functions and so on. Now I use EMS Sql Manger 2005, and if I want to write and execute sqlcode I need access to the system tables, and I don't hav

Re: [PHP] PHP5 & Commercial Development

2007-02-01 Thread Chris
Eric Gorr wrote: I haven't tracked this particular issue, but I know when PHP5 was first released is wasn't recommended in a commercial/production environment. However, a lot of time has passed and we're at v5.2 now...have things changed? Have Google&Yahoo, for example, moved to PHP5? Or is PHP

Re: [PHP] date to string

2007-02-01 Thread Chris
John Taylor-Johnston wrote: How do I take "2007-02-01" and turn it into Thursday, February 1, 2006? Use strtotime (http://php.net/strtotime) to turn it into a timestamp and then format it using date (http://php.net/date). -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP Gen

Re: [PHP] date to string

2007-02-01 Thread Chris
John Taylor-Johnston wrote: Chris wrote: John Taylor-Johnston wrote: How do I take "2007-02-01" and turn it into Thursday, February 1, 2006? Use strtotime (http://php.net/strtotime) to turn it into a timestamp and then format it using date (http://php.net/date). echo date(

Re: [PHP] Sending secure mail

2007-02-04 Thread Chris
Rob wrote: I need to send a large number of emails (not spam!) through an external SMTP server that requires TLS and a username/password. I have some control over the SMTP server but very little over the web server where the scripts reside. How do I connect with TLS, authenticate and send the mai

Re: [PHP] All-in-one PHP Classes

2007-02-06 Thread Chris
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: Have been reading posts daily for two months now on the list, and am very pleased at how informative these can be. I have noticed, many examples where one is pointed to using classes downloadable on the internet. This is

Re: [PHP] Apache asks to save php file?

2007-02-06 Thread Chris
Skip Evans wrote: Hey all, Just did a new install on FreeBSD 6.0 of Apache 2, PHP4 and MySQL, but the browser asks to save a PHP file rather than execute it. I do have the following in httpd.conf, however. LoadModule php4_module libexec/apache2/libphp4.so Is that the right path to the file

Re: [PHP] All-in-one PHP Classes

2007-02-07 Thread Chris
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-07 09:59:15 +1100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: Have been reading posts daily for two months now on the list, and am very pleased at how informative these can be. I have noticed, many examples where

Re: [PHP] Unable to load Dynamic Link Library

2007-02-07 Thread Chris
[EMAIL PROTECTED] wrote: Hi I have installed Apache2Triad Apache2Triad version 1.5.4 Apache version 2.2.0 MySQL version 5.0.18 PostgreSQL version 8.1.2 Openssl version 0.9.8a Slimftpd

Re: [PHP] PHP/MySQL Create DB user

2007-02-07 Thread Chris
Stephen wrote: There seems to be no PHP function to create a DB user. It doesn't have one to create a database either... php can't do everything for you ;) I am trying to automate setting up virtual domains in a shared environment. Am I missing something obvious? http://dev.mysql.com/doc

Re: [PHP] Is there a way to redefine a constant?

2007-02-08 Thread Chris
Khai wrote: STDERR and STDOUT are defined as constants. Is there a way to redefine these constants? Nope. Once they're set, they're set. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Recommend a PHP Framework

2007-02-11 Thread Chris
Goh Yong Kwang wrote: Hi, I am now mulling over writing my PHP web application from scratch or to use some kind of framework to organize my code. For Java, Struts and Spring come to mind. But for PHP, there are numerous frameworks and I can't figure out which one to use. I would like to de

Re: [PHP] $_FILES path on client's machine?

2007-02-18 Thread Chris
Skip Evans wrote: Hey all, I get the feeling from not finding an argument for the path on the client's machine for the complete path of a file in $_FILES that it might not be available for security reasons? The reason I am interested in this is to restore the value of a input type='file' f

Re: [PHP] Unable to compile php 5.2.1 on Intel Macbook

2007-02-18 Thread Chris
Tim Visher wrote: Hello all, I can't compile php 5.2.1. I don't exactly know where the error starts or begins so I'm just going to post the whole thing: Looks like something to do with ssl. What's your configure command? -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP Gen

Re: [PHP] easynav breaks my page

2007-02-18 Thread Chris
Ross wrote: I am using the easynav class. I include it like this What's that? Maybe ask whoever makes easynav? -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT - FC6 as Web Server

2007-02-24 Thread Chris
I just got a plain FC6 server running. Anyone here who configured a FC6 for several domains with mail, ftp, virtual domains etc? I haven't done it with FC6 but have with previous versions of redhat as far back as 6.2 (I'm sure someone else will say they've done it for longer :P). What does t

Re: [PHP] Store and retrieve photo from PostgreSQL

2007-02-25 Thread Chris
Alain Roger wrote: Hi, I would like to store and retrieve photo from my DB (PostgreSQL). However, i do not know how to do it. Apart from the usual "you shouldn't really store images in the database" comment, the php site has some examples: To put it in: http://www.php.net/manual/en/function

Re: [PHP] indexing with fopen

2007-02-25 Thread Chris
Miguel Vaz wrote: Hi, I am trying to add a search to the site i am developing but i ran into a bit of a problem. Since the site is mainly dynamic (lots of includes and mysql queries), i thought of building an index table that will contain the insides of all the pages in the sit

Re: [PHP] re-config the language of phpmyadmin

2007-02-25 Thread Chris
[EMAIL PROTECTED] wrote: Dear All, How to config ( hard code ) the phpmyadmin of language to "Chinese Charactor Set" ? eg : Big5 Why don't you ask them? http://sourceforge.net/projects/phpmyadmin/ -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (htt

Re: [PHP] Does PHP require patch for Daylight Savings Time 2007 change

2007-02-27 Thread Chris
Causevic, Dzenan wrote: I am running Apache HTTP 1.3 with PHP 4.2.2 and MySQL 3.23. Do I need to apply any kind of patches to my PHP related to Daylight Savings Time 2007 change? The -internals list might be a better place to search / ask. -- Postgresql & php tutorials http://www.designmagick

Re: [PHP] Who in this list would you...

2007-02-27 Thread Chris
Peter Lauri wrote: [snap] [snip] He would need to work in-house. And the location is somewhere in Scandinavia. He could work as sub contractor or employed for my company. [/snip] I don't know too many list denizens who live in Scandinavia, so that severely limits your choices. [/snap] I live in

Re: [PHP] how to retrieve pictures from postgreSQL DB

2007-02-28 Thread Chris
tedd wrote: At 5:12 PM -0600 2/27/07, Richard Lynch wrote: Personally, I think your first mistake was putting the image into the DB at all. Unless you're the CIA doing pixel comparisons actually in SQL stored procedures or something. :-) Richard: I highly respect your opinion and on this lis

Re: [PHP] Problem with pgsql.so and extensions.

2007-02-28 Thread Chris
Marc Burgauer wrote: I found various links via Google mentioning the problem of ordering the extension in the ini file. In my case this hasn't produced quite the result. I haven't found an order that works for me. Here the problem: Freebsd 6 apache 1.3.34 PHP 5.2.1 I am using the ports colle

Re: [PHP] Enclosing fields in MySQL queries with `" or '

2007-03-04 Thread Chris
Dotan Cohen wrote: Are there any advantages/disadvantages to using and of the ` " or ' punctuation symbols in MySQL queries? I usually only put them around variables (after being sanitized, of course): INSERT INTO places (country, city) VALUES ('$country', '$city') Any thoughts on the issue? Th

Re: [PHP] file open dialog box

2007-03-04 Thread Chris
Alain Roger wrote: Hi, I would like to have an Open file dialog box in my PHP page like it exist on Microsoft Windows. This dialog box should allow user to select a file from his computer. Is there something like that in PHP ? Showing that box isn't php related, but this page has a tutorial

Re: [PHP] Re: Matching Proper Versions Of PHP and MySQL

2007-03-05 Thread Chris
zerof wrote: revDAVE escreveu: Hello All, I'm a newbie. My server just upgraded to PHP version 5.1.2 from php 4.3.11 MySQL currently is v 4.0.27 Q: What is the oldest - best/safest version of mySQL to use with PHP version 5.1.2.? The reason I mentioned the oldest - is because, for legacy

Re: [PHP] Is there a way to un include a file

2007-03-08 Thread Chris
jekillen wrote: On Mar 7, 2007, at 11:47 PM, Larry Garfield wrote: No there is not, because an included file *executes* at the time it is included and is then done. Any memory-resident objects (function/class definitions, variables, etc.) that it defies then exist until you make them un-exis

Re: [PHP] PHP Design View

2007-03-08 Thread Chris
Fred wrote: Hello What program whould i use to see a design view of php scripts not on a server. Im running Windows XP Pro sp2. I thought Dreamweaver did but as i was going to buy a friend told me it cant see design only the script. PHP doesn't have a 'design view', your HTML controls that, ma

Re: [PHP] PEAR not found

2007-03-11 Thread Chris
rwhartung wrote: Hi all, I have a new install and am trying to get PEAR working - MDB2 to be exact. I have modified /etc/php.ini to have the following include_path = ".:/php/includes:/usr/share/pear" phpinfo() reports the directive --includedir=/usr/include I can confirm that MDB2.php exist

Re: [PHP] php 4 and 5

2007-03-11 Thread Chris
[EMAIL PROTECTED] wrote: Dear All, What different between 4 and 5 ? http://www.php.net/manual/en/migration5.php#migration5.changes -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My help with adding captcha

2007-03-11 Thread Chris
Joker7 wrote: Hi- as you know I have been working on adding a captcha image to my guestbook. Well I have managed to get a very basic one working ;) but !I have been trying to get one that would make it more easy to use ,I have it working until I add it to my form. My form use's print see belo

Re: [PHP] install problems

2007-03-18 Thread Chris
jekillen wrote: Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to install php 5.2.1 --with-apxs=/usr/local/apache/bin etc etc libphp5.so is no where to be found. It sure is no

Re: [PHP] Log Lib Recommendation

2007-03-18 Thread Chris
John Comerford wrote: Hi Folks, Could someone recommend a good library for error logging. What I am looking for is something that handles: 1) Error Log written to a DB (mysql) 2) Logging of PHP errors 3) Logging of MySQL errors 4) Logging of Custom errors/events 5) A log viewer would be nice

Re: [PHP] Is there a open_basedir and curl followlocation bypass/fix?

2007-03-19 Thread Chris
Richard Lynch wrote: So open_basedir settings are mucking with curl's CURLOPT_FOLLOWLOCATION? That seems pretty whack to this naive reader... Guess you are stuck reading the headers and doing as many more curl_exec()s on the Location: as it takes. Yep, from version 5.2.0. http://www.php.net/

Re: [PHP] Re: Getting last record ID created from DB

2007-03-19 Thread Chris
markw@mohawksoft.com wrote: markw@mohawksoft.com wrote: On Sat, 2007-03-17 at 12:19 -0400, Mark wrote: There in lies the biggest problem with LAMP, and that's MySQL. The architecture of your methodology *only* works with MySQL, and not more capable databases like Oracle, DB2, or even PostgreS

Re: [PHP] install problems

2007-03-19 Thread Chris
jekillen wrote: On Mar 18, 2007, at 10:54 PM, Chris wrote: jekillen wrote: Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to install php 5.2.1 --with-apxs=/usr/local

Re: [PHP] Re: Getting last record ID created from DB

2007-03-19 Thread Chris
markw@mohawksoft.com wrote: markw@mohawksoft.com wrote: markw@mohawksoft.com wrote: On Sat, 2007-03-17 at 12:19 -0400, Mark wrote: There in lies the biggest problem with LAMP, and that's MySQL. The architecture of your methodology *only* works with MySQL, and not more capable databases like Or

Re: [PHP] Re: Getting last record ID created from DB

2007-03-20 Thread Chris
Martin Marques wrote: On Mon, 19 Mar 2007, Richard Lynch wrote: The MySQL developers spent a zillion hours making the LAST_INSERT_ID() function be tied to YOUR database connection. You get *your* LAST_INSERT_ID(), not some random one from some other database connection. That's why http://php

Re: [PHP] Re: Getting last record ID created from DB

2007-03-20 Thread Chris
markw@mohawksoft.com wrote: markw@mohawksoft.com wrote: http://www.postgresql.org/docs/current/static/functions-sequence.html It is perfectly safe to use this. In theory that may be true, but can the application developer make any assumption about the underlying architecture? Might you be fami

Re: [PHP] _Construct question

2007-03-20 Thread Chris
John Comerford wrote: Hi Folks, I am still pretty new to PHP and I have a question regarding classes and using _construct. Up until now I have been creating my classes as follows: class test1 { var $name; function test1($pName) { $this->name = $pName; } } So I when I create a new class I

Re: [PHP] Re: _Construct question

2007-03-21 Thread Chris
Erik Jones wrote: That's not true, running with v. 5.2.1: Outputs: works On Mar 21, 2007, at 8:06 AM, itoctopus wrote: They're basically the same thing, however, you can only use __construct in PHP5. He meant that __construct() doesn't work in php4. It's only available in php5. php5

Re: [PHP] Passing variables

2007-03-21 Thread Chris
Jeff wrote: I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble passing my "single" variable to the next page using.. echo "Edit"; as when the next page tha

Re: [PHP] Passing variables

2007-03-22 Thread Chris
Tijnema ! wrote: On 3/22/07, Jeff <[EMAIL PROTECTED]> wrote: I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble passing my "single" variable to the next page

Re: [PHP] Date functions differences between php 4 and 5

2007-03-22 Thread Chris
Paul Nowosielski wrote: Dear All, I was wondering if there are any major date function changes between php4 and 5. I don't think so but check the docs: http://www.php.net/manual/en/faq.migration5.php When I say date function I mean mktime() , date() ,strtotime() etc. Here is my dilemma,

Re: [PHP] Optimization of all mysql databases on a server

2007-03-25 Thread Chris
itoctopus wrote: The purpose of this script is to optimize all associated tables in all databases on a mysql server. This script is working great, you can put in a CRON and run it every day. Feel free to throw in your 2 cents! It's going to time out if you have any large databases or tables. A

Re: [PHP] Optimization of all mysql databases on a server

2007-03-27 Thread Chris
Jochem Maas wrote: Tijnema ! wrote: On 3/26/07, Chris <[EMAIL PROTECTED]> wrote: itoctopus wrote: The purpose of this script is to optimize all associated tables in all databases on a mysql server. This script is working great, you can put in a CRON and run it every day. Feel free to

Re: [PHP] pear returns prompt

2007-03-27 Thread Chris
Farid Hamjavar wrote: Greetings, Linux Redhat AS 4 with PHP 5.1.6 When I execute pear, I get my prompt back: Ask the pear list - http://pear.php.net/support/lists.php -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] changing array to a string

2007-03-27 Thread Chris
Richard Kurth wrote: When I submit the for below it gives me an array that looks like this "array(5) { [0]=> string(1) "3" [1]=> string(1) "4" [2]=> string(1) "5" [3]=> string(1) "6" [4]=> string(1) "7" } " I would like to convert it to a string like this "3,4,5,6,7" $ids = implode(',', $_POST

Re: [PHP] using for loop in function

2007-03-27 Thread Chris
Richard Kurth wrote: The function below will create a group of checkboxes it will also check the checkbox that is stored in the table field that is in $select_value this works fine if there is only one value in the variable but if there is more stored like 1,2,3,4 it will not work. I am trying

Re: [PHP] Zend Guard Performance Problem

2007-03-28 Thread Chris
Sancar Saran wrote: Hi, Recently we bought Zend Guard and because of Zend encoder we have to use another Opcode cacher other than APC. After searching net I found eAccelerator. After installing eAccelerator with Zend Guard I saw more than %30 percent performance lost against Normal PHP + AP

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Chris
Yvan wrote: Hello all, I don't know if it's the correct list, but as a php script is involved Nope, not the right list. Cron isn't running - which has absolutely nothing to do with php. I try to start a set up a crontab job with crontab -e, which should start a php script: */10*

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Chris
Shell command as cron jobs work and errors are also send to the local mail, but php scripts are not executed Does running the command manually work? If not, there's your problem. If it does, then it's a cron issue. Still something you should ask about on a mac mailing list. -- Postgresql

Re: [PHP] crontab, PHP and MACOSX

2007-03-28 Thread Chris
There is a lot of require_once(' ') in the script and if i am not in the correct folder the script won't work. That is something php related ;) Change your require to something like this: require(dirname(__FILE__) . '/other_file_name.php'); -- Postgresql & php tutorials http://www.designmag

Re: [PHP] Timezone offset

2007-03-28 Thread Chris
Seak, Teng-Fong wrote: Satyam wrote: - Original Message - From: "Chris Boget" <[EMAIL PROTECTED]> My server's timezone is set to "(GMT) Greenwish Mean Time : Dublin, Edinburgh, Lisbon, London". There you have why, you set it to GreenwiSh, which is kind

Re: [PHP] RHEL 5 PHP php-5.1.6-7.el5.src.rpm using freetds-0.63-1.2.el4.rf.x86_64.rpm Won't rpm

2007-03-28 Thread Chris
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu \ --target=x86_64-redhat-linux-gnu \ --program-prefix= \ --prefix=/usr \ --exec-prefix=/usr \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --sysconfdir=/etc \

Re: [PHP] Re: installing php 5.2.1

2007-03-29 Thread Chris
Sady Marcos wrote: Change permissions... How is that related to permissions? It was simply php trying to load up extensions that didn't exist. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Chris
Rahul Sitaram Johari wrote: My Apologies Everyone! I gave you all the wrong code Twice!! A pox on me - I tell you! This is the ACTUAL code that I'm working with - and it's not working: $WHEN, $WHAT, $WHO"; $sql = "INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','

Re: [PHP] CURL questions

2007-03-29 Thread Chris
Angelo Zanetti wrote: y Erik Jones wrote: On Mar 29, 2007, at 11:15 AM, Angelo Zanetti wrote: Hi all. I have a script on a server that does some processing, now I want to execute that script using cURL. This is a basic scenario and I assume its possible but its not working. The script i

Re: [PHP] Re: CURL questions

2007-03-29 Thread Chris
Manuel Lemos wrote: Hello, on 03/29/2007 01:15 PM Angelo Zanetti said the following: I have a script on a server that does some processing, now I want to execute that script using cURL. This is a basic scenario and I assume its possible but its not working. The script is as follows: $url =

Re: [PHP] Re: CURL questions

2007-03-29 Thread Chris
Manuel Lemos wrote: Hello, on 03/30/2007 12:38 AM Chris said the following: I get a 500 Internal server error, not sure why as this page being called just inserts a word into a database. Could the cause be something else network related? What else can I troubleshoot? or is my code incorrect

Re: [PHP] pg_last_error()

2007-04-02 Thread Chris
Miguel J. Jiménez wrote: Hello, the question is simple... After I try to free a resultset in postgres using pg_free_result() it returns false ... Can I use pg_last_error() to get the cause of this last error? I have tried but it returns an empty string and I do not know if it is because I canno

Re: [PHP] Problems with mail

2007-04-02 Thread Chris
Mário Gamito wrote: Hi, I have this very straight forward code to send an e-mail: $subject_users_subscription_confirmation = "Subscription confirmation"; $message_users_subscription_confirmation = 'Please, click this link to confirm your subscritpion: http://www.telbit.pt/subscribe-confirm.php?

Re: [PHP] Re: Example from www.php.net

2007-04-02 Thread Chris
Timothy Murphy wrote: Timothy Murphy wrote: I was trying Example 2147, which reads: --- 1 XML; $xml = simplexml_load_string($string); foreach($xml->foo[0]->attributes() as $a => $b) { echo $a,'="',$b,"\"\n"; } ?> --- ... However,

Re: [PHP] Google-Yahoo venture and PHP

2007-04-02 Thread Chris
Matt Kay wrote: I really dont see what all the fuss is about. If MS is going to have us all running on thin clients, and Google/Yahoo want to beat them to the punch, is this really going to matter who we pay? The article on digg.com http://digg.com/tech_news/Google_Yahoo_Merger_Redefines_Access s

Re: [PHP] Google-Yahoo venture and PHP

2007-04-03 Thread Chris
Tijnema ! wrote: On 4/3/07, Chris <[EMAIL PROTECTED]> wrote: Matt Kay wrote: > I really dont see what all the fuss is about. If MS is going to have us all > running > on thin clients, and Google/Yahoo want to beat them to the punch, is this > really > going to matter wh

[PHP] Bind IP with fsockopen

2007-04-07 Thread chris
Hi is it possible to socket_bind with fsockopen? im using this with all my scripts... $fs = fsockopen('example.com', 2043, $errno, $errstr, 60); if (!$fs) { fclose($fs); and I need the remote conection to see me as one of my other IP's Ive read through socket_bind http://uk.php.net/manual/en/fu

Re: [PHP] Bind IP with fsockopen

2007-04-07 Thread chris
I have a dedicated server with a number of IP addresses. When you make a connection through fsockopen it connects using the servers main IP address. What I want to do is specify which of my IP addresses fsockopen uses. Thanks - Original Message - From: "Tijnema !" <[EMAIL PROTECTED]>

[PHP] foreach question

2007-04-08 Thread chris
I have .. foreach( $_POST as $key ) { echo "$key"; } and that gives me item1 item2 item3 item4 item5 how do I write it to give me item1 item2 item3 item4 item5 Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach question

2007-04-08 Thread chris
"both examples do the same thing.." no, ex1 only has 1 so outputs like.. item1item2item3item4item5 Where as I want this.. item1 item2 item3 item4 item5 ie a line break after every item. - Original Message - From: "Sebe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Monda

Re: [PHP] foreach question

2007-04-08 Thread chris
Sorry this is the full script... whois.php Enter Domain Names (one per line) style="font-size:13;font-family:Arial,Verdana;"> Whois Results: "; } ?> - Original Message - From: "Lori Lay" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Monday, April 09, 2007 5:20 AM

[PHP] mysql if empty

2007-04-09 Thread chris
If I search for something in mysql that returns an empty result I cant get it to return "No result found" always returns "Found" even though the recoed does not exist... $sql = "SELECT Client FROM booked WHERE Name = 'larry'"; $result = mysql_query($sql); if ($result == "") { echo "No result

Re: [PHP] ribs (rsync) problem

2007-04-10 Thread Chris
Sebe wrote: anyone here using the ribs php rsync script? There is a google group for it http://www.rustyparts.com/ribs.php So ask there. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] redirect http to https

2007-04-10 Thread Chris
{header("Location: https://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']);exit;} ?> Very bad solution. Don't just tell us it's bad, explain why (even with an RTFM or URL to look at)... nobody learns from an answer like this. The only thing I can think of is that $_SERVER variables c

Re: [PHP] Bind IP with fsockopen

2007-04-10 Thread chris
Im having trouble converting this snippet to use the bind_socket function. my original code is.. I think im getting stuck on the fputs bit.. I have this which does not work.. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Evaluating strings...

2007-04-10 Thread Chris
Anthony J. Maske wrote: Hey, Thanks for the quick response on Retrieving parameters... This is another that has me stumped... if (trim($Line) = '') { That should be == basically that is trying to set trim($line) to be equal to '' which won't work (and you get an error message). ==

Re: [PHP] Bind IP with fsockopen

2007-04-11 Thread chris
Thanks how would I handle the fgets line.. If I echo $sock I get resource ID #4 rather then the responce from the other computer. Before on my original script I returned the responce using fputs($fs, "$domain\r\n"); // send query $line = fgets($fs, 1024); // store reply echo $line; // output r

Re: [PHP] Bind IP with fsockopen

2007-04-11 Thread chris
Thanks Tijnema $line = trim(socket_read($sock, 1024)); was what I was after. Thanks - Original Message - From: "Tijnema !" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Wednesday, April 11, 2007 5:09 PM Subject: Re: [PHP] Bind IP with fsockopen On 4/11/07, [EMAIL PROTECTE

Re: [PHP] SQL Source Control

2007-04-11 Thread Chris
I'm surprised (or rather, I'm unaware of) there is no native MySQL solution for this situation. Considering it's not a mysql specific problem I'd be surprised if there was. Postgres lets you do database changes inside a transaction, eg: begin; alter table x add column y int; ... commit; but

Re: [PHP] Help with table in database and login scripts.

2007-04-11 Thread Chris
Karl James wrote: Team, I want to know if my table is setup correctly. I am creating a site where team owners control fantasy football teams. Imaginary teams. They can trade players, add and drop them as long as they are under the salary cap at all times. if not they are given a warning to

Re: [PHP] Bind IP with fsockopen

2007-04-11 Thread chris
Hi ive tried \r\n\n and pretty much every other combination I can think of. But I still cant get it to return a line break. Otherwise the script is working though. - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2007 1

Re: [PHP] Outlook task via email

2007-04-11 Thread Chris
Chris Boget wrote: I've done some searching on Google but haven't been able to come up with anything helpful. Has anyone on the list done any work on sending an Outlook Task as part of an email? Or does anyone know of a good resource that shows how this can be done? I'm go

Re: [PHP] Constructors with multiple methods

2007-04-11 Thread Chris
Damien wrote: Hi all, Say you may want to create an instance in multiple ways, such as creating from scratch or loading from a database. Is something like this normal for creating an instance? I do this: class Foo { function Foo($id=0) { if (is_int($id) && (int)$id > 0) { return

Re: [PHP] location of the PHP executable

2007-04-11 Thread Chris
Børge Holen wrote: On Wednesday 11 April 2007 23:50, Jarrel Cobb wrote: Don't you have to run locate -u first to generate the database before using locate? You can't just assume a database exists already can you? not an updated one at least, updatedb can also be used to update. Probably can

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Chris
Arthur Erdös wrote: Hello all, is there a way to free memory allocated by variables in PHP?? This is a very important issue concerning long running scripts... I have a script that generates > 5000 Newsletters and when the script finishes it uses 1.8 GB (!!) of RAM. Although I am using unset(

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Chris
ok, the complete workflow is a little bit complicated. we are using a workflow engine and the newsletter generator is one step of three. the first cleans the statistics data, the second generates the new data and the third is the one which generates the mails. Put this in between each line and

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Chris
Arthur Erdös wrote: It can if you're trying to process a borked image... I've had imagecreatefromjpeg() eat memory up to almost 50x the size of the image before finally deciding it can't handle it and crapping out. That was *after* running it through getimagesize() with no problem at all. oka

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Chris
Arthur Erdös wrote: Am Freitag, den 13.04.2007, 16:03 +1000 schrieb Chris: ok, the complete workflow is a little bit complicated. we are using a workflow engine and the newsletter generator is one step of three. the first cleans the statistics data, the second generates the new data and the

Re: [PHP] free allocated memory: HOW ?

2007-04-15 Thread Chris
Richard Lynch wrote: On Fri, April 13, 2007 12:54 am, Arthur Erdös wrote: It can if you're trying to process a borked image... I've had imagecreatefromjpeg() eat memory up to almost 50x the size of the image before finally deciding it can't handle it and crapping out. That was *after* running i

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Chris
Tijnema ! wrote: On 4/17/07, Brian Dunning <[EMAIL PROTECTED]> wrote: Dang. There is no remote access to the server, no way to remotely edit php.ini - everything is blocked by the firewall. It's running IIS not Apache. I'm not totaly sure about IIS, i never use it, but PHP_INI_PERDIR can also

Re: [PHP] Why can't I ini_set('upload_max_filesize')?

2007-04-17 Thread Chris
Richard Lynch wrote: On Tue, April 17, 2007 4:01 pm, Chris wrote: Tijnema ! wrote: On 4/17/07, Brian Dunning <[EMAIL PROTECTED]> wrote: Dang. There is no remote access to the server, no way to remotely edit php.ini - everything is blocked by the firewall. It's running IIS not Apach

Re: [PHP] Array remove function?

2007-04-17 Thread Chris
Tijnema ! wrote: On 4/16/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: > On Wed, April 11, 2007 9:00 pm, Jochem Maas wrote: >> [PS - I've the pleasure of listening to a colleague do a manual >> install >> of Vista over an existing copy of XP and then get the really tricky >> st

Re: [PHP] Re: auto page generation

2007-04-19 Thread Chris
Michelle Konzack wrote: Hello Tim, Am 2007-04-16 19:22:21, schrieb Tim: Also can i reccomend: "Web Database Applications with PHP and MySQL" Do you know an equivalent book for php5 and PostgreSQL 8.1/8.2? Beginning PHP and PostgreSQL 8: From Novice to Professional (Paperback) might have s

[PHP] Source code of original PHP release.

2013-05-22 Thread chris
I'm currently writing a paper on the evolution of PHP and web development/security as a whole. One of the things I want to incorporate is snippets of source code to show how things have grown and advanced since the 90's If anyone could help me out I would be much appreciated. All my attempts o

Re: [PHP] Source code of original PHP release.

2013-05-23 Thread chris
Thank you Sir. Just what I needed :) I didn't even know there was a museum. Cheers, Christopher Tombleson On 2013-05-24 05:02, Daniel Brown wrote: On Thu, May 23, 2013 at 2:16 AM, chris wrote: I'm currently writing a paper on the evolution of PHP and web development/security as a

Re: [PHP] quotemeta() question...

2005-02-10 Thread Chris
Because it's parsing $WRW as a string, because of the double quotes. so you would need to do it like this: quotemeta('pat:1$WRW') to not let it parse any variables or quotemeta("pat:1\$WRW") to not parse that particular variable Steve Kaufman wrote: Why does quotemeta("pat:1$WRW") return

Re: [PHP] How do you read one of these parameters?

2005-02-11 Thread Chris
determining the Content-Type of a request. The BAD example doesn't get read as a PDF by IE, no matter what the Content-Type is. I'm not fully versed in this behavior, but I do know that IE acts correctly if the URL (not just the text before a ?) ends in .pdf AND the Content-Type is text/pd

[PHP] MySQL and MySQLi compiling

2005-02-17 Thread Chris
be appreciated. Below is a snippet of some of the error I'm getting I'm actually getting ALOT more, they all seem to be "First defined here" errors. Thanks, Chris /usr/lib/mysql/libmysqlclient.a(vio.o)(.text+0x40): first defined here /usr/lib/mysql/libmysqlclient.a(vio.o)(.t

<    1   2   3   4   5   6   7   8   9   10   >