[PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
I swear, it was just working last week! Well, a while ago, on another machine. You get the idea. Here's the deal... PHP 5.1.6 and MySQL 5.x on FC6 fully patched. 1. A simple page with a call to phpinfo() works fine. 2. A barely more complicated page also works fine, in that it throws an expec

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
comex wrote: On 8/24/07, Linux NG/Lists <[EMAIL PROTECTED]> wrote: b) Why does the error reporting NOT work as soon as I jam a $db new mysql call into the code? Because you disabled it with an '@'. Well, I suppose I should say "Doh!" but even when I get rid

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
Well, I suppose I should say "Doh!" but even when I get rid of the "@", I still get a blank page - no errors, and no database, either! A followup - I'm taking this over to PHP-DB since it's now database-centric, I think. This still fails: $db = new mysqli( But this works $conn

Re: [PHP] Using a variable for include statement

2007-09-11 Thread Tom Ray [Lists]
Jeff Benetti wrote: Sorry if this is a noob question, I have used PERL, TCL and VB but I am just getting into PHP. If there is a better place to ask noobie questions then let me know. I want to use the include statement but I want to pass the name of the file rather than hard code it. It seems

Re: [PHP] Public Announcement

2007-09-11 Thread Tom Ray [Lists]
Greg Donald wrote: On Tue, 11 Sep 2007, Stut wrote: You didn't say what you have against mod_rewrite. I'll bet you mod_rewrite can parse a request and send it to the right script faster than your PHP implementation. Has anyone tried Nginx? The rewrite rules are a bit more clear than t

Re: [PHP] Compose MP3 from a php enabled flash page.

2007-10-12 Thread Tom Ray [Lists]
John Taylor-Johnston wrote: I have an educational web site. I want to create an interface where my students can record their voices client side and then save messages server side. I thought Odeo would solve my problems. (The have their own problems now.) Then I tried: MyChingo and Mobasoft. C

Re: [PHP] HTML Parse Issue

2007-10-14 Thread Tom Ray [Lists]
[EMAIL PROTECTED] wrote: I am having a issue parsing an html file. I want to pull all the data between two html tags. Problem I am having is that no matter what I try I can pull either tag or both but not the data in between.

Re: [PHP] Which PHP-Editor to use?

2007-10-16 Thread Tom Ray [Lists]
Stut wrote: Zoltán Németh wrote: 2007. 10. 16, kedd keltezéssel 04.59-kor mooor ezt írta: I recommed you Codelobster php edition. Very good free php editor. It reminds me a mix of Zend Studio and MS Visual Studio. If to the basic features they are: syntax highlighting, an inte

Re: [PHP] html parsing

2007-11-07 Thread Tom Ray [Lists]
Ron Croonenberg wrote: Hello, I have a script that ads data to a html template. However when there is an include in the html like: it is not "processed", but "just" ends up as a string in the page. So I guess it needs to be parsed. Is there an easy way to do that ? thanks, Ron Do you h

[PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Tom Ray [Lists]
Hey- I'm trying to install PHP5 with mysql support and I keep running into the same problem over and over again. I run the configuration with this: --with-mysql=/usr/local/mysql and without fail I get this every time: ext/mysql/php_mysql.o: In function `zif_mysql_create_db': /home/tech/upgrad

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Tom Ray [Lists]
Chris wrote: Tom Ray [Lists] wrote: Hey- I'm trying to install PHP5 with mysql support and I keep running into the same problem over and over again. I run the configuration with this: --with-mysql=/usr/local/mysql and without fail I get this every time: ext/mysql/php_mysql.o: In fun

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Tom Ray [Lists]
Chris wrote: Tom Ray [Lists] wrote: Chris wrote: Tom Ray [Lists] wrote: Hey- I'm trying to install PHP5 with mysql support and I keep running into the same problem over and over again. I run the configuration with this: --with-mysql=/usr/local/mysql and without fail I get this every

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Tom Ray [Lists]
Robert Cummings wrote: On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote: Hey- I'm trying to install PHP5 with mysql support and I keep running into the same problem over and over again. I run the configuration with this: --with-mysql=/usr/local/mysql and without fail I get

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Tom Ray [Lists]
Robert Cummings wrote: On Tue, 2008-01-22 at 12:42 -0500, Tom Ray [Lists] wrote: Robert Cummings wrote: On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote: Hey- I'm trying to install PHP5 with mysql support and I keep running into the same problem over and over

[PHP] Currency Exchange Database?

2007-06-28 Thread Tom Ray [Lists]
I have a client that's looking to do auto conversions of currency on their reservation payment form. No big deal, I can that part down. However, exchange rates change on a minute to minute basis and they want the program to automatically know the current rates. Is there an online database or a

Re: [PHP] Currency Exchange Database?

2007-06-28 Thread Tom Ray [Lists]
I thought about that but I'm looking to make it seem-less. I just want to get the numbers and do the conversion myself not have the third party do it. I just need an updated list on a daily/hourly basis. Paul Scott wrote: On Thu, 2007-06-28 at 20:44 -0400, Tom Ray [Lists] wrote: I h

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Tom Ray [Lists]
Richard Heyes wrote: >> Every single one of us has been guilty of it at some time or another You can't make that assumption. Sure he can. Assumptions are like opinions which are like ...well you know what I'm getting at...we all have them. And if someone can honestly say they've never stole

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Tom Ray [Lists]
Daniel Brown wrote: P.S. - If a rooster lays an egg in a nest under a tree that falls in the woods and no one is there to hear it, how soon will train B meet train A if the wind blows the egg off the top of a barn facing west before sundown? Oh, I know this! Roosters can't lay eggs. -- PHP

[PHP] Upload Tracker.

2007-07-17 Thread Tom Ray [Lists]
I'm a little unsure on how to do this but basically when someone uses a form to upload a file I want to have a popup window come up and so the process in percentage of the transfer. Anyone do this before? Is it possible in PHP or do I need to do it in javascript or a mixture of both? Any sugg

[PHP] HTML Email Composing Problem.

2007-07-26 Thread Tom Ray [Lists]
I'm trying to use PHP to compose an HTML formatted email and I'm running into some small problems. 1) When using "Content-Type: multipart/mixed" during my testing both Thunderbird and Gmail display the plain text and html version of the email and Firefox attaches the html portion as an attache

Re: [PHP] HTML Email Composing Problem.

2007-07-27 Thread Tom Ray [Lists]
Chris wrote: Richard Lynch wrote: On Thu, July 26, 2007 2:46 pm, Tom Ray [Lists] wrote: I'm trying to use PHP to compose an HTML formatted email Don't do that... 3) Spam Assassin doesn't like it either way and tags the email as SPAM for the following reasons: 0.6 HT

Re: [PHP] Hide the real URL

2007-07-27 Thread Tom Ray [Lists]
Eric Butera wrote: On 7/28/07, brian <[EMAIL PROTECTED]> wrote: Eric Butera wrote: On 7/27/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, July 27, 2007 8:20 am, Eric Butera wrote: Not everyone has the option to do that. Plus I think it is unintuitive to have t

Re: [PHP] Re: Pirate PHP books online?

2007-07-29 Thread Tom Ray [Lists]
Really, I had expected more mature commentary from the adults on this list. So did I. I expect adults to display morality and values. Really? Have you hung out with many computer geeks? Oh..wait..morality..I thought you said maturity. Pardon me. :) -- PHP General Mailing List (htt

Re: [PHP] Re: Rules of Engagement

2007-07-29 Thread Tom Ray [Lists]
o delays in mass-transit facilities (here, read: I'm fucking exhausted, and yes, I dropped the "F" bomb). In either case, it's not conducive to a new contributor to have to weed through "vacation response" messages each time he/she replies to the list. I agree

Re: [PHP] Bizarre array create error

2007-07-29 Thread Tom Ray [Lists]
Ken Tozier wrote: Hi I'm trying to assign two fields of an object returned from a MySQL query and have stumbled upon the most bizarre PHP bug where I can't create two arrays in succession. Here's the MySQL query with two dummy fields to be filled in later select *, 0 as dummy_1, 0 as dummy_

Re: [PHP] Bizarre array create error

2007-07-30 Thread Tom Ray [Lists]
Paul Novitski wrote: At 7/29/2007 09:59 PM, Ken Tozier wrote: /*--*/ /* Next two lines are where the problem starts */ /* If I comment either of them out the script runs */ /* but

Re: [PHP] Which PHP-Editor to use?

2007-08-02 Thread Tom Ray [Lists]
Merlin wrote: Hi there, I have worked now for several years happily with homesite 4.5, but now it looks like I have to switch to another system as homesite will not run without admin rights on a XP machine. What editors do you use? Do you have any recomendations on a special one? I have loo

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Tom Ray [Lists]
Stut wrote: blackwater dev wrote: I have to register a bunch of names and am trying to figure out why I would pay $35 when I can just pay $9 at godaddy. Does godaddy own it and I lease it from them??? Network Solutions are expensive, GoDaddy are cheap. That's all there is to it. In my expe

[PHP] Creating watermarks

2007-08-04 Thread Tom Ray [Lists]
I've been learning how to use PHP with the GD Library and I've managed to learn quite a bit. I can upload, resize, create thumbnails and I'm even able to create "security code" images for forms. My question is how do I create a Watermark on the image? I want something transparent but still visi

Re: [PHP] Creating watermarks

2007-08-04 Thread Tom Ray [Lists]
$sourcefile_id); } imagedestroy($sourcefile_id); imagedestroy($watermarkfile_id); } ?> Regards, Greg http://www.psmdev.com <http://www.psmdev.com/> On 8/4/07, *Tom Ray [Lists]* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I've bee

Re: [PHP] Open Source Job Wanted system

2007-08-09 Thread Tom Ray [Lists]
Joey wrote: Has anybody had any experience with any open source Job posting systems out there? Thanks! I've written one myself. It allows for job seekers to put up a profile, resumes, etc and for employers to post their jobs and search resumes. Full search ability on both sides. They c

[PHP] Max File Upload

2006-08-15 Thread Tom Ray [Lists]
Is there anyway to overwrite the max file upload in php.ini per instant? I'd like to have users controlled on a certain website to have more then average uploads but the site runs on a shared hosting environment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Script timing out.

2006-08-20 Thread Tom Ray [Lists]
I just installed PHP Open Chat and I'm getting an error when I log in about the script being unresponsive. Anyone ever run into this? Or could shed a light as to what causes this error? I've never seen it come up before.I'm running PHP 4.4.2/Apache 2.0.5 -- PHP General Mailing List (http:/

[PHP] User question for PHP

2006-10-19 Thread Tom Ray [Lists]
Is it possible to have a PHP script execute as the user of the domain instead of the webserver? So when I upload files through a PHP script they are owned by me and not "wwwrun" or "nobody"? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem compiling PHP 4.4.2 with mcrypt

2006-10-26 Thread Tom Ray [Lists]
I have to get a temporary server in place under a tight time frame and am using a pre-existing server that wasn't configured really for hosting websites. I've upgraded all the services on it like going from Apache 1.3.x to Apache 2.0.59 and PHP from it's old version to 4.4.2 however I need to h

[PHP] Probably a dumb question but...

2006-10-31 Thread Tom Ray [Lists]
I've just installed PHP 4.4.4 with CLI disabled and CGI enabled. With CLI I can find the PHP executable in $prefix/bin/php but with CGI I can't find it. I need the path to the PHP executable so I can install suPHP but $prefix/bin/php no longer exists and all I have in $prefix/bin is php-config

Re: [PHP] php cli and mysql

2006-11-14 Thread Tom Ray [Lists]
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200: On 11/14/06, James Tu <[EMAIL PROTECTED]> wrote: I'm running a php script from the command line (I'm on OS X) and I'm getting ... Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var

Re: [PHP] php cli and mysql

2006-11-14 Thread Tom Ray [Lists]
Chris wrote: Tom Ray [Lists] wrote: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-11-14 20:17:16 +0200: On 11/14/06, James Tu <[EMAIL PROTECTED]> wrote: I'm running a php script from the command line (I'm on OS X) and I'm getting ... Warning: mysql_connec

Re: [PHP] GD

2006-06-12 Thread Tom Ray [Lists]
Beauford wrote: Hi, I am trying to get GD working so I can use a captcha script and not having much luck. I can get it to work in Windows, but not Linux. I have seen a few comments suggesting that PHP needs to be compiled with the GD switch. Is there another way to do this? I have PHP, MySQ

Re: [PHP] GD

2006-06-13 Thread Tom Ray [Lists]
Beauford wrote: I'm using Slackware 10 and installed GD as an install package. I also changed some lines in the php.ini file for GD. Tom: I have no idea how this program works, all I know is that I need it for the captcha program to display the image. I wouldn't even bother otherwise. Thanks.

[PHP] Cookie Question

2006-06-23 Thread Tom Ray [Lists]
I've run into something rather odd with cookies today. I'm working with this admin section on a site and I'm setting a cookie that is supposed to be good for one hour. So in the cookie I have time()+3600 and all was well or that was until someone fired up IE. It seems that IE refused to set the

[PHP] clear a mysql table

2008-10-25 Thread Ronald Wiplinger (Lists)
I need to clear a table (cache) from a database based on the database size. Our web site uses cached pages. Our webhost only allow us 100 MB storage. Usually the database is just 10 MB, but when a search engine crawls our calendar, then the storage is quickly 108 MB. The system reports then mathem

[PHP] Finding position of New line in string

2004-02-25 Thread Ben Edwards (lists)
I am trying to find the position of the first occurrence on new line in a string that comes from a database. I tried $pos = strpos( $list_text, "/n" ); But it never returns anything. Any help would be much appreciated. Ben -- Ben EdwardsTel +44 (0)1179 553 551 ICQ 42000477 Home

[PHP] Problem with foreatch()

2005-01-16 Thread Ben Edwards (lists)
I have the following Code: foreatch( $_POST["mtype"] as $akey => $avalue ) { echo "$akey, $avalue"; } When I run it I get: Parse error: parse error, unexpected T_AS in /var/www/mb/mb_estab_update.php on line 58 58 is the line with the foreatch on it. However if I replace it with

[PHP] Problem with hidden form input values

2005-01-19 Thread Ben Edwards (lists)
I know this is not strictly speaking a PHP question but it is to do with a PHP app. I have a form with a number of hidden values in it. After the post print_r( $_POST ) shows all the values except these (this is copied from 'Show Source' in the browser. Any idea why they wont post? Ben --

[PHP] Loading all clases always

2005-01-22 Thread Ben Edwards (lists)
I have all my classes in a single directory. I was thinking of automatically loading them all at the beginning of every page. The logic being that the class definitions will get cached (I guess PHP uses filesize/date/time) so the overhead would not be that great. Also at any given time they will

[PHP] Is there a function to c if a php function exists

2005-02-02 Thread Ben Edwards (lists)
I have been implementing a system on a different ISP than I normally use and have got:- Fatal error: Call to undefined function: cal_days_in_month() in /home/hosted/www.menublackboard.com/public_html/dev/classes/validator.class.php on line 134 I found a reference to this an the web and it seems

[PHP] Sessions Issue

2005-07-29 Thread Tom Ray [Lists]
We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenChat or start_session()) we get calls to undefined function errors. This is lea

Re: [PHP] Sessions Issue

2005-07-31 Thread Tom Ray [Lists]
ivate sessions without recompiling? And if I can't, how do I recompile since I used the SuSE cd's and YasT? John Nichel wrote: Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that s

Re: [PHP] Sessions Issue

2005-08-03 Thread Tom Ray [Lists]
ld be good? Burhan Khalid wrote: On Jul 29, 2005, at 8:07 PM, Tom Ray [Lists] wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions fu

Re: [PHP] Sessions Issue

2005-08-03 Thread Tom Ray [Lists]
wrote: On 7/29/05, Tom Ray [Lists] <[EMAIL PROTECTED]> wrote: We built a box about 7 months or so ago using the SuSE 9.1 cd's, straight install from the CDs. While I've read that sessions are turned on by default, when we try to call on the sessions functions (like with phpOpenC

Re: [PHP] Message check then post

2005-08-03 Thread Tom Ray [Lists]
George- Without seeing your code it's hard to say what the problem is. There could be a typo, a missing quote or semi colon. The code snippet of the review page would be helpful. Now when you say it's entering "blanks" into the database, I'm assuming you have a messageID field in the db that

Re: [PHP] Using setters/getters with array of objects

2009-10-18 Thread Andy Shellam (Mailing Lists)
Hi, $u->emails[] = $e; I would hazard a guess because $u->emails isn't a concrete object (whereas $u->_emails is, but is private.) It's sort of a virtual reference - PHP has no way of knowing that $u->emails actually translates into _emails which is an array, if you see what I mean (

Re: [PHP] please help with regular expression in preg_replace

2009-10-29 Thread Andy Shellam (Mailing Lists)
Hi Rene, This looks suspiciously like regex's "greedy" behaviour - it will gobble up everything that matches until you tell it otherwise. For example, your regex is matching "any character that isn't a dot, followed by a dot." In host.domain.com, both "host." and "domain." match this rege

Re: [PHP] is Aptana taking a crap on the face of PHP?

2009-11-15 Thread Andy Shellam (Mailing Lists)
> > * It is FREE (unlike Zend's retarded $500 price tag). I bought Zend Studio back in the 5.5 days - a couple of months after that they announced they were dropping support for the standalone IDE and made Studio an Eclipse plugin. It was then they added about $200 to the price. I moved to Nu

Re: [PHP] php htaccess logins and logouts

2009-11-26 Thread Andy Shellam (Mailing Lists)
Hi, > > IIRC if you unset $_SERVER['PHP_AUTH_USER'] and > $_SERVER['PHP_AUTH_PW'] it will log you out. I've done some research on this in the past - and not all browsers/web servers honour that as it's the browser that keeps the username/password cached and sends it after a 401 response, so th

Re: [PHP] Why does CURLOPT_FOLLOWLOCATION require open_basedir to be turned off?

2009-12-13 Thread Andy Shellam (Mailing Lists)
Hi, > I was wondering why CURLOPT_FOLLOWLOCATION requires open_basedir and > safe_mode to be turned off. > > The following was found in the changelog(http://www.php.net/ChangeLog-5.php): > > Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode are > enabled. (Stefan E., Ilia)

Re: [PHP] Setting session variables from a MySQL field value.

2003-01-15 Thread Mark Heintz PHP Mailing Lists
The problem may be your variable variable syntax... See if the following works: while ($row = mysql_fetch_array($result)) { session_register('config_'.$row['config_id']); ${'config_'.$row['config_id']} = $row['config_value']; } Although I personally prefer using the session superglobal over

RE: [PHP] file upload question

2003-01-24 Thread Mark Heintz PHP Mailing Lists
You have to include a filename along with the path when you're using move_uploaded_file(); if you're only specifying '/usr/local/etc/httpd/htdocs/blast/images' as your destination string, php is trying to create a file named 'images' in '/usr/local/etc/httpd/htdocs/blast'. If there's still a prob

Re: [PHP] mortgage calculator

2003-03-05 Thread Mark Heintz PHP Mailing Lists
http://dave.imarc.net/ offers one. I haven't used it yet myself, though. mh. On Wed, 5 Mar 2003, Karen E. Lubrecht wrote: > I'd like to add a mortgage calculator to a client's site. I've been unable > to find the formula. In searching php.net, I found a discussion from back in > 2000 related t

Re: [PHP] Uploading file problem

2003-03-06 Thread Mark Heintz PHP Mailing Lists
What do you mean by "fails at the copy"? Have you verified that the filename and path you're copying to is valid? Otherwise, if the filename that is failing is consistently the same, and if it's attempting to overwrite an existing file, it could be a permissions problem. Just a couple of guesse

[PHP] Re: global find and replace

2003-03-08 Thread Mark Heintz PHP Mailing Lists
Actually, in this case str_replace() would be preferred over preg_replace, as it would be faster. foreach($_REQUEST AS $key => $val) { $_REQUEST[$key] = str_replace(';', '', $val); } mh. On Sat, 8 Mar 2003, James wrote: > Add an append file to the php.ini file, this script will act the defau

Re: [PHP] Easy Way.

2003-03-09 Thread Mark Heintz PHP Mailing Lists
You're looking for the str_pad function. http://www.php.net/str_pad $i = 3; $i = str_pad($i, 5, '0', STR_PAD_LEFT); echo $i; // outputs '3' Just keep in mind that it won't help you if your input is greater than 5 to begin with, you'll have to check that seperately. $j = 123456; $j = str_pad

Re: [PHP] html mail

2003-03-10 Thread Mark Heintz PHP Mailing Lists
The PEAR Mail_mime class tends to take the headache out of this sort of thing. See the example at the bottom of the manual page: http://pear.php.net/manual/en/core.mail.mime.php mh. On Mon, 10 Mar 2003, [iso-8859-1] Ian A. Gray wrote: > Hi, > I am quite new to php and I am trying to find a way

Re: [PHP] form submission and storing variables

2003-03-10 Thread Mark Heintz PHP Mailing Lists
You can initiate a POST from within your script using cURL, assuming your php installation has cURL support enabled. Check http://www.php.net/curl for details. mh. On Mon, 10 Mar 2003, Doug Parker wrote: > I'm sending information to be processed by a third party site. I need > to store the inp

Re: [PHP] Multi-select inputs and naming

2003-03-10 Thread Mark Heintz PHP Mailing Lists
On Mon, 10 Mar 2003, Dan Phiffer wrote: > Am I correct in my understanding that for a multi-select input, PHP requires > that the name attribute end with square brackets (i.e. name="my_select[] multiple>") in order for the submission be handled > properly? As far as I know, that is correct. I'd

Re: [PHP] Is the problem a server setting?

2003-03-10 Thread Mark Heintz PHP Mailing Lists
It sounds like either allow_url_fopen is set to false or php was compiled with --disable-url-fopen-wrapper. Either way, checking the output of phpinfo() should give you your answer. mh. On Mon, 10 Mar 2003, Chad Henderson wrote: > Thanks for the reply. If they did upgrade PHP, which I am fairly

Re: [PHP] A question of time...

2003-03-10 Thread Mark Heintz PHP Mailing Lists
On Mon, 10 Mar 2003, Robert Cummings wrote: > All in all I spent 20 hours total for the client at a rate of $40 USD/hr > which I believe is on the low end of freelance. I myself have 3 years > experience devloping PHP web applications. So the question I ask is whther > this time frame is reaso

Re: [PHP] Multi-select inputs and naming

2003-03-10 Thread Mark Heintz PHP Mailing Lists
On Mon, 10 Mar 2003, Dan Phiffer wrote: > I guess this question was coming from a "couldn't they have designed in a > cleaner way?" perspective. Don't get me wrong, I think the way PHP does an > outstanding job of handling these particular kinds of form submissions, I > just figured there might be

Re: [PHP] Question

2003-03-10 Thread Mark Heintz PHP Mailing Lists
if($recordcount % 4 == 0) { echo ''; } mh. On Mon, 10 Mar 2003, Clint Tredway wrote: > I have a display of images that every fourth image I want to start a new > column. In ColdFusion I would use the MOD operator like this: > > if query.recordcount MOD 4 eq 0 > > > /if > > I am

[PHP] form arrays not populating $_POST

2002-10-29 Thread Mark Heintz PHP Mailing Lists
I'm having a problem where $_POST is being populated with the values of a set of checkboxes after moving the script to a new server. The checkbox values appear in the raw post data, the proper number of indexes are created, but the data does't make it into the superglobal. The form similar to th

Re: [PHP] form arrays not populating $_POST

2002-10-29 Thread Mark Heintz PHP Mailing Lists
al Message ----- > From: "Mark Heintz PHP Mailing Lists" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 29, 2002 2:20 PM > Subject: [PHP] form arrays not populating $_POST > > > > I'm having a problem where $_POST is being popula

Re: [PHP] Comparing array elements

2002-06-05 Thread Mark Heintz PHP Mailing Lists
Well, it sounds like something that could be done through the db query, but if you want to use arrays, it'd be something like this... $servers = arrray('s1','s2','s3','s4','s5'); $group1 = array('s1','s4','s5'); $in_group = array_intersect($servers, $group1); $not_in_group = array_diff($servers,

Re: [PHP] PHP code in a database

2002-06-07 Thread Mark Heintz PHP Mailing Lists
You want the eval() function. manual entry: http://www.php.net/eval mh. On Fri, 7 Jun 2002, Jean-Rene Cormier wrote: > I'm trying to make a script that'll take some pages from a database but > I want it to execute the PHP that's in the pages that it'll fetch from > the database. > > Say it ge

Re: [PHP] PHP (CLI) + CURL + SSL Problem...

2002-06-07 Thread Mark Heintz PHP Mailing Lists
Are you sure curl was included with the CLI installation? Try running this through the CLI to check... if(extension_loaded('curl')){ echo 'curl support present'; } else { echo 'curl not found'; } mh. On 7 Jun 2002, Matthew Walker wrote: > I have PHP installed both as a module, and as a C

Re: [PHP] POST Arrays with register globals..

2002-06-12 Thread Mark Heintz PHP Mailing Lists
$groups = $_POST['groups']; or if(isset($_POST['groups']) && is_array($_POST['groups'])) $groups = $_POST['groups']; else $groups = array(); so that groups is an (empty) array even if no checkboxes were checked mh. On Wed, 12 Jun 2002, Adam Plocher wrote: >   blah1 > &nbps; blah2 >   bl

Re: [PHP] How to put a "new line" character with fputs($birthday_file,$content);

2002-06-23 Thread Mark Heintz PHP Mailing Lists
"\n" is a newline character, "\r" is a carriage return. $line = "This is a line with a newline character.\n"; You can find it in the manual here: http://www.php.net/manual/en/language.types.string.php mh. On Fri, 21 Jun 2002, Alfredo wrote: > Hi, > > I am saving the result of a query on a

Re: [PHP] passing variable arguments from

2002-06-27 Thread Mark Heintz PHP Mailing Lists
On Thu, 27 Jun 2002, Haddad Said wrote: > in query.php i have this piece of code; > > echo " > > one > two > > > > "; > > and in test2.php i have this; > > if ($_POST['language'] = 1) > {$lang = "EngP=1";} > else {$lang = "EngP=0";} > echo $lang ; > > But it always echoes EngP=1 no matter wha

[PHP] fread over ftp

2001-02-21 Thread Mark Heintz PHP Mailing Lists
I'm having some trouble reading a text file from a remote server into a string. The code is as follows: if( !($fd = @fopen($ftp_url, "r")) ){ $error = true; $error_msg = "Unable to connect to server."; } else { $file_contents = fread($fd, 10); fclose($fd); } if( empty($file_content

[PHP] fread via ftp to NT fails

2001-05-21 Thread Mark Heintz PHP Mailing Lists
I'm attempting to read a file from a remote server and save it to a variable. The code below works fine if the remote server is unix based, but fails with the server I actually need to retrieve data from (NT4 SP4, beyond my control). When trying to fread from the NT server, $invoice_contents en

Re: [PHP] Must results from MySQL fetches always be an Array??

2002-01-25 Thread Mark Heintz PHP Mailing Lists
On Fri, 25 Jan 2002, [ISO-8859-1] René Fournier wrote: > $series = mysql_fetch_array(mysql_query("SELECT key2 FROM models WHERE > lang='$lang' AND recordname='$model'",$db)); > > Now I realize that with this function $series will always be an array, > even if it contains just one element (which i

Re: [PHP] Re: Parsing file's

2002-05-31 Thread Mark Heintz PHP Mailing Lists
You may have been heading in the right direction originally with array_slice... This is off the top of my head, I don't guaruntee it will work... $start = 34; $interval = 15; $max = 303; // hop across orig. array 15 columns at a time for($offset = $start; $offset < $max && isset($array[$offs

Re: [PHP] help with date formatting

2002-03-18 Thread Mark Heintz PHP Mailing Lists
Since you're using phpmyadmin, I'm assuming you're using mysql. You could use the built-in date and time functions to do the formatting when selecting your date field. Check here: http://www.mysql.com/doc/D/a/Date_and_time_functions.html mh. On Mon, 18 Mar 2002, Ryan wrote: > Hi, I'm trying

Re: [PHP] Creating arrays using results from MySQL query

2002-03-18 Thread Mark Heintz PHP Mailing Lists
You have to call mysql_fetch_array for each record in your result set... $emp_login_wkgrp_id = array (); $emp_login_grp_id = array (); $emp_login_role_id = array (); $i = 0; while($employee_2 = mysql_fetch_array($result_2)){ $emp_login_wkgrp_id[$i] = $employee_2["wkgrp_id"]; $emp_login_grp_i

RE: [PHP] Creating arrays using results from MySQL query

2002-03-18 Thread Mark Heintz PHP Mailing Lists
I should have been more exact in my original reply. The second query isn't necessary. Try this: File: login.php # if $employee_1, query db workgroups table to check if $emp_login_id belongs to any groups $sql_2 = "SELECT * FROM workgroups WHERE emp_id='$emp_login_id'"; $result_2 = @mysql_query

Re: [PHP] how to send a file to the user's browser?

2002-03-18 Thread Mark Heintz PHP Mailing Lists
A couple more headers than absolutely necessary, but this should work: mh. On Mon, 18 Mar 2002, Carlos Fernando Scheidecker Antunes wrote: > Hello all, > > I've got a script that generates a txt file, compresses it into a Zip file and it >all happens on a directory that is out of apache's

Re: [PHP] how to send a file to the user's browser?

2002-03-18 Thread Mark Heintz PHP Mailing Lists
On Mon, 18 Mar 2002, Mark Heintz PHP Mailing Lists wrote: > header ( "Content-Disposition: attachment; filename="$downloadfile" ); erg... typo... header ( "Content-Disposition: attachment; filename=$downloadfile" ); mh. -- PHP General Mailing List (http://

[PHP] PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-19 Thread Pour Mailings Lists - pass huitre
Hi, I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 I've installed PHP in Apache, it works very well I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's the problem) but I've a problem. In CGI mode, the path of PHP is always written at the top of the result I'll take for exampl

[PHP] com obj from php

2003-08-14 Thread PHPDiscuss - php Newsgroups and mailing lists
Hi all; Does anyone know if ti is possible or not to create a com object from php?? cheers :o) Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Search For File

2003-11-18 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello, I am trying to write a simple application using PHP on a Windows 2000 server. There is one text box for input and one search button. Basically the user would input a file name (for example "help.pdf") and then the php script would search a directory (for example "c:\help\") and subfolders

[PHP] PHP CONTRACT ROLE IN BERKSHIRE, UK

2004-01-20 Thread PHPDiscuss - PHP Newsgroups and mailing lists
PHP developer required with good SQL (MySQL preferred), HTML and Linux open source operating systems experience for contract in Berkshire. Experience of data analysis, requirements analysis and technical documentation an advantage as is any knowledge of Oracle databases. Role is to develop a cost

[PHP] Re: PHP5 for Fedora Core 2

2004-07-27 Thread PHPDiscuss - PHP Newsgroups and mailing lists
C.F. Scheidecker Antunes wrote: > Hello all, > Are there any pre compiled rpm packages from Fedora Core 2 yet? > If not, I will most likely built it myself. > Thanks. Any chance you can send it to me when you finish? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Automatically run a php page once a day

2004-07-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello everybody, Can someone help me saying how i can run a php script automatically once in a day. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need help with $HTTP_RAW_POST_DATA

2004-08-05 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi all, I am using a Debian server with all stable packages so PHP is version 4.1.2 I was developing a SyncML server and was using $HTTP_RAW_POST_DATA as a receiving container for incoming SyncML communication from my Sony Ericsson T-616. Recently finished writing the WBXML convertor and are wo

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in window

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in window

[PHP] Open all subdirectories in a directory

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello Professionals, Can anybody help me to open all subdirectories in a directory, I used is_dir() to check whether it is a dir, and if yes, I recursively called it with the new dir name. But all subdirectories are not open the recursion is not working for more than 1 level. I tested it in window

[PHP] code

2004-08-14 Thread PHPDiscuss - PHP Newsgroups and mailing lists
r($dh); } } } getfiles($dir); ?> Hope you can help me. Thanks. John Holmes wrote: > PHPDiscuss - PHP Newsgroups and mailing lists wrote: > > Hello Professionals, > > Can anybody help me to open all subdirectories in a directory, > > I used is_dir()

Re: [PHP] SOMETIMES, my SID gets embedded in the URL ???

2004-10-11 Thread PHPDiscuss - PHP Newsgroups and mailing lists
url ? The docs say that "relative URIs will be changed to contain the session id automatically". Also when I access the forums on my site (IPB), the sid isn't embedded. So my question is: if session.use_only_cookies is ON, why on earth is the sid present in the url ? PS: php is version

[PHP] SimpleXML: DOM, SAX or Other?

2004-10-15 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, Does anybody have any depthful knowledge of the SimpleXML extension in PHP5?.. More accurately, do you know if the simpleXml->xpath() method uses DOM, SAX or some other method of parsing a loaded XML document? I ask because I am trying to parse arbitrary XML documents as efficiently as possi

<    1   2   3   4   5   6   7   >