RE: [PHP] Local version works - production breaks

2004-08-07 Thread Ed Lazor
u include error messages. My guess is that resolving a few errors will address a core problem and everything will start working. -Ed > That's what I thought. But the differences are glaring. Seems like none of > the > code wants to work. Navigation is a nightmare: header("locatio

[PHP] PHP performance

2004-08-10 Thread Ed Lazor
upped it to 128, restarted apache, and reran the script. Increasing available memory had no effect. MySQL is taking most of the cpu while running the script, but I figured I'd make sure to boost PHP as much as possible before going to the MySQL list for MySQL performance tips. Thanks, Ed

RE: [PHP] download script

2004-08-10 Thread Ed Lazor
The other guys addressed how to get the script working, but I thought I might also mention that you're presenting a potential security hole in your app by not filtering the file name before using it. You'll also want to use the realpath command on the full file name and path. > -Original Mess

RE: [PHP] SQL Functions

2004-08-10 Thread Ed Lazor
while you guys are talking about those DB classes, I've always opted to not use them because of associated overhead costs in cpu load, processing time, memory requirements, etc.. In other words, pages don't display as quickly when you add all of that overhead. Maybe things have changed

RE: [PHP] Cannot redeclare function

2004-08-10 Thread Ed Lazor
.. so thath you can identify why the error occurred. Using include_once fixes the problem but may not address bigger issues. -Ed > -Original Message- > Hi All, > > > I have a registration page that hasn't changed in several weeks. Today > it decided to fr

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
> -Original Message- >This may have already been addressed, but did you index any key fields? I do have some indices created, but I'll check to see if there are more than can boost things. Thanks =) Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Good point Jay. Luckily the server has dual 2.4gh xeon's with 2gig of ram *grin* > -Original Message- > [snip] > Any recommendations on how to make PHP run faster? > [/snip] > > A multiple CPU box. (It's a legitimate answer!) -- PHP General Mailing List (http://www.php.net/) To unsubsc

RE: [PHP] download script

2004-08-10 Thread Ed Lazor
> > Why would this be a security hole if I do not filter the file name before > I > use it? > > Thanks, > > Aaron > > > "Ed Lazor" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > The other guys addressed how to g

RE: [PHP] Re: php tools

2004-08-10 Thread Ed Lazor
> -Original Message- > From: "Jay Blanchard" > > Open http://www.google.com in the browser of your choice > > Type "PHP IDE" in the little box that appears there. > > Click on the links of returned results. > > I clicked on all of the links and nothing happened except for some web > pages

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
> Lot of good that did. I just threw 8 socket 7 AMD processors into a > box, and PHP isn't even the slightest bit faster. Did you try a curveball when throwing the processors into the box? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Thanks Vail, I'll check that out. -Ed > -Original Message- > If your problem is with a long running MySQL Query, and many of mine have > been, I would suggest you read > > http://dev.mysql.com/doc/mysql/en/Optimizer_Issues.html > > Your objective is to make s

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Ooo ahhh, thanks Curt =) > -Original Message- > To help figure out which queries are running slow there is the > php.ini setting: > > mysql.trace_mode=On > > Using this will have the php library analyze your queries and if > any of them do table scans php will issue a warning about it,

RE: [PHP] PHP performance [solution]

2004-08-10 Thread Ed Lazor
I added more indexes. The 20 minute report just took 40 seconds *grin* Thanks Everyone, Ed > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 10, 2004 3:07 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP performance >

RE: [PHP] PEAR SITE IF DOWN FROM MY IP

2004-08-10 Thread Ed Lazor
Probably so, because I can get there :P hehe > -Original Message- > From: Alfonso Baqueiro [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 10, 2004 3:14 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] PEAR SITE IF DOWN FROM MY IP > > Does pear admins custom to do nasty th

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Your tag line caught my attention - have any specs on performance boosts provided by Zend? > The only host with the Zend Performance Suite! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Unleashed

2004-08-10 Thread Ed Lazor
Any idea when PHP Unleashed by John Coggeshall will be released? I've tried emailing him with no luck and the guys at Powell's don't know when it'll be available. -Ed

RE: [PHP] PHP Unleashed

2004-08-10 Thread Ed Lazor
Thanks Curt =) > -Original Message- > From: Curt Zirzow [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 10, 2004 7:53 PM > To: 'PHP' > Subject: Re: [PHP] PHP Unleashed > > * Thus wrote Ed Lazor: > > Any idea when PHP Unleashed by John Cogge

RE: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Ed Lazor
Wow, Michael. Nice response. -Ed > -Original Message- > From: Michael Sims [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 11, 2004 9:03 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] PHP logic - Whats going on here? > > Kim Steinhaug wrote: > [snip] >

RE: [PHP] Mailinglists are honey for Spammers

2004-08-11 Thread Ed Lazor
> -Original Message- > SPAM wrote: > > Currently i'm working on a php script > > You forgot the part where you ACTUALLY ASK A QUESTION... Hehe I wonder if this is covered in the Newbie Guide -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

RE: [PHP] updating a frame from within php...

2004-08-11 Thread Ed Lazor
. Any activity occuring on the client/browser side needs to be handled by something like Javascript. Do a google on "javascript frame reload" and you'll see several examples of how to do this. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Ed Lazor
I don't think you can have a single mysql query do what you're wanting. Break it into mutiple queries. > -Original Message- > Hi List, > > I have a qty posted via a form field, lets say 46. > > In my mysql table I have two rows which I want to reduce their qty fields. > > 1 row has a

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Ed Lazor
I think John's right. Your schema sounds like it needs some serious work, especially if you're storing identical details with every single transaction. Go back and study relational database basics before trying to create an inventory management system or you'll end up in a worl

RE: [PHP] updating a frame from within php...

2004-08-11 Thread Ed Lazor
sing PHP's include command? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Ed Lazor
> -Original Message- > > Wow, Michael. Nice response. > > Could we please trim our posts? Thank you. Sorry. Thought I'd sent it to him only. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mod rewrite urls

2004-08-12 Thread Ed Lazor
It might be easier to do something like ForceType application/x-httpd-php Then you could have your url http://mycompany.com/view/10/?a=1&b=2&c=3 You can do the same thing with / but the scope ends up pretty big and creates a lot of extra unnecessary processing. -Ed > --

RE: [PHP] Email Address Testing

2004-08-13 Thread Ed Lazor
Aren't there PHP SMTP classes that allow you to verify the validity of an email address? > -Original Message- > >[snip] > >Question: Is it possible to know which one of my hundreds if not > >thousands of email addresses are invalid without ever going through my > >return to sender addres

RE: [PHP] Email Address Testing

2004-08-13 Thread Ed Lazor
Right. It's been a while, but I vaguely remember playing an SMTP class a while back that would actually establish a connection with the remote server and verify whether the address was a valid recipient. Of course, I also seem to recall that it took forever and bogged up a lot on addresses like A

RE: [PHP] auto include?

2004-08-13 Thread Ed Lazor
Yea, it depends on whether your server allows you to put settings in .htaccess. Try putting an invalid command in there like NotAValidDirective and test to see if your pages stop working and whether you get a log error saying that the htaccess file includes an invalid command. -Ed

RE: [PHP] auto include?

2004-08-13 Thread Ed Lazor
> > Jon > > On Aug 13, 2004, at 7:10 PM, Ed Lazor wrote: > > > Yea, it depends on whether your server allows you to put settings in > > .htaccess. Try putting an invalid command in there like > > NotAValidDirective > > and test to see if your pages stop

RE: [PHP] String compare of 7 text strings

2004-08-13 Thread Ed Lazor
Nice solution =) > -Original Message- > sort ( $array ); > if ( $array[ 0 ] !== $array[ count ( $array )-1 ] ) { > // Not all fields in the array are the same... > } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php+iptables

2004-08-14 Thread Ed Lazor
You might want to do a search for "PHP Firewall" and look at the other projects already out there. http://phpfwgen.sourceforge.net/ > -Original Message- > From: Joel n.solanki [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 9:53 PM > To: Robby Russell > Cc: php-users > Subject:

RE: [PHP] RIP Programming

2004-08-14 Thread Ed Lazor
Did you Google? "RIP programming"? And if that doesn't work, you'll probably have to clarify the term RIP. > -Original Message- > From: Harlequin [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 14, 2004 11:47 AM > To: [EMAIL PROTECTED] > Subject: [PHP] RIP Programming > > I know,

RE: [PHP] Language Searching

2004-08-14 Thread Ed Lazor
You should probably run this past the MySQL mailing list. They'll have a lot more success on how to search the database like this. -Ed > -Original Message- > From: Karl Timmermann [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 14, 2004 12:16 PM > To: [EMAIL PRO

RE: [PHP] newbie again, submit buttons don't work

2004-08-15 Thread Ed Lazor
Assuming you're using post, add $cmd = $_POST["cmd"]; Before you use $cmd and see if that makes a difference. If it does, register globals is likely disabled which is good. > -Original Message- > From: yawstick [mailto:[EMAIL PROTECTED] > Sent: Sunday, August 15, 2004 7:58 AM > To: [E

RE: [PHP] Compile

2004-08-16 Thread Ed Lazor
Is it true that turck is faster than Zend? > i think you are looking for something like turck mmcache. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Compile

2004-08-16 Thread Ed Lazor
Wow. I just saw the $2,880 price tag on the Zend Encoder. I guess Turck is better?! Who cares if it's a little bit slower than Zend (or even faster according to the Turck site). That's a lot of moola! > -Original Message- > http://www.zend.com/store/products/zend-encoder.php > > On Mo

RE: [PHP] [OFF] - Fraudulent web orders - any ideas?

2004-08-16 Thread Ed Lazor
Geesh, this sounds scary. Are you requiring account login before processing payments? > -Original Message- > I have a simple PHP store, and it appears that someone is using it to > test credit card numbers. I'm getting a very high number of small > orders every day, but a lot more decline

RE: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Ed Lazor
> -Original Message- > Jay Blanchard wrote: > > FYI -> This is (or use to be) a PHP list > > If I have a web server running php, how do I change the oil in my car? Have you tried the OilChange class from PHPClasses.org? ;) -Ed -- PHP General Mailing List (ht

RE: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Ed Lazor
What if you add a random seed to the URL? > -Original Message- > Hello Chris, > > I can't share the exact code ;) , but here is something very similar: > > http://slashdot.org/my/logout"; height="1" width="1"> > > If I load a web page with the above code, it should log me out of > s

RE: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Ed Lazor
Wouldn't it work to just make the script spit out a mime type header and a small (1x1) image when it's done to satisfy the browser's mime type requirements? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Ed Lazor
es any sense... :-) It does =) -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Ed Lazor
ink below goes to a page I found that describes CSRF a little differently than what Chris was presenting - to give a different perspective on things. http://www.squarefree.com/securitytips/web-developers.html -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

RE: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Ed Lazor
urt was saying. If IE has access to third party cookies disabled, the local page may refer to a script elsewhere, but it won't pass cookies back and forth. Squarefree.com's article (http://www.squarefree.com/securitytips/web-developers.html) recommends a few solutions. -Ed > --

RE: [PHP] CSRF attack not possible in I.E. 6.01 SP1?

2004-08-16 Thread Ed Lazor
the cookies belong. I think Curt was correct actually. Hopefully the test I sent earlier can confirm or at least cross-reference this. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FirstPay.net

2004-08-17 Thread Ed Lazor
Does anyone have information on PHP and FirstPay.net? I'm looking at using them to do credit card processing and wondering how easy it will be to communicate back and forth with them, whether scripts are available, etc.. Thanks, Ed

RE: [PHP] OO Theory Question

2004-08-17 Thread Ed Lazor
t; each page. Playing Devil's Advocate here... Why would you want to avoid database calls? If you're using default sessions management, all you're doing is trading this for accessing files on the server. Isn't the database faster? -Ed -- PHP General Mailing List (http://www.p

RE: [PHP] OO Theory Question

2004-08-17 Thread Ed Lazor
> -Original Message- > I don't know - is it? I would think so. It's optimized for speed on small data sets. Does anyone else have an opinion on this? -Ed > > > "Ed Lazor" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED]

[PHP] session_cache_limiter confusion

2004-08-20 Thread Ed Curtis
I've been looking through the online docs and man is this one confusing. Seems there are plenty of different ways to use this. Using this with forms, what is the best setting to avoid back button mishaps? (none,private, etc..) Thanks, Ed -- PHP General Mailing List (http://www.php.net

RE: [PHP] RE: [SPAM] Re: [PHP] Sessions vs. IE security

2004-08-24 Thread Ed Lazor
ws me third party cookies... > Does somebody idea? I'm not sure, but I don't think this is something that can be specified by the website. The user has to go into their IE settings and toggle whether they want to accept third party cookies. -Ed -- PHP General Mailing List (http://www

RE: [PHP] PHP Oficial Certification

2004-08-26 Thread Ed Lazor
The site has a spot where you can search for locations in your area that give the test. Buy a voucher and then call the nearest place giving the test and schedule to take it. > -Original Message- > From: Matt M. [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 26, 2004 9:30 PM > To: Cur

RE: [PHP] PHP Oficial Certification

2004-08-28 Thread Ed Lazor
> -Original Message- > Of course, we tried very hard to make this one have a fair amount of value > but not just be difficult for the sake of being difficult. Why not offer multiple PHP certifications varied by topic and complexity? Will certs expire? =) -- PHP General Mailing List (h

RE: [PHP] PHP Oficial Certification

2004-08-28 Thread Ed Lazor
cummentation > (comments, uml, user docs) > Some what like the ISO 9002 certification but more software oriented. It sounds like you're describing what I'd expect to see from someone with an IS / IT degree. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] 5.0.1 broke mbstring regex?

2004-08-29 Thread Ed Lazor
> I feel it may actually be a PHP error with mbstring regex in the > newest PHP 5.0.1 - but won't know until another PHP user on another > platform gives it a try. Have you checked OS library dependencies? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] Hire a developer

2004-08-29 Thread Ed Lazor
> -Original Message- > joshua wrote: > > > If you wish to have more > > information on this project, please contact me off-list: > > joshua$abbott[at]crystalstream[dot]net > > > > replacing: > > $ with . > > [at] with @ > > [dot] with . > > I am interested. Can you please contact me at >

RE: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread Ed Lazor
> -Original Message- > Does anyone know of Blog sw available in the marketplace written in PHP > and > maybe MySQL? Go to Google and search for "blog php". I just did and there were several options available. -Ed -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] General copyright question

2004-09-01 Thread Ed Lazor
Google: "how to copyright" > -Original Message- > From: Kevin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 8:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] General copyright question > > Hi there, > > I have seen some scripts that are copyrighted and one can not modi

RE: [PHP] Session understanding

2004-09-02 Thread Ed Lazor
nd you don't have to worry about trying to tell which window is which. There are times where I'll branch windows further and end up needing to communicate to back and forth, but then I just use Javascript on the client-side using the window.opener objects. Hope that helps =) -Ed -

[PHP] PHP OOP Question

2004-09-07 Thread ed . lazor
Is it bad practice for a class to have a variable and method of the same name? For example: class product { var $Name; function Name() { return stripslashes($this->Name); } } Thanks, -Ed This message

[PHP] image size?

2004-09-09 Thread Ed Lazor
Is there a way to get the size of an image created using the imagecreate function? The PHP manual section on image functions mentions getimagesize, but that only works on remote or local files. Thanks, Ed

RE: [PHP] Re: image size?

2004-09-09 Thread Ed Lazor
> -Original Message- > Ed Lazor wrote: > > Is there a way to get the size of an image created using the imagecreate > > function? > > I'm guessing it would be xsize x ysize x colour depth = size in bits ? What's the default color depth? -Ed

RE: [PHP] image size?

2004-09-10 Thread Ed Lazor
> -Original Message- > On Friday 10 September 2004 06:59, Ed Lazor wrote: > > Is there a way to get the size of an image created using the imagecreate > > function? > > Size as in ... ? I was looking for the size of the image in bytes. -Ed -- PHP Ge

[PHP] PHP5 OOP

2004-09-10 Thread Ed Lazor
, and Perl. Thanks, Ed

RE: [PHP] PHP5 OOP

2004-09-10 Thread Ed Lazor
Thanks everyone for the recommendations =) > -Original Message- > On Fri, 10 Sep 2004 15:09:57 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote: > >Any recommendations on the best PHP5 OOP book to get? I have Advanced > PHP > >Programming by George Schlossnagle. It&

[PHP] Class dependencies

2004-09-11 Thread Ed Lazor
ink? What approaches do you guys use on this? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Class dependencies

2004-09-11 Thread Ed Lazor
assDependent was unable to load class Test. Hehe Having the error message tell me which line number would also be super cool, but maybe that's not possible. Anyway, I look forward to hearing what you guys think. Thanks, Ed Scripts: ---

RE: [PHP] Enabling PHP5's SOAP on Windows

2004-09-11 Thread Ed Lazor
Add to php.ini Extension=php_soap.dll I didn't see a line in php.ini to uncomment, but I found a page that confirmed this: http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_21080398 .html > -Original Message- > From: John Smith [mailto:[EMAIL PROTECTED] > Sent: Satur

RE: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-11 Thread Ed Lazor
t; > Is there a way to do this with php? > > $htmltext = "$plaintext"; > > Season to taste. Or explain exactly what you mean. Sounds almost like they're talking about http://www.interaktonline.com/products/KTML/ -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MS Outlook 2003 Mail listing

2004-09-12 Thread Ed Lazor
Check out the manual on the date function. It allows you to get names from dates. The PEAR date stuff will allow you to do date math. > -Original Message- > From: Rajesh [mailto:[EMAIL PROTECTED] > Sent: Sunday, September 12, 2004 10:04 PM > To: [EMAIL PROTECTED] > Subject: [PHP] MS Outl

RE: [PHP] Class Instance Inheritance

2004-09-13 Thread Ed Lazor
Here's one way, but this may not be completely what you want because the value of variable foo doesn't change. -Ed Class foo { Static $foo; Function foo() { $this->foo = 10; } } > -Original Message- > From: Gerard Sa

RE: [PHP] Can I name a session variable using another variable?

2004-09-13 Thread Ed Lazor
Here's another option as well, in case it helps out: $var1 = "Pizza"; $var2 = "var1"; $var3 = $$var2; print "var3 = $var3"; Output: var3 = Pizza > -Original Message- > Ok, assuming everything's working correctly except for the use of > $prevtime in the SESSION, then here's one answer

[PHP] extended class question

2004-09-13 Thread Ed Lazor
How come the output to this script is "World Trade Center" instead of "Pizza Delivery"? Thanks, Ed var1 = "World Trade Center"; } function get_var1() {

RE: [PHP] Re: image size?

2004-09-13 Thread Ed Lazor
es the size of the > created image based on the dimensions of the original. > > Paul Birnstihl wrote: > > > Ed Lazor wrote: > > > >> Is there a way to get the size of an image created using the > imagecreate > >> function? > > > > &

RE: [PHP] extended class question

2004-09-13 Thread Ed Lazor
> Because test's var1 is private. > > test->var1 isn't accessible by class testing, so the assignment you're > doing in testing's constructor is assigning "Pizza Delivery" to > testing->var1 instead. > > When you call $test2->get_var1() you're calling the parent's get_var1() > method, which print

RE: [PHP] Re: image size?

2004-09-14 Thread Ed Lazor
s the full path to the image. The full path can be a URL or it can be a file path. If you want it to access a URL, the URL needs to be fully formed - ie. Including the http://. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image question

2004-09-14 Thread Ed Lazor
;t generally optimal. I've chosen this route because performance isn't an issue and ease of tracking tens of thousands of images is important. Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image question

2004-09-14 Thread Ed Lazor
Got it. Thanks Jason. > -Original Message- > > Imagejpeg($im); // successfully displays image > > Use the ob_*() functions to capture the output. See archives for details. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Image question

2004-09-14 Thread Ed Lazor
data from the database in a way that I can continue to manipulate it with the image functions, like imagejpeg($data)? Thanks, Ed > -Original Message- > From: Ed Lazor [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 14, 2004 5:20 PM > To: 'Jason Wong'; [EMAIL PRO

RE: [PHP] mysql_connect does not connect

2004-09-18 Thread Ed Lazor
This has got to be one of the funniest threads I've seen on the PHP list in a really long time. However, unless someone can come up with more humorous replies, I vote that it be killed. -Ed > -Original Message- > From: Jason Davidson [mailto:[EMAIL PROTECTED] >

RE: [PHP] List Etiquette

2004-09-18 Thread Ed Lazor
> -Original Message- > >What side is that? Doesn't it depend on national preference? > > When I overtake others, I usually take to the other lane ... is that the > wrong side, or the right side of the road, for what I'm doing ? Depends on your perspective :

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Ed Curtis
e not used them. Just giving the information. Ed On Sat, 18 Sep 2004, raditha dissanayake wrote: > Michael Mao wrote: > > > Is there a way to capture a snapshot of a html page and save it as a > > jpg using php? > > > This is something that's very very hard to

[PHP] Correct context

2004-09-20 Thread Ed Curtis
"Price Change" AND $row['photo_check'] not equal to "" Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: **[SPAM]** [PHP] Correct context

2004-09-20 Thread Ed Curtis
t; > Note the parentheses to define preference order. That's what I was looking for. Thanks again, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Does PHP need another mailing list???

2004-09-22 Thread Ed Lazor
to help people who don't know any better. This is the goal of the ideas I've presented. The ideas won't do anything to stop those who don't care, but maybe the number of non-PHP questions will decrease overall. It seems worth a try. -Ed -- PHP General Mailing List (http://

RE: [PHP] intenger

2004-10-14 Thread Ed Lazor
Do you mean an integer? As in $i = 5; Print $i; ? > -Original Message- > From: Juan Pablo Herrera [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 14, 2004 10:19 AM > To: [EMAIL PROTECTED] > Subject: [PHP] intenger > > Please, i need output a intenger, what function can i use f

RE: [PHP] User Defined Forms

2004-10-14 Thread Ed Lazor
d present additional forms. You could even design the logic behind forms to respond based on information that's entered. For example, if the first form asks for the client's city, follow-up forms may prompt for data specific to that city. Hope this helps, -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Strange Problem with ctype_digit

2004-09-27 Thread Ed Lazor
meters, but you could probably create a wrapper with gettype to handle that in the meanwhile. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] regular expression help

2004-09-28 Thread Ed Lazor
as parse errors. I'm not sure, but now I'm stuck having to go through all of the code to change the coding style my editor (Dreamweaver MX 2004) allows me to do a global search and replace using regular expressions. I have no idea what regular expression I'd use for somethin

RE: [PHP] regular expression help

2004-09-29 Thread Ed Lazor
Thanks to everyone who sent in patterns =) They worked like a charm =) > > $pattern = "/\{\$(.+?)\}/i"; > $replacement = "\"\.\$$1\.\""; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Images in PHP and MySQL

2004-09-30 Thread Ed Lazor
files. -Ed > -Original Message- > HEre is a question that I have been wondering about: > >- Does the image file use more space in the db or as a file itself > (Do Not count the extra data that one would store in the db along with > the image... ie. ID number) -- P

RE: [PHP] Stored procedures in Mysql

2004-09-30 Thread Ed Lazor
> -Original Message- > Not Really. Are you sure? http://dev.mysql.com/doc/mysql/en/Stored_Procedures.html > > On 30 Sep 2004, at 21:50, Sagar C Nannapaneni wrote: > > > Hi folks, > > > > I wonder whether Mysql supports procedures and triggers > > > > :? > > > > /sagar -- PH

[PHP] array sort question

2004-10-01 Thread Ed Lazor
Any ideas on how I could sort this array by Title? $menu[1]["ID"] = 5; $menu[1]["Title"] = "Test 1"; $menu[2]["ID"] = 3; $menu[2]["Title"] = "Test 4"; $menu[3]["ID"] = 56; $menu[3]["Title"] = "Test 8"; $menu[4]["ID"] = 44; $menu[4]["Title"] = "Test 3"; Thanks, -Ed

RE: [PHP] array sort question

2004-10-02 Thread Ed Lazor
function cmp ($a, $b) { return strcmp($a["Title"], $b["Title"]); } uasort($list, "cmp"); -Ed > -Original Message- > Sorry for the empty reply (miss slide of the finger on my touch pad). > You can use array_multisort(); The code would look something like

[PHP] Question about handling credit cards

2004-10-04 Thread Ed Lazor
le, if you bill the customer when products ship, rather than when the order is received. Or, if the customer decides to have instock items ship now and back ordered items ship when they arrive - which results in two shipping charges. How do you guys handle this? -Ed -- PHP General Mai

[PHP] UPS Online Tools and PHP?

2004-10-04 Thread Ed Lazor
Has anyone integrated the UPS Online Tools with their site using PHP? http://www.ups.com/content/us/en/bussol/offering/technology/automated_shippi ng/online_tools.html -Ed

RE: [PHP] Re: UPS Online Tools and PHP?

2004-10-05 Thread Ed Lazor
Thanks Manuel, I'll check it out. -Ed > -Original Message- > http://www.ups.com/content/us/en/bussol/offering/technology/automated_ship > pi > > ng/online_tools.html > > You may want to take a look at this class that supports UPS: > > http://www.p

RE: [PHP] A question of style....

2004-10-05 Thread Ed Lazor
Chapter 1 of Advanced PHP Programming, by George Schlossnagle, ISBN 0-672-32561-6. http://www.blueshoes.org/en/developer/coding_guidelines/ > -Original Message- > So I'm sitting here writing code and I'm thinking about my own style of > writing > and formatting my php code(I use a mix of

RE: [PHP] Order of extensions in php.ini matters?

2004-10-05 Thread Ed Lazor
You have the correct order. Exif relies on functionality provided by mbstring.dll, therefore it must be loaded after it. > -Original Message- > I'm trying to use the EXIF extension (PHP 5, Windows > XP). Order didn't seem to matter before (PHP 4). But > now, if my php.ini is like: > > ex

RE: [PHP] Images in PHP and MySQL

2004-10-06 Thread Ed Lazor
> On Friday 01 October 2004 05:52, Ed Lazor wrote: > > Images take up more space when stored in the db, because you're storing > raw > > binary data. Gif and jpeg are compression methods that convert binary > data > > into something smaller that can be stored in a

RE: [PHP] Muti-Dimensional Array Help Please

2004-10-07 Thread Ed Lazor
> -Original Message- > From: Nick Wilson [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 07, 2004 6:40 AM > To: php-general > Subject: [PHP] Muti-Dimensional Array Help Please > > hello all, > > I have some text files in a directory that contain newline delimited IP > addresses. Here

[PHP] mcrypt install question

2004-10-07 Thread Ed Lazor
PHP is installed from rpm's. Is it possible to install mcrypt / libmcrypt from rpm and enable it in PHP without having to recompile? Thanks, Ed

<    1   2   3   4   5   6   7   >