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 b

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

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
he response to that becomes emotional. > > Being obstinate and contrarian does nothing to help 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 &g

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]

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.. >

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
record. Seems 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 > > >

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 inaccuracy

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 li

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 > -- > > -- > PHP General Mailing List (http://www.php.ne

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 PROTEC

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
a php question. Don't you > dare flame me. > > 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 >

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

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 fo

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
just ignore comments 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]

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 t

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 po

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 messa

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 feel

Re: [PHP] empty variable

2004-09-19 Thread Jason Davidson
meaning of your empty 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 empt

Re: [PHP] List Etiquette

2004-09-19 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 Et

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 "win-=open(...);win.focus();"; that wiill open a win when the browser parses it. Jason Todd Cary <[EMAIL PROTECTED]> wrote: > > I am using PHP to create

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. Ha

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? > > > > > $user = "aclark"; > >

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 a

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 arroun

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: > > #N

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

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 uns

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:

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

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 M

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 Davi

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

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

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 n

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 o

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.ne

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 p

[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 d

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

Re: [PHP] Naming conventions

2004-10-01 Thread Jason Davidson
98411 by: raditha dissanayake > 198419 by: felix.compsoc.nuigalway.ie > 198422 by: Michael Sims > > Re: World time convertor > 198414 by: -{ Rene Brehmer }- > > Re: UNSUBSCRIBE > 198416 by: -{ Rene Brehmer

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.

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

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] 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 m

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

[PHP] Construction

2004-06-26 Thread Jason Davidson
If you instantiate a child class, the parent class constructor is not called, is there a reason for this? anyone know of plans to change this at all, the obvious workaround is to call the parents constructor inside the childs constructor, but this seems kinda strange. Jason -- PHP General

Re: [PHP] viewing PHP files on Internet Explorer 6

2004-07-19 Thread Jason Davidson
PHP is serverside right, you dont need to patch or plugin Internet Explorer.. you need to make sure apache and php are running properly and together. Be sure your apache configuration has the appropriuate directives, and that you either have a compiling in module, or a cgi version running. check

Re: [PHP] Stuffing those damn values into their fields...!

2004-07-19 Thread Jason Davidson
php will evaluate vars in single quotes provided they are double quoted outside them. The quoting in the query appears valid, i would suggest debugging the sql firstly. (which i beleive was mentioned already) Jason On Mon, 19 Jul 2004 12:20:33 -0400, Brent Baisley <[EMAIL PROTECTED]> wrote: > I

Re: [PHP] textarea/display question...

2004-07-20 Thread Jason Davidson
you can set designmode on a iframe to make it editable if you like, you can use javascript to use commands from the browser on the iframe even. And textarea may have a value attribute, however the element is meant to tag its displayed value from between the open and close tags. Jason On Tue, 20

Re: [PHP] what is difference between php and perl

2004-07-21 Thread Jason Davidson
they are 2 seperate languages, completely. I dont beleive the 2 languages have any relation to eachother, possibly you can relate the 2 as serverside scripting languages.. but.. its still a stretch :) see www.perl.org or php.net for history of the two. Jason On Wed, 21 Jul 2004 12:35:46 +0530,

[PHP] Intant Messengers and PHP

2004-07-21 Thread Jason Davidson
Has anyone every wrote script too send a message to any of the popular messenger services, i see there is a perl module for jabber, however, im more interested in using php to send to .. msn, or yahoo, and jabber of coarse :) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: Intant Messengers and PHP

2004-07-21 Thread Jason Davidson
hey cool, thanks for the info Jason On Wed, 21 Jul 2004 18:15:12 -0300, Manuel Lemos <[EMAIL PROTECTED]> wrote: > Hello, > > > > On 07/21/2004 04:00 PM, Jason Davidson wrote: > > Has anyone every wrote script too send a message to any of the popular > > mes

Re: [PHP] what is difference between php and perl

2004-07-22 Thread Jason Davidson
Youll find knowing both languages will be handy in development. Im not a huge fan of having to program in perl, however, at times, its far easier to use perl than any other language. An example of that, would be to create a small server client program that possibly parses or extrapolates data fro

Re: [PHP] Retain form values on using javascript:window.opener.location.reload()

2004-07-22 Thread Jason Davidson
Why not just use some javascript to put the new value right into the drop down, provided the db query went thru sucessfully, this shouldnt be an issue right. on the popup window, after you insert the new record, get the last inserted id, use php then to generate some JS that will push that new rec

RE: [PHP] looking for php talent...

2004-03-04 Thread Jason Davidson
what are the apps? <[EMAIL PROTECTED]> wrote: > > Rasmus, > > Thanks for the positive response. That said. > > We are looking for a few select/skilled Web Developers for a few > apps/projects that we want to create. The apps are not trivial, and should > take a good team of 5-6 developers 3-4 m

RE: [PHP] re-creating a variable name

2004-03-05 Thread Jason Davidson
my thoughts exactly... seems odd that your are updating a single table multiple times like that. Jason "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > Cory Berry > on Friday, March 05, 2004 11:29 AM said: > > > Hello, I'm having difficulty dynamically creating

Re: [PHP] Let's start a php-advanced list!

2004-03-06 Thread Jason Davidson
I definately agree with Rasmus, seperation will only cuase migration to the advanced list anyways, you need 'advanced' users helping the 'less-advanced' users. This is the purpose of the list. Jason Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > > On Fri, 5 Mar 2004, Galen wrote: > > > From my

Re: [PHP] Mail fifth parameter

2004-03-06 Thread Jason Davidson
check your logs sendmail mangles the headers, in particular return-path.. this is a horrible thing, i had a hell of a time with almost the same problem.. investigate sendmail. Jason "Enrico Comini" <[EMAIL PROTECTED]> wrote: > > > > I have to send a email to a server where is very import

Re: [PHP] Let's start a php-advanced list!

2004-03-06 Thread Jason Davidson
Sounds like you want to have more of a discussion list rather than help list.. which is not a bad idea, regardless of expertise. Jason Galen <[EMAIL PROTECTED]> wrote: > > Hello All, > > You do make some excellent points. Maybe an advanced list isn't the > greatest idea. But at least listen to

Re: [PHP] Mail fifth parameter

2004-03-06 Thread Jason Davidson
\r\n is good :) J Raditha Dissanayake <[EMAIL PROTECTED]> wrote: > > It's an often overlooked fact that you can pass additional headers in > the fourth parameter. I do belive you should use \n and not \r\n > then your code will look like > > mail("[EMAIL PROTECTED]", "object", $message, >

Re: [PHP] Whom to report a serious bug in Zend Encoder

2004-03-07 Thread Jason Davidson
you can post to the internals list.. they will respond fast. they are good that way. :) Jason "Erdener Gonenc" <[EMAIL PROTECTED]> wrote: > > Do anyone know who should I contact to report that bug? > > I've already dropped a note to forums at Zend... > > Thanks > > -- > PHP General Mailing L

Re: [PHP] PHP security

2004-03-07 Thread Jason Davidson
request floods and such are not the responsability of the programmer is it? Sounds more like a sys admin problem? i could be wrong. Jason "Martin Nicholls" <[EMAIL PROTECTED]> wrote: > > I know somebody who coded a PHP script that attempts to prevent post > flooding and some other potential sec

RE: [PHP] Re: php/mssql character limit?

2004-03-08 Thread Jason Davidson
VARCHAR limit is 255 :) mysql.com has great documentation. Jason "Vincent DUPONT" <[EMAIL PROTECTED]> wrote: > > are you using a 'Text' or a 'varchar' column type? > I guess the max size for varchars is 4000; text should be larger > > vincent > > -Original Message- > From: Ben Ramsey

RE: [PHP] Re: php/mssql character limit?

2004-03-08 Thread Jason Davidson
Coarse, i see after i post that you are talking about MSSql.. and not mysql.. i may have posted a little to quickly.. sorry. Jason "Jason Davidson" <[EMAIL PROTECTED]> wrote: > > VARCHAR limit is 255 :) > > mysql.com has great documentation. > > Jason >

Re: [PHP] Linux tools for PHP

2004-03-08 Thread Jason Davidson
Hey, tools i like using are. nedit - main editor i use vi - for quick or network edits apache - webserver ive tried some of the ide's and other editors like kate, quantra and such, and i constantly fall back to Nedit, for its simplicity. My only feature request for nedit, would be tabbed document

[PHP] varchar size mssql

2004-03-08 Thread Jason Davidson
I read that the varchar size for ms sql is 8000 limit. i also read that someone having a problem with it getting truncated fixed his problem by using convert(text, $value) in the sql statement.. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] Question on data loading

2004-03-08 Thread Jason Davidson
I think your best bet is to only show product titles, and possibly a bit of the summary or something in the catalogue, then have the user click the product to view full information on it. this takes 2 db calls, one to load the limited info of all products, and one to load all info on one product.

Re: [PHP] new session in new window

2004-03-08 Thread Jason Davidson
could create an array to hold the same session? This may not at all be what your looking for, but ive used something similar to this when building a wizard class to handle storing states in wizard steps. like $_SESSION['mySessions']['WindowOne'] = array($userid, $loginTime, $etc) $_SESSION['mySes

Re: [PHP] Re: Variables inside a function

2004-03-08 Thread Jason Davidson
you can reference the vars as well, but i would guess with some logic changes you could avoid the problem your having? Referencing .. $blah = ''; function add(&$blah, $something, $somethingElse) { $something ++; $somethingElse ++; $blah = $something + $somethingElse } John Kaspar <[E

RE: [PHP] mysql query with php

2004-03-09 Thread Jason Davidson
or just read the manual at mysql.com .. "Jay Blanchard" <[EMAIL PROTECTED]> wrote: > > [snip] > I just can't find the forum for any mysql. > [/snip] > > http://www.mysql.com/doc/en/Mailing-list.html > > [snip] > anyways maybe someone run into this kind of problem, i'm saving in a db > record

[PHP] arrays, loops, vars and props

2004-03-10 Thread Jason Davidson
Hey, would anyone know offhand, if its faster to create a temp array, fill it via loop, and then set a class property to that array, or to simply fill the class property via loop.. to clearify. would the following example be faster or slower had i simply done $this->myArray[$i] = $i; class MyC

RE: [PHP] arrays, loops, vars and props

2004-03-10 Thread Jason Davidson
Im fully aware of diffrent ways of doing it, my question is, in the 2 ways i mentioned, which is more efficient. Ill take the question to the internals list. Thanks for your responses. Jason "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > Luis Mirabal > on We

Re: [PHP] Re: PHP regular expression

2004-03-11 Thread Jason Davidson
I think he meant.. the carrot after the delimiter which means NOT.. like /[^a]/ means match anything thats not an 'a' Jason Justin Patrin <[EMAIL PROTECTED]> wrote: > > Mike Mapsnac wrote: > > > Hello > > > > I found this function online and want to understand how it works. > > I don't under

Re: [PHP] Help with arrays

2004-03-11 Thread Jason Davidson
read about phps mysql_fetch_assoc in the manual.. this will explain what your looking for. http://ca.php.net/manual/en/function.mysql-fetch-array.php Jason "Elliot J. Balanza" <[EMAIL PROTECTED]> wrote: > > Yes ok but how do I store it? > > with array() how? > > vamp > > "Raditha Dissanay

Re: [PHP] Help with arrays

2004-03-11 Thread Jason Davidson
i supplied the wrong link, sorry.. this is the right one.. http://ca.php.net/manual/en/function.mysql-fetch-assoc.php Jason "Jason Davidson" <[EMAIL PROTECTED]> wrote: > > read about phps mysql_fetch_assoc in the manual.. this will explain what > your looking for. &

Re: [PHP] SESSIONS SESSIONS SESSIONS

2004-03-12 Thread Jason Davidson
http://ca.php.net/manual/en/function.session-start.php =?iso-8859-1?Q?Alberto_Garc=EDa_G=F3mez?= <[EMAIL PROTECTED]> wrote: > > Friends: > > I need a good example to create a session and navigate an entire site with this > sessions. Also I need that sessions handle a three variables. > __

Re: [PHP] variable passing

2004-03-12 Thread Jason Davidson
what is the code your using to try and retrieve the var.. are you using $_REQUEST['equipment']; jason Martin S <[EMAIL PROTECTED]> wrote: > > I have this in equip-lend-index.php and want to pass the variable > $equipment back to the same page: > > PRINT " Equipment: action=\"$USERPREFIX/

Re: [PHP] Mail

2004-03-14 Thread Jason Davidson
Check the manual to be sure, but it appears that you have the arguments for the mail function in the wrong order . mail(to, subject, msg, headers) ... i beleive is the correct order. Jason "Will" <[EMAIL PROTECTED]> wrote: > > Hello All, > I am having a problem with sending a reply from a form.

Re: [PHP] Calculate

2004-03-16 Thread Jason Davidson
joel boonstra <[EMAIL PROTECTED]> wrote: > > On Tue, Mar 16, 2004 at 02:35:57PM +0200, Tommi Virtanen wrote: > > How I can calculate following: > > > > I have table: > > id(int) start_date(date)end_date(date) > > 001 2004-03-10 2004-03-12 > > 002

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 w

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 woul

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. > >

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] 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 > wi

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 : > echo phpinfo(); > ?> > This will give you information you need. > > O

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 >

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" > Sent:

<    1   2