[PHP] fopen failing, permission denied

2006-02-28 Thread Dan Baker
I have the following code snippet: $h = fopen($path/file.txt, 'x+'); And it generates the following error: Warning: fopen(/home/./myarea/file.txt): failed to open stream: Permission denied The path is correct, but the php process doesn't seem to have file permissions in the folder. Is

RE: [PHP] $_POST to function?

2006-02-24 Thread Dan Parry
Why are you passing the POST array? As it's superglobal why not just work directly on it within the function? Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Jason Gerfen

Re: [PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-23 Thread Dan Rossi
is a problem, it has underscores, but there is probably other things in this. _%E5%D4%13%82%C9%DFN%5EFs%5E47%B2v%2F%D7%A4%0C%C6%9EnJ I'd base64 encode that first then urlencode :) On 23/02/2006, at 6:01 PM, Dan Rossi wrote: Hi ive been trying to find answers with no luck. I am sending a urlencoded

[PHP] base64_encode, forward slashes and mod_rewrite

2006-02-23 Thread Dan Rossi
Continueing on my prior problem, Ive discovered that base64_encode adds forward slashes in its encoded string, when its urlencoded it becomes something like /feeds/UmFuZG9tSVZd%2FMChU7sMQqdUi%2FrgYHD7 mod_rewrite doesnt seem to like the %2F in the string and fails with a 404 as it doesnt

Re: [PHP] base64_encode, forward slashes and mod_rewrite

2006-02-23 Thread Dan Rossi
characters. On 24/02/2006, at 10:31 AM, Dan Rossi wrote: Continueing on my prior problem, Ive discovered that base64_encode adds forward slashes in its encoded string, when its urlencoded it becomes something like /feeds/UmFuZG9tSVZd%2FMChU7sMQqdUi%2FrgYHD7 mod_rewrite doesnt seem to like

Re: [PHP] parse_url not parsing hosts with www properly in php 5.1.2

2006-02-23 Thread Dan Rossi
On 23/02/2006, at 8:45 PM, Jochem Maas wrote: Dan Rossi wrote: Ok it looks like when i exploded the urls by a comma, one has space exploding the urls??? - this list is not called 'php-psychics' for a reason. i.e. don't assume we know that you happen to have a string which contains 'urls

Re: [PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-23 Thread Dan Rossi
and mod_rewrite Somehow this part of the string is a problem, it has underscores, but there is probably other things in this. _%E5%D4%13%82%C9%DFN%5EFs%5E47%B2v%2F%D7%A4%0C%C6%9EnJ I'd base64 encode that first then urlencode :) On 23/02/2006, at 6:01 PM, Dan Rossi wrote: Hi ive been trying to find

RE: [PHP] Session problems [SOLVED]

2006-02-22 Thread Dan Parry
() evaluated to false but the number of records is 1 return true /solution And there we have it... nearly drove me nuts but I got there in the end Cheers Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original

[PHP] Issue with encrypted string created with Crypt_CBC and urls and mod_rewrite

2006-02-22 Thread Dan Rossi
in mod_rewrite ?? I think however if i use the request_uri things could break a little. Let me know. Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] parse_url not parsing hosts with www properly in php 5.1.2

2006-02-22 Thread Dan Rossi
Ive just discovered a strange issue where parse_url is not splitting up the url properly. in the host key its returning like //www.php.net where the url is http://www.php.net. any ideas ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parse_url not parsing hosts with www properly in php 5.1.2

2006-02-22 Thread Dan Rossi
Ok it looks like when i exploded the urls by a comma, one has space padding, i had to trim it first, the array was coming out like host=__http path=//www.thedomain.com :\ On 23/02/2006, at 1:05 PM, Chris wrote: Dan Rossi wrote: Ive just discovered a strange issue where parse_url

Re: [PHP] Issue with encrypted string created with Crypt_CBC and urls and mod_rewrite

2006-02-22 Thread Dan Rossi
It also seems that any forward slash being encoded if it encodes, mod_rewrite doesnt like, therefore I have to split up the urls using parse_url, but it seems it still doesnt like the query part and some special characters like ampersands and equals ? On 23/02/2006, at 12:30 PM, Dan Rossi

[PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-22 Thread Dan Rossi
Hi ive been trying to find answers with no luck. I am sending a urlencoded encrypted string made with mcrypt. what is happening is there is somehow special characters that mod_rewrite doesnt like so it wont find a regex match properly with this rule RewriteRule ^feeds/(.*)$ refer.php?$1

Re: [PHP] encrypted urls, mcrypt and mod_rewrite

2006-02-22 Thread Dan Rossi
Somehow this part of the string is a problem, it has underscores, but there is probably other things in this. _%E5%D4%13%82%C9%DFN%5EFs%5E47%B2v%2F%D7%A4%0C%C6%9EnJ On 23/02/2006, at 6:01 PM, Dan Rossi wrote: Hi ive been trying to find answers with no luck. I am sending a urlencoded

[PHP] Re: Reading binary http post

2006-02-21 Thread Dan Baker
Dirk Vanden Boer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a C++ application that posts binary data to a php script that I created using libcurl. Everything works fine except when my binary data happens to start with the '' symbol. In that case I can't read the

RE: [PHP] Re: need a php multiple/mysql choice quiz

2006-02-20 Thread Dan Parry
what kind of mushrooms? rainbow colored ones =) Think they're illegal in the UK... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session problems

2006-02-16 Thread Dan Parry
on line 0 I've contacted my hosting company regarding this but currently they don't seem to know the cause I've Googled but I can't find anything I can use Thanks in advance :-) Dan - Dan Parry Senior Developer Virtua Webtech

RE: [PHP] Session problems

2006-02-16 Thread Dan Parry
: [PHP] Session problems What is the code that generates this? -Original Message- From: Dan Parry[EMAIL PROTECTED] Sent: 16/02/06 4:50:51 PM To: php-general@lists.php.netphp-general@lists.php.net Subject: [PHP] Session problems Hi all I've been

RE: [PHP] Clear POST variables

2006-02-16 Thread Dan Parry
Submit the data to a page that just inserts it into the DB (validating it first, natch) then do a header(location) to the thank you (or whatever) page This also fixes 'page expired' warnings HTH Dan -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: 16 February 2006

[PHP] Re: Ternary operators

2006-02-15 Thread Dan Baker
Carl Furst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey all, Question about ternary operators. You can't really use functions INSIDE ternary operators, right? They can only be tokens and operators? You *can* use functions inside of ternary operators, as long as they return

[PHP] Hardened patch and Zend optimizer

2006-02-14 Thread Dan Rossi
hi there i was wondering if anyone has an update to if the zend optimizer will work with the hardened patch installed ? From my understanding closed source extensions arent possible, but maybe they fix this ? Let me know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Blogger post failed?

2006-02-14 Thread Dan McCullough
Got one yesterday, was very odd. On 2/14/06, Kevin Kinsey [EMAIL PROTECTED] wrote: Jay Blanchard wrote: Is anyone else getting these messages? Yes. Very annoying. Yes. Barry wrote: ] Sometimes. ] Proably the server is reaching its limits :P Seems doubtful; if I read the

Re: [PHP] What's a Blog?

2006-02-14 Thread Dan McCullough
Or code and give back to the project On 2/14/06, Duncan Hill [EMAIL PROTECTED] wrote: On Tuesday 14 February 2006 16:18, Kim Christensen wrote: On 2/14/06, Duncan Hill [EMAIL PROTECTED] wrote: WordPress is free, has a neat WYSIWYG editor in version 2, and has a good support community. 5

RE: [PHP] Converting piped data to values from html to phpcgi

2006-02-13 Thread Dan Parry
]); // create assoc. array ${$split[0]} = urldecode($split[1]); // form the variables } echo $sender_name . 'br/' . $arr['sender_name']; ? That routine should create variables with the names of the arguments as well as an associative array of the string HTH Dan -Original Message- From

Re: [PHP] What's a Blog?

2006-02-13 Thread Dan McCullough
Wordpress is free and easy to setup. On 2/13/06, Sam Smith [EMAIL PROTECTED] wrote: I have a client who wants to blog or he wants a blog on his website. I don't know anything about these blogs except it's sort of a fad I think. Isn't a blog just a simple web form with a big textarea on the

RE: [PHP] Re: Newbie Question Can't insert values into MySQL DB via PHP

2006-02-10 Thread Dan Parry
Also when specifying the field list (and table name) it may be a better idea to wrap the values in backticks (`) rather than quotes (') Always works for me Dan -Original Message- From: Barry [mailto:[EMAIL PROTECTED] Sent: 10 February 2006 10:31 To: php-general@lists.php.net Subject

Re: [PHP] php versions between os/platform

2006-02-10 Thread Dan Trainor
pedro mpa wrote: Greetings! I am building a website using PHP 5.1.2 and MySQL 5.0.18 and I am using windows xp with IIS. All the hosting companies I have contacted are using php 4.x.x and mysql 4.x.x or 3.x.x, on linux I suppose. Are php versions the same for every os/platform? Thanks in

[PHP] Re: define() or $variable for application settings?

2006-02-09 Thread Dan Baker
Matt Arnilo S. Baluyos (Mailing Lists) [EMAIL PROTECTED] wrote in message I have a config.inc.php file which basically contains all the configuration info that the applications needs (directory/file locations, database credentials, etc). The information there is set using the define() function.

RE: [PHP] suggest a cart...

2006-02-08 Thread Dan Parry
Zen Cart http://www.zen-cart.co.uk/ Open source and very well supported... lots of user contributions too Dan -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 08 February 2006 13:08 To: php-general@lists.php.net Subject: [PHP] suggest a cart... Hi, I am looking

RE: [PHP] suggest a cart...

2006-02-08 Thread Dan Parry
(I hope this message works... mail server has been playing up) Zen Cart http://www.zen-cart.com Open source, great support and user contribs HTH Dan -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 08 February 2006 13:08 To: php-general@lists.php.net Subject: [PHP

Re: [PHP] Recompile PHP on pre-installed system

2006-02-08 Thread Dan McCullough
you can use php-odbc make sure you have unixODBC or like install on the system, once you do that its a piece of cake, been doing that here for a few months. On 2/8/06, Justin Cook [EMAIL PROTECTED] wrote: Yes, we are using RHE 4 with a support contract. I need to get db2 support compiled in so

[PHP] Re: The Big Date and Time Debacle

2006-02-07 Thread Dan Baker
Stephen Martindale [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having great difficulty understanding dates and times with PHP and MySql. As far as I understand them, the PHP date and time construct is timezone and DST aware, but MySql's DATETIME and TIMESTAMP fields are

[PHP] Suggested product for ticket support and project management

2006-02-07 Thread Dan Rossi
to build it yourself but there is no time allocated to do so. Let me know thanks. Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] system('bell'); ?

2006-02-04 Thread Dan Harrington
Ask not for whom the bell tolls, it tolls for thee! -Original Message- From: Gerry Danen [mailto:[EMAIL PROTECTED] Sent: Saturday, February 04, 2006 12:00 PM To: tedd Cc: php-general@lists.php.net Subject: Re: [PHP] system('bell'); ? bell is his C program... :) Outputs an ascii 7

Re: [PHP] Preparing site content for RSS XML feed

2006-02-02 Thread Dan Rossi
would enclosing in the cdata work ? On 02/02/2006, at 7:11 PM, Murray @ PlanetThoughtful wrote: Hi All, I currently generate a simple rss.xml file for syndication from my site, containing nothing more than the subject of the post and a link to the article on my site. I'd like to syndicate

[PHP] Re: How to destroy HTTP authentication (from PHP)?

2006-02-01 Thread Dan Baker
Olaf Greve [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, Alright: here's a bit of a challenge (so as to avoid the word issue) ;) my colleagues have run into previously: how to kill HTTP authentication... dumb answer The browser only remembers one authentication. So,

Re: [PHP] Google using PHP @ Google Store

2006-01-25 Thread Dan Lowe
is this is an outsource deal Google did because they don't want to get into the business of manufacturing t-shirts and coffee mugs. If you do a Google search for Google Store this site will show up as a sponsored link. -dan -- Any event, once it has occurred, can be made to appear inevitable

[PHP] Re: forwarding from virtual email account to real email account

2006-01-25 Thread Dan Baker
Binay [EMAIL PROTECTED] wrote: Hi All, Is it possible that we create a virtual email account(no physical existence) e.g [EMAIL PROTECTED] which will be associated with a real email account e.g. [EMAIL PROTECTED] so that if any body sends the email to virtual email account [EMAIL

RE: [PHP] Adventures in Cookies

2006-01-23 Thread Dan Parry
it) Either way I don't believe this to be a PHP specific issue :) Just my tuppence worth Dan -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 23 January 2006 16:31 To: php-general@lists.php.net Subject: [PHP] Adventures in Cookies Hi all: While I'm sure this is obvious

[PHP] Re: New to PHP

2006-01-19 Thread Dan Baker
webserver/PHP environment, like others have suggested (2) Made yourself a small test bed are on your external server, upload your files, and try them out. If you have a fast internet connection, this usually isn't too bad. Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Dan Parry
Or my sense of sailing to deadlines :) -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: 18 January 2006 16:11 To: php-general@lists.php.net Subject: Re: [PHP] help me pllzz Jay Blanchard wrote: [snip] i am having 2 combo box one for city another one for

RE: [PHP] Image size?

2006-01-11 Thread Dan Parry
I would say this is what you need http://uk2.php.net/manual/en/function.getimagesize.php Dan -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: 11 January 2006 12:22 To: php-general@lists.php.net Subject: [PHP] Image size? Hello, Can I get pixel sizes from

RE: [PHP] include() problem

2006-01-09 Thread Dan Parry
Check this out http://uk2.php.net/reserved.variables DOCUMENT_ROOT will give you the root of your site -Original Message- From: Nuno Trancoso [mailto:[EMAIL PROTECTED] Sent: 09 January 2006 14:56 To: php-general@lists.php.net Subject: [PHP] include() problem This may sound dumb, but i

RE: [PHP] php / JS / DOM question

2005-12-29 Thread Dan Uyemura
Try: input type=text name=q id=q/input input type=button onclick=drawImg('A',document.getElementById('q').value); value=Search/input I didn't test this, but I think it'll work... -Original Message- From: jonathan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 29, 2005 1:45 PM To:

[PHP] Symbolic Folders and Content Translation

2005-12-28 Thread Dan Jallits
I want to be able to determine the browser language and redirect to the correct web folder. However, I want this folder to be symbolic, since I do not want multiple copies of the same information. Then the next step would be to pass the browser language to a service like Google Translate! -- Best

[PHP] load testing tools

2005-12-27 Thread Dan McCullough
Anyone have any opinions or suggestions on cheap/free load testing tools for dynamic sites? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions...

2005-12-22 Thread Dan Parry
been answered or this is a halfwitted question Dan

[PHP] Free Hosting?

2005-12-22 Thread Dan Uyemura
All - In my searches of a new host I have found this.. and in the spirit of the holidays I will kindly share with everyone here. http://www.365yearsfree.com http://www.365yearsfree.com/ I guess by finding the hot host everyday you get entered into a drawing to win a free year of hosting,

RE: [PHP] can someone explain this query to me

2005-12-20 Thread Dan Parry
WHERE id IN (1,2,3) Is the same as saying WHERE id = 1 OR id = 2 OR id = 3 Few more details in this link http://www.w3schools.com/sql/sql_in.asp HTH Dan -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 20 December 2005 12:07 To: php-general@lists.php.net Subject: [PHP

Re: [PHP] Re: asianwhiteskin beauty product

2005-12-20 Thread Dan McCullough
Maybe this is a disk space product, increases disk space on all types of drives. On 12/20/05, Michelle Konzack [EMAIL PROTECTED] wrote: Am 2005-12-15 15:00:41, schrieb Dan McCullough: Is this some sort of new Zend product? :) Can this implemented? I have only 75A and do not like become

RE: [PHP] Can anyone recommend a hosting company

2005-12-16 Thread Dan Harrington
I'd recommend www.xiolink.com Thanks Dan -Original Message- From: Marty [mailto:[EMAIL PROTECTED] Sent: Friday, December 16, 2005 9:10 AM To: php-general@lists.php.net Subject: [PHP] Can anyone recommend a hosting company Can anyone recommend a fair priced, reliable hosting company

Re: [PHP] asianwhiteskin beauty product

2005-12-15 Thread Dan McCullough
Is this some sort of new Zend product? :) On 12/15/05, Michelle Konzack [EMAIL PROTECTED] wrote: Am 2005-12-13 10:09:41, schrieb Raz: Can I have some breast enlarger please? :-) Me too... Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/

RE: [PHP] 1 ip address go here all others go here

2005-12-13 Thread Dan Parry
[snip] In short, it cannot really be trusted. notice the last 7 words [/snip] Any external data introduced into a script can't be trusted... including $_GET and $_POST That doesn't mean they shouldn't be used... just used carefully Also if you want to use the IP address maybe

[PHP] Re: href links not working in XP

2005-12-12 Thread Dan Baker
Marlin Unruh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I apologize because I posted this question earlier under Re: [PHP] href difference between OS's, and am still struggling with the problem. I think I have fished all the way around the lake, with no results. I cannot get

[PHP] Re: href difference between OS's.

2005-12-12 Thread Dan Baker
Marco Kaiser [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] just link directly to the specific file like a href=C:\path\to\your\file.exeLink Local/a NOTE: XP SP2 will *not* open this file. The new security will not open files on local drives. You will need to map a network drive to

RE: [PHP] PHP/MySql noob falls at first hurdle

2005-12-09 Thread Dan Parry
Hi [snip] ? while($ouput_row = mysql_fetch_array($result)) { ? [/snip] Try: while($ouput_row = mysql_fetch_array($result, MYSQL_ASSOC)) [snip] ?=$output_row[projTitle]?br / [/snip] You have missed the ; (semicolon) after [projTitle] also Dan -Original Message- From: Paul

RE: [PHP] Re: PHP/MySql noob falls at first hurdle

2005-12-09 Thread Dan Parry
[snip] Hi Paul, Why you are closing your connection before finishing your work on the database? Zareef Ahmed [/snip] I think Zareef has spotted the most important problem here Try removing the mysql_close() and trying it Dan -Original Message- From: Paul Jinks [mailto:[EMAIL

Re: [PHP] PHP/MySql noob falls at first hurdle

2005-12-09 Thread Dan McCullough
I would hate to see a time clock that tabulated how many hours I wasted with typos and stupid things like that. On 12/9/05, Rory McKinley [EMAIL PROTECTED] wrote: Paul Jinks wrote: Rory McKinley wrote: Paul Jinks wrote: snip ? while($ouput_row =

Re: [PHP] Redirects Safari vs Others

2005-12-06 Thread Dan Lowe
On Dec 6, 2005, at 2:55 PM, Mark Steudel wrote: Sorry it took me so long, I wasn't sure where the problem lay and couldn't get you the exact code, but I figured out why (sorta) this was happening. // Causes only Safiri to bomb header(location:

[PHP] PHP5 Soap extension and generate wsdl

2005-12-06 Thread Dan Rossi
Hi there, im just wondering if its possible to setup your web service and let it generate a wsdl file for clients when u request the script with a wsdl flag like with nusoap ? Im rather not having to code an entire wsdl document for the web service if possible :\ -- PHP General Mailing List

RE: [PHP] Browser Control Help

2005-12-05 Thread Dan Parry
Rather than trying to prevent theft of your images why not create a little app that steganographs some copyright information... With some thought it's possible to hide textual content within an image At least then you can prove it was yours... Just a thought Dan -Original Message- From

[PHP] memory leaks with 5.1 and osx

2005-12-05 Thread Dan Rossi
Ive discovered these errors in the apache error logs, is this anything serious ? Is there hardlinks to the source ? /usr/share/sources/php/php-5.1.1/Zend/zend_compile.c(1862) : Freeing 0x021B4E78 (140 bytes), script=thescript.php /usr/share/sources/php/php-5.1.1/Zend/zend_hash.c(248) : Actual

[PHP] Re: PDF Generator

2005-12-04 Thread Dan Harrington
, but spending $$ is fine too. Thanks Dan Rick Lim wrote: What is the best FREE pdf generator for PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail SMTP settings

2005-12-03 Thread Dan
Yes that does work but the return path and my mail headers still show the main domain. My point is that PHP should be acessing my SMTP server specified but it is using the default local host instead. Dan T On Dec 3, 2005, at 11:06 AM, Curt Zirzow wrote: On Sat, Dec 03, 2005 at 12:45:24AM

[PHP] Mail SMTP settings

2005-12-02 Thread Dan
mail.wavefront.ca ([unix socket]) by mail.wavefront.ca (Cyrus v2.2.12-OS X 10.4.0) with LMTPA; Fri, 02 Dec 2005 12:45:07 -0700 I've also tried the IMAP functions but also with no success. I basically want the mail to look as though it was from the other domain. Dan T -- PHP

[PHP] Re: Re: Re: Re: better way to mix html and php code?

2005-11-22 Thread Dan Baker
Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am interested in how this works, but am skeptical. No problem, the programming in X template instead of programming in PHP objection is raised often. I've given previous arguments about the merits of templates and

[PHP] Re: Re: better way to mix html and php code?

2005-11-21 Thread Dan Baker
Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is an example of a layout template: - jinn:prepend/ html head titlejinn:pageTitle//title style type=text/css !--

[PHP] Re: Re: Re: better way to mix html and php code?

2005-11-21 Thread Dan Baker
Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 2005-11-21 at 13:41, Dan Baker wrote: There are two ways for retrieving data. The first you have seen is the tag form, but obviously that's a problem when the data goes into a tag :) For this there is the embed

[PHP] Re: Re: Re: better way to mix html and php code?

2005-11-21 Thread Dan Baker
Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Mon, 2005-11-21 at 13:41, Dan Baker wrote: I'm curious ... how do you generally handle forms and urls? What if the programmer wants to add a link, something like: a href=page.php?op=Viewid=1234View my info/a How

Re: [PHP] testing on a local server

2005-11-18 Thread Dan McCullough
Well Jay was showing you where you could pick up everything you needed. On Windows XP the IIS server is not installed by default you have to select it as a component to install, so I'm not sure if you would have IIS installed either. If you want a simple and quick solution go to the link that

Re: [PHP] Testing on the local server

2005-11-18 Thread Dan McCullough
Coincidence On 11/18/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] I use Dreamweaver and I try to test the files on the local host, but the page doesn't even show up. This maybe a stupid question..but to test on a local server, would I just need to download PHP? [/snip] Deja Vu?

Re: [PHP] Cookies

2005-11-17 Thread Dan McCullough
Tried and true is to set a cookie and then attempt to read it, if you cant read it then cookies are not on. On 11/17/05, Ben Miller [EMAIL PROTECTED] wrote: Is there a way to test if a user has cookies turned on or not so that I can use cookies if the user allows them and use the URL if the

Re: [PHP] Cookies

2005-11-17 Thread Dan McCullough
You can check on every page load, but I'm sure thats over kill for most public facing sites to catch some Yahoos who have too much time on their hands. On 11/17/05, Richard Davey [EMAIL PROTECTED] wrote: Hi Ben, Thursday, November 17, 2005, 3:26:04 PM, you wrote: Is there a way to test if a

Re: Re[2]: [PHP] Cookies

2005-11-17 Thread Dan McCullough
:) why of course On 11/17/05, Richard Davey [EMAIL PROTECTED] wrote: Hi Dan, Thursday, November 17, 2005, 3:56:43 PM, you wrote: You can check on every page load, but I'm sure thats over kill for most public facing sites to catch some Yahoos who have too much time on their hands

[PHP] Re: Formatting of a number

2005-11-17 Thread Dan Baker
Scott Parks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi- I have a number that I am trying to format. It is data coming from a main frame and has 8 characters assigned to it (6 and two decimal places). I have zerofill set up in MySQL on this field and am working on the

[PHP] Re: better way to mix html and php code?

2005-11-17 Thread Dan Baker
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi to all, always wondered what's better way to mix html and php code. Here are three ways of the same code. Which one you prefer? (And why, of caurse :)) (snip) I think third solution would be the best solution? IF you are doing a

[PHP] Re: Re: better way to mix html and php code?

2005-11-17 Thread Dan Baker
Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 2005-11-17 at 14:34, Dan Baker wrote: [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi to all, always wondered what's better way to mix html and php code. Here are three ways of the same code

Re: [PHP] Error Messages, Windows, and Tequila

2005-11-16 Thread Dan McCullough
Also check to make sure that its the right php.ini file, I have had a problem in the past when the installer has put the php.ini file in the WINDOWS directory and there is an existing one in the PHP directory as well. I would check phpinfo and see where the php.ini file is located. On 11/16/05,

Re: [PHP] Developement Environment for PHP?

2005-11-16 Thread Dan McCullough
Zend Studio PHPEclipse LAMP + Notepad :) On 11/16/05, Tom Cruickshank [EMAIL PROTECTED] wrote: Hello, I'm not sure if this has been asked before or not (probably has) but I can't seem to find it. I'm looking for a Development Environment for PHP other then vi. What I'm looking for is an

Re: [PHP] Sending arrays from page to page

2005-11-15 Thread Dan Lowe
$_SESSION['blah'] = 'foo'; $_SESSION['count'] = 5; $_SESSION['myarray']['five']++; // five is now 6 ? -dan -- To announce that there must be no criticism of the President, or that we are to stand by the President, right or wrong, is not only unpatriotic and servile, but is morally treasonable

Re: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Dan Lowe
$file.tmp sed -e s/?$/?php/g $file.tmp $file rm $file.tmp done ... Wouldn't catch this case: ? echo $foo ? -dan -- Black holes are where God divided by zero. -Steven Wright -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Create a numeric hash from a text string?

2005-11-14 Thread Dan Baker
Quick-n-easy: int crc32 ( string str ) -- make sure to read the manual about the unsigned/signed issue. DanB Brian Dunning [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone know if there's a handy way to create a numeric hash from a text string? I'm trying to generate

[PHP] Re: Good user comment system?

2005-11-14 Thread Dan Baker
How about good ol' phpbb? http://www.phpbb.com/ DanB Guy Brom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, Anyone familiar with a good user-comment system for PHP, preferably one that works with adodb and has thread-like design (where users can answer each other).

[PHP] Zend + Eclipse + Standized Framework

2005-11-13 Thread Dan Rossi
Just found this article via phpeclipse.de stating Zend will be including Eclipse framework in their development schedules :) http://www.zend.com/news/zendpr.php?id=109 Id like to know more about this standardized application framework. I wonder if it includes the pear framework, or compiled

Re: [PHP] Cannot find bison and Flex even when those are installed

2005-11-11 Thread Dan McCullough
You might have to change the configure option from with-bison=/usr/local/bison to with-bison=/usr or even with-bison= Happens to me alot. This would also be a better email for the PHP INSTALL list On 11/11/05, Jurgen [EMAIL PROTECTED] wrote: Dear group I tried to install php 4.3.11 on Linux

Re: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-10 Thread Dan McCullough
That could get messy On 11/10/05, George Pitcher [EMAIL PROTECTED] wrote: It means that you have two colons not being used correctly its a good thing this mailinglist is not about the practice of medicine ;-) If it was, I suppose you would recommend 'colonic irrigation' then?

Re: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-10 Thread Dan McCullough
LOL coding mirrors life. On 11/10/05, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] It means that you have two colons not being used correctly its a good thing this mailinglist is not about the practice of medicine ;-) If it was, I suppose you would recommend 'colonic

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 8:36 AM, Richard Lynch wrote: On Wed, November 9, 2005 10:36 pm, Dan Rossi wrote: Hi there, ive been having issues with mod_rewrite and apache2 with PHP 5.1RC1. I have googled the php bugs and people have been experiencing the same issue however the php people cant see

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 8:53 AM, Max Belushkin wrote: I've been having a problem with PHP 4.4.1 and mod_rewrite, which, as Geert Booster kindly pointed out, has been reported on http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/ 027038.html, which also has a link to the PHP bug

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Dan Rossi
On 11/11/2005, at 1:21 PM, Curt Zirzow wrote: Of course i dont get what your trying to do, the rewriterule doesn't match your description of what you said. Ok i am vague at most times, i wasnt going to give an exact example as it will give away some of the systems secret and not so good

Re: [PHP] Unable to send variables to MySQL table

2005-11-09 Thread Dan McCullough
print $add_to_db; should print out the entire insert line and you can just double check that your values are full, otherwise like Jay said I would check and make sure the user you have in your connect string can write to the db. On 11/9/05, Stewart Priest [EMAIL PROTECTED] wrote: Hi folks... a

Re: [PHP] Unable to send variables to MySQL table

2005-11-09 Thread Dan McCullough
What is the structure of that table? On 11/9/05, Stewart Priest [EMAIL PROTECTED] wrote: snip print $add_to_db; /snip Thanks for all your replies! I didn't expect to get one so quick, so thanks! After I did the above, I pasted the output into MySQL. Guess what? It didn't work! I was

Re: [PHP] T_PAAMAYIM_NEKUDOTAYIM

2005-11-09 Thread Dan McCullough
t_paamayim_nekudotayim is Hebrew for term twice colon I believe that its saying that you need to use the :: operator. On 11/9/05, Unknown Unknown [EMAIL PROTECTED] wrote: I was working with objects, and suddenly i got this error: *Parse error*: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in

[PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-09 Thread Dan Rossi
Hi there, ive been having issues with mod_rewrite and apache2 with PHP 5.1RC1. I have googled the php bugs and people have been experiencing the same issue however the php people cant see to reproduce the bug. Its most definately doing it for me, here is a rewrite rule i have setup, if i [L]

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-09 Thread Dan Rossi
On 10/11/2005, at 4:18 PM, Curt Zirzow wrote: On Thu, Nov 10, 2005 at 03:36:07PM +1100, Dan Rossi wrote: Hi there, ive been having issues with mod_rewrite and apache2 with PHP 5.1RC1. I have googled the php bugs and people have been experiencing the same issue however the php people cant see

[PHP] Command line vs Cron

2005-11-08 Thread Dan Seibert
I have a script that connects to a sybase server. It works fine if I launch it from a shell script however, if I try to launch the same script through a cron, I get the message PHP Fatal Error: call to undefined function sybase_connect... Why can I not connect to sybase through a cron but I

Re: [PHP] Command line vs Cron

2005-11-08 Thread Dan Seibert
Richard Heyes wrote: Dan Seibert wrote: I have a script that connects to a sybase server. It works fine if I launch it from a shell script however, if I try to launch the same script through a cron, I get the message PHP Fatal Error: call to undefined function sybase_connect... Why can I

[PHP] Use of auto_prepend_file inside an Apache directory container

2005-11-08 Thread Dan Trainor
Good afternoon, all - I've had problems with auto_prepend_file off and on for as long as I can remember. It's hit or miss, and browsing the archives, it looks like I'm not alone. I've even written to the list on several occasions looking for a solution, to no avail. I think that

Re: [PHP] Use of auto_prepend_file inside an Apache directory container

2005-11-08 Thread Dan Trainor
Dan Trainor wrote: Good afternoon, all - I've had problems with auto_prepend_file off and on for as long as I can remember. It's hit or miss, and browsing the archives, it looks like I'm not alone. I've even written to the list on several occasions looking for a solution, to no avail

Re: [PHP] Use of auto_prepend_file inside an Apache directory container

2005-11-08 Thread Dan Trainor
Jasper Bryant-Greene wrote: On Tue, 2005-11-08 at 13:36 -0700, Dan Trainor wrote: [snip] So, as you can see, nothing completely out of the 'norm. The examples given in the manual are not all that clear, so by using absolute path names, I'm just guessing. I have used relative paths as well

<    4   5   6   7   8   9   10   11   12   13   >