Re: [PHP] iis 5.0 question

2003-01-29 Thread Jason Wong
On Thursday 30 January 2003 15:51, Dale wrote: > I have a program called ImageMagick installed which allows me to resize > pictures and do some other fun things. I am, however, unable to run any of > the executables. I installed the software and it installed under program > files. I then created a

[PHP] Re: domxml memberfunction not dom compliant??

2003-01-29 Thread SLanger
Hello As far as I rememeber according to DOM Level 2 Elementnodes contain Attributenodes but the Attributenode has no association with its Elementnode meaning you can't tell from an Attributenode which Elementnode it belongs to unless you remember it in your code. Thus an Attributenode is not p

[PHP] iis 5.0 question

2003-01-29 Thread Dale
I have a program called ImageMagick installed which allows me to resize pictures and do some other fun things. I am, however, unable to run any of the executables. I installed the software and it installed under program files. I then created a virtual dir under my website. When I try to run the exe

Re: [PHP] Use Pop3

2003-01-29 Thread Jason Wong
On Thursday 30 January 2003 14:49, Christian Ista wrote: > Is it possible via PHP to : > - join a pop3 server > - make a "query" to recover mails header, subject, date, sender, to > create a list. > - we I have the list when I click on an element of the list recever the > email content (text a

Re: [PHP] Is there a bug in fopen() - solved, maybe

2003-01-29 Thread zlu tarch
I was not able to either telnet (via port 80), or connect using fopen() to www2.barchart.com. But it seems that it is fine now. Perhaps it was a temp problem on the site's server, but still, I had no problems connecting to the site via a browser while fopen and telnet were not working. It would

[PHP] Re:[PHP] Register globals on and off

2003-01-29 Thread Daniel Leighton
Hi Davy, I found the following in the php manual: Please note that register_globals cannot be set at runtime (ini_set()). Although, you can use .htaccess if your host allows it as described above. An example .htaccess entry: php_flag register_globals on. on this page: http://www.php.net/manual

Re: [PHP] content type header for downloading files

2003-01-29 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manually connect and request a page using HTTP echo -e "GET / HTTP/1.0\r\n\r\n" | nc server 80 works on many boxes... you may have to use telnet and actually type in the request instead of piping On Wednesday 29 January 2003 05:29 pm, Dara Dowd wrot

Re: [PHP] Problem with xml_parse_into_struct

2003-01-29 Thread Davy Obdam
Hi Phil, Your XML is not well formed, not properly nested use: This way the XML parser wil accept and , otherwise it sees it as XML elements. I hope this helps. Best regards, Davy Obdam mailto:[EMAIL PROTECTED] Phil Powell wrote: I have various XML files that might contain <> tags inside

[PHP] Problem with xml_parse_into_struct

2003-01-29 Thread Phil Powell
I have various XML files that might contain <> tags inside the element body, for example: Today on 1/29/03, stuff happened Because of this I can't use xml_parse_into_struct; when I do this happens: array ( ... [attributes] => array ( [ID] = "1"

[PHP] Register globals on and off

2003-01-29 Thread Davy Obdam
Hello people, On my development machine (win XP/Apache 2.0.44/PHP 4.3.0/MySQL 3.23.55) i have several websites that i made some time ago that require register globals to be On in the php.ini. Ofcourse i know thats not a good idea at all for security, but rewriting all this code is not an option

[PHP] Use Pop3

2003-01-29 Thread Christian Ista
Hello, Is it possible via PHP to : - join a pop3 server - make a "query" to recover mails header, subject, date, sender, to create a list. - we I have the list when I click on an element of the list recever the email content (text and attachment) and why not see the email's header - Have the

[PHP] Is there a bug in fopen() and fsockopen()?

2003-01-29 Thread zlu tarch
Hi, I think fopen() and fsockopen() have a bug. For example, while I had no problem connecting to "http://www2.barchart.com"; using a browser, it was not possible to open a socket connection uisng either fopen() or fsockopen() (i.e., none could initilize the socket). I was wondering if anyone els

Re: [PHP] Using Pear Auth

2003-01-29 Thread Josh McCormack
No, I put a new version of Pear in the directory I was developing in. I found this: http://news.php.net/article.php?group=php.pear.general&article=3505 Seems there are lots of problems with Auth, despite Pear's 1.0 version. Josh John W. Holmes wrote: $a = new Auth("DB", $dsn, "loginFunction")

[PHP] Re: __PHP_Incomplete_Class Object

2003-01-29 Thread Philip Hallstrom
I don't see where you include() your class definition in that second file... add include("nycmgMail.php") right before the session_start() line and see if that makes a difference. -philip On Thu, 30 Jan 2003, Weston Houghton wrote: > > Ok, now I'm frustrated. > > I'm trying to register an objec

[PHP] __PHP_Incomplete_Class Object

2003-01-29 Thread Weston Houghton
Ok, now I'm frustrated. I'm trying to register an object in the session, and access that object from 2 different pages. I start off in the first file, and do: include("nycmgMail.php"); session_start(); $myMailer = new nycmgMail(); $myMailer->buildRecipients(); $_SESSION['myMailer'] = $myMaile

Re: [PHP] Using custom "button" form element instead of standard"submit"?

2003-01-29 Thread Philip Olson
[snip] > I assume i could use solution "A" above, and parse the _x out of the "name" > value .. but this seems pretty hoaky and it's my understanding soultion B is [snip] This is how it's done. If this is set, the button was clicked. For example: if (isset($_REQUEST['thebuttonname_x'])) {

RE: [PHP] Best PHP db wrapper?

2003-01-29 Thread John W. Holmes
> Trying to decide between wrappers for a rather large application, and > wanted some input from the group as I haven't used any of these to any > degree. So far, I've found PearDB, metabase, adodb, and MDB. > > What's the best option? My main concerns are speed and good community > support. >

Re: [PHP] Using custom "button" form element instead of standard "submit"?

2003-01-29 Thread Durwood Gafford
This suggested solution is not quite what i was looking for (I was aware of it already): A: input TYPE=IMAGE NAME="parent" VALUE="foo" SRC="icon.gif"> The above uses an image as a bitmap and gets the x,y values where it was clicked. I'd like to use an ICON (instead of a standard submit button) a

[PHP] Best PHP db wrapper?

2003-01-29 Thread John Wells
Trying to decide between wrappers for a rather large application, and wanted some input from the group as I haven't used any of these to any degree. So far, I've found PearDB, metabase, adodb, and MDB. What's the best option? My main concerns are speed and good community support. All input is *

RE: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Philip Olson
> You never answered if this was in a function or class > method. Is it? Did you say whether it was Apache 1 or 2? Also, to check what the register_globals setting really is, make a call to phpinfo() as it will tell you the true setting. Sometimes the wrong php.ini is edited or the web server

RE: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread John W. Holmes
You never answered if this was in a function or class method. Is it? Did you say whether it was Apache 1 or 2? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Noah [mailto:[EMAIL PROT

[PHP] Random "open_basedir" errors

2003-01-29 Thread Chris Cameron
I'm using PHP 4.2.3, Apache 1.2.24 on OpenBSD 3.1. (http://ardvark.upnix.net/phpinfo.php) I'm running a fairly busy server that has a number of virtual hosts. Safe mode is off, I don't (and never did) use open_basedir anywhere and my php.ini file is the default one (untouched) from my PHP install.

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
H. Sounds like "resorting" to extract($REQUEST) might have a downside? Otherwise, I'll use it for now. Thanks, --Noah - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: "Noah" <[EMAIL PROTECTED]> Cc: "Philip Olson" <[EMAIL PROTECTED]>; <[EMAIL PROTEC

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
Checked out the php.ini file. register_globals is set to On -- there is no semicolon or other character that would cause a problem. This might be a problem with the Apache, Win2k combination -- I don't know.. --Noah - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTE

RE: [PHP] if (a == b) ...

2003-01-29 Thread Lee Herron
$a === $b TRUE if $a is equal to $b, and they are of the same type. (PHP 4 only) > -Original Message- > From: David Freeman [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 29, 2003 7:39 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] if (a == b) ... > > > > > I have a condition

Re: [PHP] if (a == b) ...

2003-01-29 Thread Webapprentice
Cal, Thanks for the suggestion. I looked up equality on www.php.net, and there are many comments about how == works. I also found out === works too, or is that still lazy? Thanks, Stephen Cal Evans wrote: Stephen, "Friday August 22" evaluates to the number 0. (check the docs for intval()) The

Re: [PHP] Advice on uploaded files

2003-01-29 Thread Jason Sheets
You can do either, many people have responded and given their thoughs on the matter. I personally avoid storing images in a database, the filesystem is better equipped IMO to handle files. On top of the overhead of storing the image in your database you will be creating additional database traffi

RE: [PHP] if (a == b) ...

2003-01-29 Thread Cal Evans
Stephen, "Friday August 22" evaluates to the number 0. (check the docs for intval()) Therefore the condition would be true. I stated in an earlier thread this week. It is bad for to allow PHP todo your conversions for you. At the least it's lazy, at the most it will cause unpredictable results.

Re: [PHP] Functions and arguments

2003-01-29 Thread Blaine von Roeder
> > What happens when you run this? I made some tweaks to the way I was running sessions, and now it works. I'm still getting an error unfortunately, but it's less conspicuous and spammy this time: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/vir

Re: [PHP] if (a == b) ...

2003-01-29 Thread Johannes Schlueter
On Thursday 30 January 2003 02:39, David Freeman wrote: > -8<- > $a = "0"; > $b = "Friday August 22"; > -8<- > > and resulted in 'no match'. Or try $a = 0; $c = (string) $a; // Now $c == "0" or if (( (string) $a == (string) $b)) { ... The manual could be your friend, to

Re: [PHP] Functions and arguments

2003-01-29 Thread Matt
- Original Message - From: "R0x0r Mc0wnage" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:49 PM Subject: Re: [PHP] Functions and arguments > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result > resource in > /home/virtual/site125

Re: [PHP] Functions and arguments

2003-01-29 Thread R0x0r Mc0wnage
> What happens when you run this? Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site125/fst/var/www/html/atracker/assignments/index.php on line 15 ID Number Name Created by Created on Due on Class Warning: mysql_fetch_array(): suppli

RE: [PHP] if (a == b) ...

2003-01-29 Thread David Freeman
> I have a conditional: > if (a == b) > > a is the number 0, but b is a string "Friday August 22". > > The condition is evaluating as true, which is not what I want. > What am I misunderstanding? You're comparing a string to a number perhaps? I tried this: -8<- $a = 0; $b = "Frid

[PHP] if (a == b) ...

2003-01-29 Thread Webapprentice
Hi, I have a conditional: if (a == b) a is the number 0, but b is a string "Friday August 22". The condition is evaluating as true, which is not what I want. What am I misunderstanding? Thanks, Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP] content type header for downloading files

2003-01-29 Thread Dara Dowd
how do i examine the headers sent? - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> Date: Wed, 29 Jan 2003 20:06:47 -0500 To: "''Dara Dowd''" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: [PHP] content type header for downloading files > > $fna

RE: [PHP] content type header for downloading files

2003-01-29 Thread John W. Holmes
> $fname is the name of the file i want to download. It works in IE, as in > the name of the file to be downloaded appears correctly in the dialog box. > I changed 'application/octet' to 'application/octet-stream' and this had > no effect. Maybe find a site that works correctly on the browser in q

Re: [PHP] content type header for downloading files

2003-01-29 Thread Dara Dowd
$fname is the name of the file i want to download. It works in IE, as in the name of the file to be downloaded appears correctly in the dialog box. I changed 'application/octet' to 'application/octet-stream' and this had no effect. Dara - Original Message - From: Chris Shiflett <[EMAIL P

RE: [PHP] Using Pear Auth

2003-01-29 Thread John W. Holmes
> $a = new Auth("DB", $dsn, "loginFunction"); > > > which is causing this: > > Fatal error: Cannot instantiate non-existent class: auth in > /opt/docs/www.xxx.net/passthru.php on line 21 > > Anyone know what I'm doing wrong? Is there a better example of functional > Auth code out there? Since

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jim Lucas
why would it matter if he does it just above the place that he is going to use them? doesn't matter if he is in a function or not. the $_REQUEST var will always be available. if he calls a function then he would have to do it just inside the function or pass it to the function. Jim - Origin

[PHP] Using Pear Auth

2003-01-29 Thread joshmccormack
I'm trying to use Pear on a server that had an old version of Pear, so I put the pear directory in the directory where I'm working, and am including ini_set('include_path', 'path to pear'); at the top of my file. I then have require_once('PEAR.php'); require_once('PEAR/Command/Auth.php'

[PHP] Shared object/component equivalent on *nix

2003-01-29 Thread Luke Woollard
Has anyone got a PHP/*nix equivalent solution to the MS Shared VB Object/Component model? See: http://www.cyscape.com/products/country/docs/countryhawk/getselectlist_metho d.htm for an example of a useful component. Thanks, Luke Woollard -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
At 02:55 30.01.2003, Noah said: [snip] >I don't want to use $_REQUEST['my_passed_variable'] at all. > >Right now when I do an sql insert on my local machine I have to use the >following syntax: > >INSERT into tablename (field name list) >VALUES ($_REQUEST['va

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
Sure. In the code below, class_type is passed in the query_string (e.g. index.php?section_id=12&page_type=class_submit&class_type=apartments) Also, below sql values are sent via a post. Code Snippet *** switch($_REQUEST['class_type']) { case 'apartments';

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jason Wong
On Thursday 30 January 2003 09:55, Noah wrote: > I don't want to use $_REQUEST['my_passed_variable'] at all. > > Right now when I do an sql insert on my local machine I have to use the > following syntax: > > INSERT into tablename (field name list) > VALUES ($_REQUEST['var1'], $_REQUEST['var2'], $

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Jim Lucas
then run extract($_REQUEST); just above where you want to use the var1 var2... and it will place all the key => value pairs into the local scope. Jim - Original Message - From: "Noah" <[EMAIL PROTECTED]> To: "Philip Olson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, Janu

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
At 02:48 30.01.2003, Noah said: [snip] >Yup. Restarted Apache. > >PHP's still not evaluating the passed form vars whether register globals is >set to On or Off [snip] Just thinking the unthinkable... Most of

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
I don't want to use $_REQUEST['my_passed_variable'] at all. Right now when I do an sql insert on my local machine I have to use the following syntax: INSERT into tablename (field name list) VALUES ($_REQUEST['var1'], $_REQUEST['var2'], $_REQUEST['var3']) I just want to use $var1, $var2, $var3

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Noah
Yup. Restarted Apache. PHP's still not evaluating the passed form vars whether register globals is set to On or Off --Noah - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: "CF High" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 29,

[PHP] strange behaviour with 4.3.0 : warning of an unspecified open_basedir

2003-01-29 Thread Robert Mena
Hi, I've upgraded the php version from 4.2.2 to 4.3.0 yesterday and some of my users started complaining about errors in php scripts. The errors do not occur all the times and the messages shown are weird (for me at least) ! The user is accessing a php file located under /var/www/html/site.com/p

[PHP] PHP 4.1.2 session problem

2003-01-29 Thread Alex Shi
Hi, I am sure at least I was not a newbie in the topic I am talking about. But this problem made crazy. I was hoping for a bit of help please. The problem is: you have to make double correct logins to get into the session protected area. Here is the situation: 1. server configuration: PHP 4.1.2

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread Ernest E Vogelsinger
At 01:36 30.01.2003, CF High said: [snip] >However, setting register_globals on or off makes no difference. The >variables are still not getting evaluated [snip] I _BET_ it's register_globals. Did you restart

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Philip Olson
One too many $'s in your code, use: $_REQUEST['my_passed_variable'] This is how all arrays work, autoglobals are the same. See also: http://www.php.net/variables.external http://www.php.net/variables.predefined Regards, Philip On Wed, 29 Jan 2003, CF High wrote: > Hey all. > > T

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Leif K-Brooks
Mind giving a code snippet? Noah wrote: Thanks for the pleasant acronym, Leif. However, setting register_globals on or off makes no difference. The variables are still not getting evaluated BTW works fine on my laptop (Apache, MySql, Linux) --Noah - Original Message - From:

RE: [PHP] A way to break up the string????

2003-01-29 Thread David Freeman
G'day Scott > Just curious, is there a PHP function that will break up the > string for us? I'm not specifically having a go at you but more observing that some people use this list as a first line of question rather than doing some work themselves. Assuming that I didn't already know what fu

Re: [PHP] Form Variables not getting passed || Apache, MySql, Win2k Setup

2003-01-29 Thread Leif K-Brooks
RTFM! Your problem is register_globals. CF High wrote: Hey all. This driving me nuts: I've got Apache, MySql, and Windows 2000 running on my local machine. In order to get passed php variables evaluated, whether via a url query string, or through a form post, I have to use this syntax: $_

[PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup

2003-01-29 Thread CF High
Hey all. This driving me nuts: I've got Apache, MySql, and Windows 2000 running on my local machine. In order to get passed php variables evaluated, whether via a url query string, or through a form post, I have to use this syntax: $_REQUEST[$my_passed_variable] I have no such problem with

Re: [PHP] MySQL Madness

2003-01-29 Thread Sunfire
ok sorry to repeat everything already said - Original Message - From: Adam Voigt To: Sunfire Cc: Gibbs, Liam - SXIA ; [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 1:00 PM Subject: Re: [PHP] MySQL Madness MySQL infact perfectly understands what localhost is, exampl

RE: [PHP] Using custom "button" form element instead of standard "submit"?

2003-01-29 Thread Don Read
On 27-Jan-2003 Durwood Gafford wrote: > I can't figure out how to tell which button was pressed by a user when i'm > using a "button" instead of a standard "submit" form element. > > This works: > > > $parent will equal "foo" > > This doesn't work: > > src="icon.gif"> > $parent will equal "

[PHP] HMAC funtion other than mhash()

2003-01-29 Thread speedphreak
Ok. I know I can use the mhash() function, but my service provider doesn't have it enabled. I'm attempting to write an HMAC function for MD5. I have a good understanding of the process, but seeing as I'm a coding newb there are a couple things that are stumping me. If you need more info on what HMA

Re: [PHP] Tutorial needed

2003-01-29 Thread salamander
Hi Alberto, There are HOWTO's on this at www.iodbc.org Best regards, Andrew Hill On Wednesday, January 29, 2003, at 12:53 PM, Alberto Brea wrote: Does anybody know of an online tutorial explaining how to access ODBC databases with PHP? Thanks Alberto -- PHP General Mailing List (http://www

Re: [PHP] Email being blocked

2003-01-29 Thread Lowell Allen
> From: "Ben" <[EMAIL PROTECTED]> > [snip] > > I'm trying to send out emails from a script, using the mail() function. This > works, but only for email addresses that are in the same domain as the > website ! > > So, if the website domain that the script is running within is > www.mysite.com, t

Re: [PHP] chat rooms

2003-01-29 Thread Chris Hayes
At 20:33 29-1-03, you wrote: Does anyone have any suggestions for a good small FREe chat room to add to a family site? A friend here at work is hosting a site from home and is looking to add a chat room. Some of his site is php so if it is php based, that would be great. We even talked today a

Re: [PHP] chat rooms

2003-01-29 Thread V Dub
Go to Hotscripts.com>PHP>ScriptsandPrograms>Groupware and download PhProjekt - chat and a whole lot more Could be too much, I dunno! VW Quoting Edward Peloke <[EMAIL PROTECTED]>: ### Does anyone have any suggestions for a good small FREe chat room to add to ### a ### family site? A friend here

Re: [PHP] chat rooms

2003-01-29 Thread 1LT John W. Holmes
> Does anyone have any suggestions for a good small FREe chat room to add to a > family site? A friend here at work is hosting a site from home and is > looking to add a chat room. Some of his site is php so if it is php based, > that would be great. We even talked today about creating our own.

[PHP] chat rooms

2003-01-29 Thread Edward Peloke
Does anyone have any suggestions for a good small FREe chat room to add to a family site? A friend here at work is hosting a site from home and is looking to add a chat room. Some of his site is php so if it is php based, that would be great. We even talked today about creating our own. Thanks

[PHP] Re: GNU Readline 4 Win32

2003-01-29 Thread White Wolf
"Ojmyster" wrote: > Hi, > Is there any way I can get the 'GNU Readline' libruary on my Windows 2000 > installation of PHP4? As far as I can see its only available for *NIX OSs > and BSD. Is is available on win32? http://ftp.unicamp.br/pub/gnu-win32/release/readline/ 3rd hit on Google... WW --

[PHP] GNU Readline 4 Win32

2003-01-29 Thread OjMyStEr
Hi, Is there any way I can get the 'GNU Readline' libruary on my Windows 2000 installation of PHP4? As far as I can see its only available for *NIX OSs and BSD. Is is available on win32? Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PLEASEEE HEEEELP! CAN'T WRITE ON A FILE

2003-01-29 Thread phplam
Hello ! I'm in a mess. Please help me. Every time I tried to write with fwrite or fputs in a file, I get an error on windows nt sp6 , ie6 from "Doc. Watson" saying that Apache.exe makes an application access error . Filesystem functions: is_readable, is_writable,fopen,fclose are ok . I can create,

[PHP] Email being blocked

2003-01-29 Thread Ben
Hi, I have a very frustrating problem that I hope someone can give me an answer to. I'm trying to send out emails from a script, using the mail() function. This works, but only for email addresses that are in the same domain as the website ! So, if the website domain that the script is running wi

Re: [PHP] Problem with Date (2003-03-30)

2003-01-29 Thread Dale Schell
All parameters whould be integers. Unquote them and use intval to strip the leading zeros. On 1/29/03 11:51, "Gareth Mulholland" <[EMAIL PROTECTED]> wrote: > I'm having problems with mktime and Midnight on 30th March 2003. > > The code I'm using is: > > echo mktime(0,0,1,'03','29','2003'); >

[PHP] Re: Lots of Variables

2003-01-29 Thread Ben
Cesar, the first thing you need to work out is a data structure. Start with your database design. I would envisage something along the lines of : TABLE : Questions FIELDS : question_id, question_text TABLE : AnswerOptions FIELDS : answer_id, question_id, answer_text TABLE: QALink FIELDS: answer_

RE: [PHP] Problem with Date (2003-03-30)

2003-01-29 Thread Johnson, Kirk
> -Original Message- > From: Gareth Mulholland [mailto:[EMAIL PROTECTED]] > > I'm having problems with mktime and Midnight on 30th March 2003. > > The code I'm using is: > > echo mktime(0,0,1,'03','29','2003'); > echo mktime(0,0,1,'03','30','2003'); > echo mktime(0,0,1,'03',

[PHP] Thank you!!!

2003-01-29 Thread Sabina Alejandr Schneider
Hello to everybody!!! this time I'm writing to you to thank you all for the help you have iven to me this last days. I'm very satisffied with this language and with the group of persons that are working here. Thank you once more for your time and help! :-) Sabina Alejandra Schneider [EMAIL PRO

Re: [PHP] MySQL Madness

2003-01-29 Thread Adam Voigt
MySQL infact perfectly understands what localhost is, example: GRANT ALL PRIVILEGES ON dbname.* TO bob@localhost IDENTIFIED BY 'password'; The above will work fine, and aslong as you connect in your PHP with the username "bob", and host "localhost" with pass "password" you'll be fine.

[PHP] Problem with Date (2003-03-30)

2003-01-29 Thread Gareth Mulholland
I'm having problems with mktime and Midnight on 30th March 2003. The code I'm using is: echo mktime(0,0,1,'03','29','2003'); echo mktime(0,0,1,'03','30','2003'); echo mktime(0,0,1,'03','31','2003'); but the result is: 1048896001 -3661 1049065201 Therefore date is giving

[PHP] Tutorial needed

2003-01-29 Thread Alberto Brea
Does anybody know of an online tutorial explaining how to access ODBC databases with PHP? Thanks Alberto

Re: [PHP] MySQL Madness

2003-01-29 Thread Sunfire
hi.. i came across the same problem before and it was well lets say i probably dont have any hair left (from pulling it out) hehe.. anyways you need to go into the grant tables and look to see what is set up for users.. most likely you dont have a root@localhost user because as far as i understand

RE: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-29 Thread John W. Holmes
> I was thinking of inserting a check on each option, but I thought there > had to be a different way. > I've received ideas of storing the option values in an array and > creating a function to generate that dropdown by grabbing values out of > the array, so I want to go with that because that is

[PHP] Lots of Variables

2003-01-29 Thread César Aracena
Hi all, I'm about to make a site and I need all the help I can to get started. This can be a long e-mail so please be patient and read all of it :-) I will create an "intelligent" PHP script that will guide the visitors through several questions, which will lead to different options, depending on

Re: [PHP] Remembering which option in a SELECT tag the user had chosen

2003-01-29 Thread Webapprentice
Hi John, I was thinking of inserting a check on each option, but I thought there had to be a different way. I've received ideas of storing the option values in an array and creating a function to generate that dropdown by grabbing values out of the array, so I want to go with that because that i

Re: [PHP] PHP Crashing on iPlanet 6sp4 Enterprise, Solaris 8, PHP 4.3.0

2003-01-29 Thread Maxim Maletsky
why don't you check the bug database at bugs.php.net and investigate whether there is anything similar to this? If not, test well, combine your information together (specs, code, system, trace/logs etc) and submit it as a bug. Unless, this is not a bug :) -- Maxim Maletsky [EMAIL PROTECTED] "

Re: [PHP] Multiple Emails

2003-01-29 Thread David T-G
John, et al -- ...and then 1LT John W. Holmes said... % % Is anyone else getting multiple emails from this list? I'm about to jump on % people for asking the same question 3 or 4 times, but maybe it's just me % getting copies of the same message. Check the Message-ID: to see if it's really the s

Re: [PHP] new

2003-01-29 Thread Maxim Maletsky
and the question is -- Maxim Maletsky [EMAIL PROTECTED] Ysrael Guzmán <[EMAIL PROTECTED]> wrote... : > Warning: Failed opening 'cliente.php' for inclusion > (include_path='.;c:\php4\pear') in Unknown on line 0 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, v

[PHP] fsockopen(); Connection closed, when an endless loop triggers maxexecutiontime before fclose()?

2003-01-29 Thread jochen schultz
Hi, i used the function fsockopen() in a script and produced an endless loop with an output of error messages, when i tried to evaluate the returnvalues of a request. What happens to the open socketconnection now? What happens to the loop, does it stop after 30 seconds time_limit or does the ser

Re: [PHP] Multiple Emails

2003-01-29 Thread Davy Obdam
Hi John, Same thing here, sometimes i think havent i read this before??.. Best regards, Davy Obdam 1LT John W. Holmes wrote: Is anyone else getting multiple emails from this list? I'm about to jump on people for asking the same question 3 or 4 times, but maybe it's just me getting co

[PHP] PHP Crashing on iPlanet 6sp4 Enterprise, Solaris 8, PHP 4.3.0

2003-01-29 Thread Dilts, John
I get this error after php executes a script a few times. This doesn't seem to reproduce under any certain conditions, typically within a few hits though. Warning: Unknown(/local/home/cxadmin/content/Sites/Site01/DocumentRoot/phpinfo.php): failed to create stream: Too many open files in Unknown o

Re: [PHP] Advice on uploaded files

2003-01-29 Thread Ernest E Vogelsinger
At 15:54 29.01.2003, Vladimir Galkov spoke out and said: [snip] > Me too. I add tracks to DB only and store images as independent files. My >experiments with storing images in DB shows large memory use wich slow down >other processes (especialy if I need to c

[PHP] audio file upload and php versions

2003-01-29 Thread Kendal
Hi, I put together a simple file upload example that functions on my site; however, a user recently pointed out that it was not working in their PHP environment. The problem was that the uploaded files were not showing up in their "uploads" directory. I believe the user had file/directory read/w

Re: [PHP] new

2003-01-29 Thread Ernest E Vogelsinger
At 15:51 29.01.2003, Ysrael Guzmán spoke out and said: [snip] >Warning: Failed opening 'cliente.php' for inclusion >(include_path='.;c:\php4\pear') in Unknown on line 0 [snip] and? -- >O Ernest E. Vogelsinger

Re: [PHP] Multiple Emails

2003-01-29 Thread Ernest E Vogelsinger
At 15:47 29.01.2003, 1LT John W. Holmes spoke out and said: [snip] >> are all your email duplicated? if people are replying to a message you >sent >> you are probably getting one copy from them and one from the list. > >No, it's not that. I'm talking about j

Re: [PHP] Warning: Failed opening

2003-01-29 Thread Rick Emery
index.php is not in your include path; that is, not in working directory nor c:\hp4\pear. Where is it? - Original Message - From: "Ysrael Guzmán" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:54 AM Subject: [PHP] Warning: Failed opening This is my prob

Re: [PHP] A way to break up the string????

2003-01-29 Thread Øyvind Vestavik
check out the explode function vennlig hilsen Øyvind On Wed, 29 Jan 2003, Scott Fletcher wrote: > Just curious, is there a PHP function that will break up the string for us? > > Here's the example > > --clip-- > //Original > $name = "Jennifer B Cuff"; > > //Whatever is to be end result of the o

Re: [PHP] MySQL Madness

2003-01-29 Thread Mike Vanecek
If MySQL is configured on your system correctly, you need a password in your script. I'm curious, though, why you're accessing it as root? Usually I create a user account in mysql and grant only the priviledges needed for that account. It may be a mute point, but if a bug were to crop up and yo

Re: [PHP] A way to break up the string????

2003-01-29 Thread Scott Fletcher
> * if there is something inbetween it's probably all middle names (allow for > several middle names for catholic dutch people that tend to have names such > as Wilhemus Antonius Johannes Maria den Braber) > Curse those people with double back names, like 'den Braber' here. Or > spaced first names.

[PHP] Installation & Configuration Question

2003-01-29 Thread Mike At Spy
Has anyone ever had an issue where PHP, for whatever reason, stopped .htaccess files from working? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A way to break up the string????

2003-01-29 Thread Adam Voigt
Don't forget, if you just want to look for word break's (spaces), instead of exploding the data then doing a count, you could just: $wordcount = (substr_count($name," ")+1); On Wed, 2003-01-29 at 10:03, Scott Fletcher wrote: Wow!! A lot easier. I think I can do the counting to

Re: [PHP] A way to break up the string????

2003-01-29 Thread R'twick Niceorgaw
how about $name_array = explode(" ",$name); $first_name = $name_array[0]; $last_name = $name_array[count($name_array) - 1]; unset($name_array[0]); unset ($name_array[count($name_array)]); $middle_name = implode(" " ,$name_array); -R'twick -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] A way to break up the string????

2003-01-29 Thread Chris Hayes
At 15:52 29-1-03, you wrote: Just curious, is there a PHP function that will break up the string for us? Here's the example --clip-- //Original $name = "Jennifer B Cuff"; //Whatever is to be end result of the original $first_name = "Jennifer"; $middle_name = "B"; $last_name = "Cuff"; --clip--

Re: [PHP] MySQL Madness

2003-01-29 Thread Rick Emery
If you're using root, then you must use the root password in mysql_connect(). - Original Message - From: "Gibbs, Liam - SXIA" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:45 AM Subject: [PHP] MySQL Madness First off, when executing this command: $conn

Re: [PHP] A way to break up the string????

2003-01-29 Thread Scott Fletcher
Wow!! A lot easier. I think I can do the counting to find out if which go which. For example, "Jennifer B Cuff" as oppose to "Jennifer Cuff". Say, I find 3 words instead of 2 then do something to it. If 2 then do something to it. Etc. I do realize that it is possible for there to be a logic

  1   2   >