Re: [PHP] Help with Class

2005-09-07 Thread Jason Davidson
I would have guessed unset($sqk); to work, but also try $sdk = null; Jason On 9/7/05, Ian Barnes [EMAIL PROTECTED] wrote: Hi, I am writing a site where I need to access multiple classes of the same name located under certain directories. The reason for each directory is because

Re: [PHP] Assign values in foreach-loop

2005-09-07 Thread Jason Davidson
In case it hasnt been said already, as long as your array has numeric and consecutive keys, you could use 'for' instead of 'foreach'. Jason On 9/7/05, Gustav Wiberg [EMAIL PROTECTED] wrote: - Original Message - From: Sabine [EMAIL PROTECTED] To: PHP general

Re: [PHP] Object Scope

2005-09-06 Thread Jason Davidson
I prefer to make the object on each page load, passing only the member id thru the session. Jason On 9/6/05, Chuck Brockman [EMAIL PROTECTED] wrote: What is the best practice for calling objects that are to be used throughout a users site visit. For example, I have a members class with

Re: [PHP] Apache Linux question

2005-09-06 Thread Jason Davidson
If you compiled it, you can goto the src directory, and log under config.log Jason On 9/6/05, Georgi Ivanov [EMAIL PROTECTED] wrote: It is no clear which option you are looking for. If it's PHP compile options use : ?php echo phpinfo(); ? This will give you information you need. On

Re: [PHP] CookieMonster

2005-09-01 Thread Jason Davidson
You can.. Dont include the expire argument.. or set it to 0. Jason On 9/1/05, Philip Hallstrom [EMAIL PROTECTED] wrote: Simple question I guess.. How do I set a cookie so it will never expire? (I don't want it to expire) You can't really... I could delete it and that would be the

Re: [PHP] CookieMonster

2005-09-01 Thread Jason Davidson
You are right, ignore my post. Jason On 9/1/05, John Nichel [EMAIL PROTECTED] wrote: Jason Davidson wrote: You can.. Dont include the expire argument.. or set it to 0. No. Do this, and the cookie will expire when you close the browser window. -- John C. Nichel ÜberGeek

Re: [PHP] Re: Saturdays and Sundays

2005-09-01 Thread Jason Davidson
Here is an another approach.. if you glance at a calendar, youll notice that the only times there are 5 sats in a month, is when the 1st of 30 day month falls on a fri or sat.. or in a 31 day month, a thur, fri, or say.. So, you could simply test the weekday the first of the month has, and the

Re: [PHP] ID based on position?

2005-08-31 Thread Jason Davidson
You could LIMIT your query to the record number you are looking for, and grab the last element in the array from your result set. But this is a serious hack, and I am really wondering why you need to do what your asking, it seems (without knowing more) that you are tackling the problem in the

Re: [PHP] Query Returning Error

2004-10-13 Thread Jason Davidson
should Query01 have a $ in front of it, i assume its a var Jason Harlequin [EMAIL PROTECTED] wrote: Morning all. this is such a basic question I'm embarrassed to ask but the query worked fine a few minutes ago and now returns an error: I get an error: Parse error: parse error,

Re: [PHP] php err msg/issue...

2004-10-13 Thread Jason Davidson
I gather $rec is empty.. :) make sure there is something in it before you assign it to that object member. Jason [EMAIL PROTECTED] wrote: hi... i'm dealing with an app that's throwing an err/warning msg.. i'm using php5, on a linux rh8.0 system. i believe the code was written for

Re: [PHP] Need help with a string

2004-10-08 Thread Jason Davidson
prolly already mentioned, but what about explode using the commas $strings = explode(',', $textString); Greg Donald [EMAIL PROTECTED] wrote: On Fri, 8 Oct 2004 11:38:23 -0500, Brent Clements [EMAIL PROTECTED] wrote: Given the following string: $textString = Share A Dream Come True

Re: [PHP] Best and easy html text area replacement tool?

2004-10-05 Thread Jason Davidson
Whats this to do with PHP.. this should be in the javascript list. Jason Scott Chapman [EMAIL PROTECTED] wrote: On Monday 04 October 2004 01:50 pm, Bosky, Dave wrote: I'm looking for an easy to use html textarea replacement script and figured this was the place to locate the most

Re: [PHP] I'm looking to have a simple webpage send an email . ..

2004-10-04 Thread Jason Davidson
news.php.net [EMAIL PROTECTED] wrote: Can anyone help me out? I just need a simple single webpage to send an email from the server. http://ca.php.net/manual/en/ref.mail.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --

Re: [PHP] How to load another php page?

2004-10-02 Thread Jason Davidson
Arnold [EMAIL PROTECTED] wrote: Hi, How can i load another php file (another.php) directly without an action (example: clicking on a button)? I'd like to do in my php script: if(isset($var1)) { // load another.php } It is possible to include the file, but i just want to load the

[PHP] PHP sandbox discussion

2004-10-01 Thread Jason Davidson
Hey fella's, i thought i would start a thread for once :) Ive got a 'php sandbox', that im encorparating into a simple php tutorial. THe tutorial is much like any php tutoiral, and really, is just for me to get more comfortable using and parsing xml with the dom functions. What i would like to

Re: [PHP] Image Manipulation

2004-10-01 Thread Jason Davidson
Yes there is way, search for GD in the php manual, it will explain a solution better than i will. Jason GH [EMAIL PROTECTED] wrote: I would like to know if there is a way to have PHP determine the dimensions of an image (i.e. JPG or PNG) and if it more than Xpx wide or height have it scale

Re: [PHP] Naming conventions

2004-10-01 Thread Jason Davidson
with PayFlow Pro 198441 by: Neal Carmine Image Manipulation 198444 by: GH PHP sandbox discussion 198445 by: Jason Davidson Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED

Re: [PHP] PHP sandbox discussion

2004-10-01 Thread Jason Davidson
... ive enjoyed reading documentaiton on these things. Jason [EMAIL PROTECTED] wrote: Jason Davidson wrote: Anywys.. heres the question.. what do you think is the most viable solution for security. 1. run apache in chroot envirnment. 2. run php in safe_mode 3. simply str_replace all

Re: [PHP] Test - Is the list working?

2004-09-30 Thread Jason Davidson
sheesh.. ok, who is going to sign that denise character back up to the list :P Jason Marek Kilimajer [EMAIL PROTECTED] wrote: Jay Blanchard wrote: Odd stuff this morning. I think it's overloaded with unsubscribe requests. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Stored procedures in Mysql

2004-09-30 Thread Jason Davidson
I suppose if you are thinking that mysql and zend may have collaborated to make stored procedures available in veriosn 5, then i suppose this is on topic.. otherwise, check the mysql list. Jason Sagar C Nannapaneni [EMAIL PROTECTED] wrote: Hi folks, I wonder whether Mysql supports

Re: [PHP] simple date/now() question

2004-09-28 Thread Jason Davidson
Just select out records that are NOW() - (24 * 60 * 60)or if you use datetime field instead of timestamp, which is prolly better off ofr many reasons, use DATE_SUB(NOW(), INTERVAL 1 DAY) or something similar. you can get timestamps from datetime fields, if that is an issue for you... Jason

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Jason Davidson
I see lots of references to modulus, which works fantastic.. but how abut just testing if its equal to 20, then there isnt that extra arthmitc call.. this is just another way to do the same thing.. take your pick.. unless someone can see a bad reason for this method. $count = 0; foreach . {

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Jason Davidson
well, actually, the code resets the count var, so it makes absolutely no difference how many iterations the loop makes, it could iterated indefinately and still function identically. Jason Andrew Kreps [EMAIL PROTECTED] wrote: On Tue, 28 Sep 2004 10:45:19 -0700, Jason Davidson [EMAIL

Re: [PHP] Loop within Loop help please

2004-09-28 Thread Jason Davidson
Hey, im sorry, i didnt read the other responses to your post, ive posted the same thing... Jason Jason Davidson [EMAIL PROTECTED] wrote: well, actually, the code resets the count var, so it makes absolutely no difference how many iterations the loop makes, it could iterated indefinately

RE: [PHP] Loop within Loop help please

2004-09-28 Thread Jason Davidson
Well, elegance, is in the eye of the beholder !!.. but ya, i certainly wasnt contesting the modulas solutiion, ive used mod in similar cases myself, i was just adding some variety. Jason Jay Blanchard [EMAIL PROTECTED] wrote: [snip] well, actually, the code resets the count var, so it makes

Re: [PHP] Multiple pages of data.

2004-09-28 Thread Jason Davidson
Your not totally lost on it, your very cloes to your solution. Keep track of the LIMITs with php, and not mysql. Pass the LIMIT information to the next page, and use some aritihitc to determine the next and prvious limits for the link... so you would have a var called $limit possibly, and your

Re: [PHP] Error with php

2004-09-28 Thread Jason Davidson
Can you show me an example.. wild guess without knowing what your doing, but, ? is the escape code to exit php.. so its possible thats what is happening.. but please post some code that cuases this problem. Jason Timothy Johnson [EMAIL PROTECTED] wrote: This is my first time using php on a

Re: [PHP] redirecting to another page

2004-09-25 Thread Jason Davidson
eh hem,,, that is a great question to consult the manual... but as for a hint, search for header() Jason AMC [EMAIL PROTECTED] wrote: Hi, What code do I use to redirect a user to a different page in php? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] mailing to hotmail

2004-09-24 Thread Jason Davidson
Do you have reverse dns set up on your machine? Jason Diana Castillo [EMAIL PROTECTED] wrote: for some reasons my mails I send to hotmail are never arriving, (using mail($email,$subject_line,$msg,$headers);) anyone ever heard of this? -- Diana Castillo Global Reservas, S.L.

Re: [PHP] Virtual Host problem

2004-09-23 Thread Jason Davidson
your problem, as correctly outputted, is permission based, and as far as i can tell, has nothing to do with PHP.. Jason a.k.a kioto [EMAIL PROTECTED] wrote: Hi all i've try to configure Apache with Virtual Host in the main configuration file of Apache i have modify like this:

Re: [PHP] Question on using png file in ezPdf class

2004-09-21 Thread Jason Davidson
Possibly you need to compile php with-png ?? im not sure of this, im just taking a stab in the dark.. Jason Chris Bruce [EMAIL PROTECTED] wrote: Hello, I am using the PDF creation classes from http://www.ros.co.nz/pdf Everything is working great with the exception of not being able to

Re: [PHP] Configuring php.ini path

2004-09-21 Thread Jason Davidson
You can set it during compile time i think... if thast of any help Jason Jamie [EMAIL PROTECTED] wrote: Im using php version 4.3.8 and im trying to setup a small webserver on my usb memory stick so i can work on my php projects when im at college without having to work ways arround the

Re: [PHP] List Etiquette

2004-09-20 Thread Jason Davidson
are we still on top posting.. shessh. i only top post cuase im lazy... J Octavian Rasnita [EMAIL PROTECTED] wrote: - Original Message - From: John Nichel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 20, 2004 7:06 AM Subject: Re: [PHP] List Etiquette

Re: [PHP] Creating a new window

2004-09-20 Thread Jason Davidson
this is javascript question isnt it.. but to end the thread quickly... just dont put your js in the button.. just print it .. print scriptwin-=open(...);win.focus();/script; that wiill open a win when the browser parses it. Jason Todd Cary [EMAIL PROTECTED] wrote: I am using PHP

Re: [PHP] Auto escaping an apostrophy...

2004-09-20 Thread Jason Davidson
Turn off magic_quotes_gpc in the php.ini file, they are bad bad abd.. magic_quotes_gpc 0 Jason Todd Cary [EMAIL PROTECTED] wrote: I have noticed that an apostrophy is automatically escaped with a \, or at least appears to be if the surfer enters an apostrophy in a text field. Has this

Re: [PHP] very basic php mysql question

2004-09-20 Thread Jason Davidson
add mysql_error() to your die string so you can report what the error is. Jason AMC [EMAIL PROTECTED] wrote: Thanks, the script runs now, but I cannot open a connection. I know the user name, and password are correct. What could be the cause? ?php $user = aclark; $host =

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread Jason Davidson
Sam Hobbs [EMAIL PROTECTED] wrote: Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam Hobbs wrote: I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum, Do you have a life ? I hope the moderators protest posts such as this. i

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread Jason Davidson
uh huh.. was it your firewall :) :) it was wasnt it.. im so bad, im so bad it hurts, but i solved your problem, so come on, a cookie or something..pat on the head, or how about, thanks for helping. Jason Sam Hobbs [EMAIL PROTECTED] wrote: Jason Wong [EMAIL PROTECTED] wrote in message

Re: [PHP] empty variable

2004-09-19 Thread Jason Davidson
as suggeted the isset and empty functions are usefull, or if you know it may be set, but could be empty, how about just if($variable) { } that is the same as if($var == ) Chris Mach [EMAIL PROTECTED] wrote: What is the best way to determine if a variable is empty? I have a feeling there

Re: [PHP] empty variable

2004-09-19 Thread Jason Davidson
variabe: null, 0, , array()? For example, $var = 0;, empty($var) says true... but you? Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] as suggeted the isset and empty functions are usefull, or if you know it may be set, but could be empty, how about just

Re: Re[2]: [PHP] mysql_connect does not connect

2004-09-18 Thread Jason Davidson
I may be unnaturally ugly (to the extent my mother cried when she held me), and so i have a little extra hair here and there.. and my hands are like hams.. but im no troll :P :P Jason Tom Rogers [EMAIL PROTECTED] wrote: Hi All, I don't normally bother with these kind of meaningless

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Jason Davidson
such as that and I will in the future. I just want to make it clear for the benefit of others that this is the type of comments that has caused problems. Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Windows XP Firewall, or any other firewall for that matter must be off

Re: [PHP] filtering out text in a string

2004-09-18 Thread Jason Davidson
Search preg_replace or preg_match in the manual. Jason Merlin [EMAIL PROTECTED] wrote: Hi there, I want to filter out ip adresses out of a given text string. They are inside a logfile and values are seperated by tabs. I tryed sub_str which works fine if you know the length of the

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
The last paragraph refers to me :) and im quite proud of it now, ive printed some of your emails out, and i keep them around, they really do make me smile, not becuase im so much an a$$hole, but becuase, youve already said, that altering your firewall allowed you to connect. Which not so

Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Yes yes, your always relevent, we are not... funny that you have the problem and we do not though. Jason Sam Hobbs [EMAIL PROTECTED] wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm not familiar with MySQL under Windows, but I believe that there are

Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Cheers on that, this thread has become amusement, that is payment enough Jason John Holmes [EMAIL PROTECTED] wrote: Sam Hobbs [EMAIL PROTECTED] wrote in message One problem is that I get answers that are not accurate, so it is difficult to know which ones are accurate. You are

Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Im not a john, but to add to confusion we could all sign with 'J' Jason John Nichel [EMAIL PROTECTED] wrote: John Holmes wrote: Sam Hobbs [EMAIL PROTECTED] wrote in message One problem is that I get answers that are not accurate, so it is difficult to know which ones are accurate.

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Hey, the reason it doesnt come in to play for you in linux, is becuase mysql by default will connect through a unix socket, and not over tcpip. The unix socket is a connection thru the filesystem and not the network. Also, in linux, there is a virtual device for lopback, and the firewall i dont

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
.. apparently. :) Jason John Nichel [EMAIL PROTECTED] wrote: Jason Davidson wrote: Hey, the reason it doesnt come in to play for you in linux, is becuase mysql by default will connect through a unix socket, and not over tcpip. The unix socket is a connection thru the filesystem

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Another test you might do , is use something like tcpdump to snif your network to see exactly how its attempting to connect, then you could ascertain on your own (as you dont beleive me) if mysql is connecting over the network or through the filesystem. Jason Jason Wong [EMAIL PROTECTED] wrote:

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
resolve your problem. Time for another: [quote from a Sam Hobbs post in reply to Jason Davidson] It is my understanding that the firewall is not supposed to be relevant. I have not seen anything saying it is supposed to be. If it is true that it is not supposed to be relevant, then simply

Re: [PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Jason Davidson
http://ca3.php.net/manual/en/function.array-multisort.php this might do it. Jason Chris Lott [EMAIL PROTECTED] wrote: I have an array $links like this: [1] = Array ( [href] = http://www.poetrymagazine.org/epstein_sept_prose.html [description] = Thank

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Im not sure who was doing that. i missed that stuff i think. Jason John Holmes [EMAIL PROTECTED] wrote: From: Jason Davidson [EMAIL PROTECTED] hehehe.. im actually looking forward to reading responses on this thread.. Whatever happened to those monthly stat posts? most posts, most

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
to be classic case of 'ignore-the-obvious' or 'my-mind-is-made-up. Don't-confuse-me-with-facts'. Perhaps I should start a new thread: [PHP} Can't get NULL to output anything! hehe Andre On Friday 17 September 2004 03:11 pm, Jason Davidson wrote: hehehe.. im actually looking

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
hahahaha, what can i do in 30 minutes... hmm.. install almost any linux distro, most windows distros.. i could disbaled and enable my firewall about 180 times i could read just one of the long winded emails how i obsfuscate the thread with irrelevant solutions and wild suggestions of

Re: [PHP] reading from files

2004-09-17 Thread Jason Davidson
use the functoin file, it does exactly that. http://ca3.php.net/manual/en/function.file.php Jason Merlin [EMAIL PROTECTED] wrote: Hi there, I am wondering how to read lines from a file to a php array? I would like to integrate a logfile into a html site. Is it possible to read line by

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
that takes the cake. :D :D J Matthew Sims [EMAIL PROTECTED] wrote: [PHP} Can't get NULL to output anything! hehe Andre Check your firewall. -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
what is top posting Jay Blanchard [EMAIL PROTECTED] wrote: Did you just top post? Top posting === evil; -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 3:14 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
. Jay Blanchard wrote: Did you just top post? Top posting === evil; -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: Friday, September 17, 2004 3:14 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] mysql_connect does not connect

Re: [PHP] Code spacing causing HEADER problem?

2004-09-17 Thread Jason Davidson
You absolutely can not send anything to the browser before a header is sent... so if you put a space in there, it gets sent to the client.. no good.. its not the code thats the problem . its that you escaped from php and left space between. Jason BOOT [EMAIL PROTECTED] wrote: I don't get

Re: [PHP] thumbnail of webpage

2004-09-17 Thread Jason Davidson
First, im not sure how you would capture a snapshot of the page, sinse the page is rendered by the browser, and php is completely server side. Possibly there is a way to fopen a page or something, but... i dunno.. as for making thumbnail, using the gd extension, is quite easy. check the manual

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread Jason Davidson
woah, full functionality.. it has will still connect, at least, it will still connect for me. Where the functionality is missing, im not sure. But sinse the error is cant connect to localhost, i would say that it strying to connect to localhost, and not being allowed. That said, im fully open

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread Jason Davidson
i am in total agreeance of this post. Sinse the 'flame' war is primarily between me and everyone else, especially sam hobbes, (not the first time either), no more contributiuons to this thread from me. I hope it gets resolved, and i hope it gets posted as much so others can search the archive of

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Jason Davidson
, but an educated and experienced suggestion. and yes, all forms of help on this form are as such. Yup, im an a$$hole , i dont like being completely shutdown by people requesting help, when i take the time to impart some experience... J Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Jason Davidson
firewall, who would have thought Jason Wong [EMAIL PROTECTED] wrote: On Thursday 16 September 2004 06:14, Sam Hobbs wrote: [quote from another Sam Hobbs post] I am the original poster. The reason I avoid doing things like that is because it is a guess. It should not be necessary;

Re: [PHP] checking multiple URL parameters

2004-09-15 Thread Jason Davidson
same way, if i understand your questoin... if your url looks like this sometestpage.php?mov=somethingyear=1999 - the queries are seperated by the '' char.. then $_REQUEST will have both mov and year elements in it so just as $_REQUEST['mov'] worked, so would $_REQUEST['year'] Jason Dustin

Re: [PHP] How I can create....

2004-09-15 Thread Jason Davidson
the reason it doesnt work, is becuase you have muddied the requests for the client and the server. PHP is completely server side, so putting a php function name in onclick, which will execute client side code doesnt work. the solution would be to have you button reload the page, or submit to

Re: [PHP] Strip Everything But Letters and Numbers?

2004-09-15 Thread Jason Davidson
i think with perl regs.. as preg_replace is, you can just use a shortcut command.. \w is any word char, \d is any digit.. im not sure it will improve this solution any, but its something else :P Jason Marek Kilimajer [EMAIL PROTECTED] wrote: Jeff Oien wrote: Is there an easy way to strip

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
Windows XP Firewall, or any other firewall for that matter must be off. Jason Sam Hobbs [EMAIL PROTECTED] wrote: I have: PHP Version 5.0.1 MySQL 5.0.1 Apache 2.0.48 Winows XP Pro SP2 MySQL is working fine as best as I can see; I have tried the various samples in the

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
Also, a google on the error returns hundreds of results.. http://www.google.ca/search?hl=enie=UTF-8q=Can%27t+connect+to+++MySQL+server+on+%27localhost%27+%2810061%29btnG=Searchmeta= Jason Jason Davidson [EMAIL PROTECTED] wrote: Windows XP Firewall, or any other firewall for that matter

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
if it works. Jason Sam Hobbs [EMAIL PROTECTED] wrote: Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Windows XP Firewall, or any other firewall for that matter must be off. Jason Can someone else confirm that this is correct? For one thing, when I use MySQL

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
: Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Also, a google on the error returns hundreds of results.. http://www.google.ca/search?hl=enie=UTF-8q=Can%27t+connect+to+++MySQL+server+on+%27localhost%27+%2810061%29btnG=Searchmeta= One thing I did find

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
addresses. So if this were a requirement, probably many others would have that specific problem. However if nothing else works, I will try to look into this further when I have time. At the moment I must spend time on something else. Jason Davidson [EMAIL PROTECTED] wrote in message

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
he is having, but it is an issue i have dealt with before, as retarded as you all seem to think it is. Jason John Nichel [EMAIL PROTECTED] wrote: Jason Davidson wrote: The webpage of coarse, is not local, regardless of where its hosted, so a firewall will come into play when trying

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
=UTF-8q=mysql+firewall+localhostbtnG=Searchmeta= Cheers, and good luck Jason Jason Davidson [EMAIL PROTECTED] wrote: ok, well, i just posted a link for you to check out, it gives insight on how mysql connects on different platforms, this will of use to you i think, the last few bullets

Re: [PHP] php/MYSQL remove duplicate records

2004-09-14 Thread Jason Davidson
you could select out all the DISTINCT email addresses, and delete the table, and repopulate it with your selected rows add a constraint to the table to make email column unique afterwards maybe. Jason Dustin Krysak [EMAIL PROTECTED] wrote: Hi there - I have an extremely simple table that has

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
in unix, is rarely, but in windows, is not all that rare. Jason Sam Hobbs [EMAIL PROTECTED] wrote: John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jason Davidson wrote: The webpage of coarse, is not local, regardless of where its hosted, so a firewall will come

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
else on that page that is relevant. Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ok, well, i just posted a link for you to check out, it gives insight on how mysql connects on different platforms, this will of use to you i think, the last few bullets

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Jason Davidson
There is nothing wrong with what your doing, i use this sort of thing for all the big sites i make, i use a page class and use methods to create the header and footer, so your concept is good. I would investigate your html_head() function, to make sure its actually returning something. Sinse

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread Jason Davidson
yup, you took the words from my mouth... [EMAIL PROTECTED] wrote: dirk wrote: The first function you need to call using ? echo header(); ? to see the output THe second function is not a real function because it has no return statement. In german you call this Prozedur. Don't know if

Re: [PHP] CSS not picked up

2004-09-11 Thread Jason Davidson
Possibly you dont have those fonts to see them? Jason Jeff Swanberg [EMAIL PROTECTED] wrote: I have the following in my CSS (loaded on the main site page): /* FOOTER */ .footer { font-family: Tahoma, Trebuchet MS; font-size: 9px; color: #BFBFBF;

Re: [PHP] Remove punctuation

2004-09-09 Thread Jason Davidson
http://ca3.php.net/manual/en/function.str-replace.php if you have the array of puncuation already, i think that is your solution. Jason Jed R. Brubaker [EMAIL PROTECTED] wrote: Hi all! I am creating a function that will remove punctuation from a string, however, I am wondering if PHP

Re: [PHP] Remove punctuation

2004-09-09 Thread Jason Davidson
i think str_replace is faster that ereg_replace Jason John Nichel [EMAIL PROTECTED] wrote: Jed R. Brubaker wrote: Hi all! I am creating a function that will remove punctuation from a string, however, I am wondering if PHP has a function somewhere that will do the same.

Re: [PHP] Remove punctuation

2004-09-09 Thread Jason Davidson
ya, no doubt, i was going to repost my message, i should have said, that manual suggests using str_replace over ereg_replace... without reason.. i just assumed it was speed and resources.. eitherway, both would work, try em both. :) Jason John Nichel [EMAIL PROTECTED] wrote: Jason Davidson

Re: [PHP] Assigning one var to multiple vars

2004-09-09 Thread Jason Davidson
$var2 = $var3 = $var5 = all the same; Jason Matthew Sims [EMAIL PROTECTED] wrote: Just mostly curious but is there a way to assign one variable to multiple variables in one single line? Rather than do this: $var2 = $var1; $var3 = $var1; Is there a method to perform a:

Re: [PHP] class packages

2004-09-08 Thread Jason Davidson
Out of curiosity, how would you prefer it? the way you mentioend is basically how i do though. Jason Jed R. Brubaker [EMAIL PROTECTED] wrote: As far as I can tell there is not an easy way yet to create packages in PHP5. It seems the following is the best option:

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread Jason Davidson
How is the date stored, MySQL db??? if so, you can select dates out as unix timestamps. Otherwise i would use mktime or strtotime... Jason Jason FB [EMAIL PROTECTED] wrote: Can anyone tell me how to convert a date stored in the format -MM-DD to an integer of seconds since unix epoc,

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread Jason Davidson
beware of dates before 1969. Justin French [EMAIL PROTECTED] wrote: Jason, This seems to work fine for me: ? $daysToAdd= 5; $secondsToAdd = $daysToAdd * 86400; $dateIn = 2004-07-24; $dateInStamp = strtotime($dateIn); echo date('m/d/Y

Re: [PHP] Clean variables sent from forms

2004-09-04 Thread Jason Davidson
Make some field unique, so it wont work thats an easy solution, there other ways.. Jason Dre [EMAIL PROTECTED] wrote: Hi, I'm trying to perform a database insertion for a new record from data I receive from a HTML form I send the data to the file containing the insertion script and

Re: [PHP] Sessions Problems

2004-09-03 Thread Jason Davidson
Read up on 'named sessions' I think that may be your solution jason Mark [EMAIL PROTECTED] wrote: --- Octavio Herrera [EMAIL PROTECTED] wrote: No, I do not store two items with the same key, I just open another session in other page and it just overwrite session data of a previous

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread Jason Davidson
I assume you mean locating something on the server, as this would be a serious breech of security otherwise. anyways, bickticks will run shell comand line programs and return the output.. ie print `locate myFile'`; jason BOOT [EMAIL PROTECTED] wrote: Does anyone have a script that can be

Re: [PHP] php does not get variable values in POST method

2004-09-02 Thread Jason Davidson
Its possible you had register globals turned on for your server, and its not turned on now. How do you retrieve these vars, try retrieving them with $_REQUEST['myVarName'] or $_POST['myVarName'] Jason Leticia Campos [EMAIL PROTECTED] wrote: I developed an html/php form in a Php version

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Jason Davidson
its possible to add HTML elements with DOM, im not sure what it has to do with php though? Jason Sam Hobbs [EMAIL PROTECTED] wrote: Is it possible to use the DOM to add (HTML) elements to a page at the time the page is being shown? The HTML and VBScript shown below is a simplified version

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Jason Davidson
; it is quite clear about the relevance to PHP. Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] its possible to add HTML elements with DOM, im not sure what it has to do with php though? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Newbie. Posting to backend MySQL database

2004-08-28 Thread Jason Davidson
If you just need to put it in the database, you dont need a form to do that.. just open a connection to your db, and query it in. read about mysql functions in the php manual.. specifically mysql_connect, mysql_select_db and mysql_query , i beleive there is a functional example of all you need

Re: [PHP] oop too slow

2004-08-19 Thread Jason Davidson
When i have many many objects of the same type to build, i do something like this... function getEvents($sql = '') { $events = $this-dbh-query( SELECT cols, cols, FROM table,table WHERE blah blah balh ($sql ? AND $sql : ''),'rows_array');

Re: [PHP] PHP HTML text editor issues...

2004-08-18 Thread Jason Davidson
Do you have magic quotes turned on in your php ini file? Jason Tim Traver [EMAIL PROTECTED] wrote: Hi all, ok, I've made my own version of a file manager complete with a text editor, and I'm having troubles figuring out some issues. I present the text to be edited retrieved from a

Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
THats kinda cool. you see that there is also a page=2 query if you click to a different page, so i would assume, they store the html in a database for each page of a story. and then give a story_id to those records. so in the table, if there is 4 pages for story 12, then there are 4 records all

Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
Friendly crew today. :) Jason John Nichel [EMAIL PROTECTED] wrote: rogue wrote: Hi all, I want to do something like this: http://www.cgnetworks.com/story_custom.php?story_id=2259 Where we can publish an article, multiple page even and lay it out in a nice design with

Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
there for the list... oh well. On Aug 17, 2004, at 12:31 PM, Jason Davidson wrote: Friendly crew today. :) Jason John Nichel [EMAIL PROTECTED] wrote: rogue wrote: Hi all, I want to do something like this: http://www.cgnetworks.com/story_custom.php?story_id=2259

  1   2   >