Re: [PHP] CSS & tables

2009-05-15 Thread Ed Curtis
PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise.

Re: [PHP] Re: New Horizon! scam

2009-03-02 Thread Ed Curtis
Alan Bell wrote: that would appear to be a scam of some sort, not sent by Alan Lord at all, he can spell electronic and generally speaks English. Alan. Alan Lord wrote: New Horizon! i would like to introduce a good company who trades mainly in electornic products. Now the company is under sa

[PHP] Which file "Included" me?

2009-02-18 Thread Ed Curtis
Is there a function or variable that will tell me if a file has asked another file to include something much the same as $_SERVER['HTTP_REFERER'] works. I have a script that is included on every page of a site but also needs to include some javascript only if it's called from a certain URL. t

Re: [PHP] Chrome 1.0 released

2008-12-24 Thread Ed Curtis
Bill Guion wrote: At 9:30 AM -0500 12/14/08, tedd wrote: At 3:08 PM -0800 12/13/08, Yeti wrote: I have to defend poor little IE a little now. It supports XHTML and CSS2 pretty well so far. And those standards came out a couple of months ago. Even a blind pig finds an acorn every once in a wh

Re: [PHP] alphabetical filenames with readdir

2008-08-25 Thread Ed Curtis
Ed Curtis wrote: Is there a way to make readdir output filenames alphabetically? Thanks, Ed Never mind. I figured out how to do it using an array and sort. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] alphabetical filenames with readdir

2008-08-25 Thread Ed Curtis
Is there a way to make readdir output filenames alphabetically? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Code works alone but not with other code.

2008-07-25 Thread Ed Curtis
I've got this chunk of code (included) that used to work fine in a script up until a couple of weeks ago. Nothing has changed in the php page at all, it just quit working. If I take this chunk of code and place it alone in a php script it works just fine, but only by itself. I don't understand

Re: [PHP] strlower problem

2008-06-02 Thread Ed Curtis
Michael Kubler wrote: Does : /echo strtolower("CL22");/ work? You could also try : /var_dump($strLow); / Ed Curtis wrote: Richard Heyes wrote: Ed Curtis wrote: I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I&#x

Re: [PHP] strlower problem

2008-06-02 Thread Ed Curtis
Richard Heyes wrote: Ed Curtis wrote: I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million times before with other non-numerical strings. $thisStr = "CL22"; $strLow = strtolower($thisStr); echo

[PHP] strlower problem

2008-06-02 Thread Ed Curtis
I'm converting upper case characters in a string to lower case and am coming up with an empty string. As I've done a million times before with other non-numerical strings. $thisStr = "CL22"; $strLow = strtolower($thisStr); echo $thisStr; Why does $strLow come up empty? Thanks, Ed -- PHP

Re: [PHP] Upgrade

2007-09-21 Thread Ed Curtis
Ben wrote: It really depends on your situation. We are an ISP hosting lots of website. Upgrading from 4 to 5 means a lot of sites will have trouble. Personally I have some problem of upgrading from 4 to 5. The below codes work on 4: include("DB/DataObjects.php"); $pro = DB_DataObject::facto

[PHP] Upgrade

2007-09-21 Thread Ed Curtis
I'm currently running Debian Woody with PHP 4.1.2 installed by default. It's really stable and I like it alot. Would I run into any problems upgrading it to say 4.3.0. There are some functions I need in it that 4.1.2 doesn't have. I'm not ready to make the jump to PHP5 yet. I've tried it on a t

Re: [PHP] using preg_match

2007-05-16 Thread Ed Curtis
Christian Haensel wrote: Hi Ed, did you try the backslash as escape character? That's what did it. I was thinking the \ was the escape for the command but wanted to make sure. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using preg_match

2007-05-16 Thread Ed Curtis
I'm trying to use preg_match to find a string in a system path. What I need to do is see if the string '/realtors' exists in a variable named '$path'. I know '/' is used as a container within the command itself. How do I escape it to find the string '/realtors'? Thanks, Ed -- PHP General

Re: [PHP] db query not working

2007-03-07 Thread Ed Curtis
It is an old guy thing, at least in my case (trivia: I was born the day after the ENIAC was turned off) Aha! October 3, 1955 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
Edward Kay wrote: you've got a stay quote mark in one of your PHP vars. Not it, I looked and there's nothing there. I'm sure it's because you've got some stray characters in your output that mess it up. It would help if you actually posted the source rather than just saying it's OK, when it

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page where this call resides and all of them work perfectly except for this one. Does this error occur because I'm sending the variables to another script that d

Re: [PHP] php and javascript error

2007-03-07 Thread Ed Curtis
Németh Zoltán wrote: 2007. 03. 7, szerda keltezéssel 10.59-kor Ed Curtis ezt írta: I've just run into this problem this morning This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page

Re: [PHP] db query not working

2007-03-07 Thread Ed Curtis
Satyam wrote: I saw two people pointing two errors on the SQL insert statement which you would have found yourself had you put the 'or die()' at the end of the query, as someone else suggested. Do never leave any query without the 'or die()' after it (or any other means to check if mysql_query

[PHP] php and javascript error

2007-03-07 Thread Ed Curtis
I've just run into this problem this morning This produces an "Error on Page" in IE 7, but works perfectly in Firefox and Netscape. I have several other javascript calls on the page where this call resides and all of them work perfectly except for this one. Does this error occur becau

[PHP] db query not working as expected

2007-03-07 Thread Ed Curtis
I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query ("DELETE FROM tmphitsmag"); $result = mysql_query ("SELECT DISTINCT company FROM view_log WHERE company != ''"); if ($row = mysql_fetch_array($result)) { do {

[PHP] db query not working

2007-03-07 Thread Ed Curtis
I have this code: mysql_connect ($local_host, $local_user, $local_pass); mysql_select_db ($local_db); mysql_query ("DELETE FROM tmphitsmag"); $result = mysql_query ("SELECT DISTINCT company FROM view_log WHERE company != ''"); if ($row = mysql_fetch_array($result)) { do {

Re: [PHP] Is this really a pdf?

2006-08-07 Thread Ed Curtis
ust match it against a mime type your looking for. Ed Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Silly varible question

2006-07-13 Thread Ed Curtis
> Just make $item a 2-dimensional array, with the first diemnsion addressed by > $count; so: > > $item[$count][] = $_POST['phone']; > $item[$count][] = $_POST['category']; > $item[$count][] = $_POST['copy']; > $item[$count][] = $_POST['pic_style']; > $item[$count][] = $cost; > $item[

[PHP] Silly varible question

2006-07-13 Thread Ed Curtis
I know this is probably simple as all get out but it's early and I can't find an answer anywhere after searching for a while I need to assign a number to a variable and then use that variable in a session to store an array. It's for a shopping cart system I'm building. What I've got is:

[PHP] getimagesize()

2006-04-07 Thread Ed Curtis
Can you call getimagesize() multiple times in one script? I'm trying to use it multiple times but it only seems to work in the first loop I call it in. I read something in the docs about it cacheing the results and didn't know if this has something to do with it. I also tried creating an array

[PHP] Handling File uploads pre 4.2.0

2005-03-11 Thread Ed Curtis
I need a way to make sure an upload has been "uploaded" correctly to my server. I know version 4.2.0 has the $_FILE['userfile']['error'] directive but unfortunately I'm stuck with verision 4.1.2 at the moment and upgrading may be a way off for me. Should I use file_exists($_FILES['userfile']['tm

Re: [PHP] fireing function with onChange

2005-02-10 Thread Ed Curtis
On Thu, 10 Feb 2005, Richard Lynch wrote: > Ed Curtis wrote: > > On Thu, 10 Feb 2005, Richard Lynch wrote: > >> > >> In honor of our recent Super Bowl, here is a slow-motion instant replay: > >> > >> Bob: "Well, it's a great day so far f

Re: [PHP] fireing function with onChange

2005-02-10 Thread Ed Curtis
On Thu, 10 Feb 2005, Richard Lynch wrote: > > In honor of our recent Super Bowl, here is a slow-motion instant replay: > > Bob: "Well, it's a great day so far for PHP today, isn't it Jim?" > Jim: "You've got that right, Bob! Now let's check out this play." > Bob: "Watch as the user surfs right t

[PHP] Validating input

2005-01-28 Thread Ed Curtis
I've been looking at the docs and found preg_match and preg_match_all but these functions only seem to match 1 specific search item. I want to make sure a variable (say $mlsnumber) contains only numbers and no spaces. What would I use to accomplish this? Thanks Ed -- PHP General Mailing List (

Re: [PHP] Display only one filed of the repeated records

2004-11-30 Thread Ed Curtis
On Tue, 30 Nov 2004, Ahmed Abdel-Aliem wrote: > Hi, > i have a tables in database which fields is > id - title - category > > what i want to do is to display the categories entered in the > categories fields, without repeating any of them > for eample if the records is like follow > > ID

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

2004-09-20 Thread Ed Curtis
On Mon, 20 Sep 2004, Jay Blanchard wrote: > There are several ways here is one > > if(("" != $row['photo_check']) && (("Copy Change" != $entry) || ("Banner > Change" != $entry) || ("Price Change" != $entry))) > > Note the parentheses to define preference order. That's what I was looki

[PHP] Correct context

2004-09-20 Thread Ed Curtis
Before I go screwing this code up I thought I would ask for the formatting. How would you write the following in PHP? if $entry not equal to "Copy Change" OR "Banner Change" OR "Price Change" AND $ro

Re: [PHP] thumbnail of webpage

2004-09-20 Thread Ed Curtis
If you have a Linux box available here's something to try although it does have some required software. http://www.babysimon.co.uk/khtml2png/index.html There is also a link on the site for a commercial product for Windows that does the same thing. I can't endorse either one as I have not used

[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/) To un

Re: [PHP] Printing using php script CRON

2004-07-27 Thread Ed Curtis
You could try this: http://marginalhacks.com/Hacks/html2jpg/ Save the page as an image, and then run it through the printer. It does have some overhead though to get it done. Hope it helps, Ed On Tue, 27 Jul 2004, Vern wrote: > I feel like I taking a hammer and well I'm sure you all know

Re: [PHP] quotes in text.

2004-07-16 Thread Ed Curtis
On Fri, 16 Jul 2004, John W. Holmes wrote: > Ed Curtis wrote: > > On Fri, 16 Jul 2004, Justin Patrin wrote: > >>This is why he said: "Since you seem to have magic_quotes_gpc enabled, > >>you can put the value directly into your query." > >> >

Re: [PHP] quotes in text.

2004-07-16 Thread Ed Curtis
On Fri, 16 Jul 2004, Justin Patrin wrote: > This is why he said: "Since you seem to have magic_quotes_gpc enabled, > you can put the value directly into your query." > > You shouldn't use htmlentities when putting it into the DB. Use it > when displaying the text. I tried it both ways and it on

Re: [PHP] quotes in text.

2004-07-16 Thread Ed Curtis
On Fri, 16 Jul 2004, John W. Holmes wrote: > Let's say you have $_POST['text'] from the user. > > To display the value back to the user with magic_quotes_enabled, you'd > do this: > > echo htmlentities(stripslashes($_POST['text'])); > > To put the value into a hidden form element, you'd do this

[PHP] quotes in text.

2004-07-16 Thread Ed Curtis
base (Trying out the) What exactly do I need to do to the text so that any quotation marks (single or double) get input into the database. TIA, Ed Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: SOLVED! [PHP] Echoing a value

2004-07-12 Thread Ed Curtis
On Mon, 12 Jul 2004, Pablo Gosse wrote: > Try changing: > > fputs($ap, $row['users.name']); > fputs($ap, $row['users.company']); > > To: > > fputs($ap, $row['name']); > fputs($ap, $row['company']); > > That should do the trick. > > Cheers, > Pablo > That did the trick! I knew it was something sim

[PHP] Echoing a value

2004-07-12 Thread Ed Curtis
I'm having some trouble echoing a value to a file that is being pulled from a MySQL database. I've included my code below I'm sure it's something really simple but I'm not seeing it. $row['users.name'] and $row['users.company'] echo nothing while $row['cnt'] echoes it's expected values. If anyone

[PHP] IE 6 hotix and header problem

2004-03-09 Thread Ed Curtis
Does anyone happen to have the link on microsoft's support site that addresses the problem with the latest IE 6 hotfix and incomplete headers being sent? I can't seem to find my bookmark and I can't access the archive site to find it. Thanks, Ed -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Re: Image resize on upload

2004-02-26 Thread Ed Curtis
Make sure you use imagecreatetruecolor() with GD when resizing images or you'll get some undesirable results. Imagemagick's convert and mogrify worked well for me although I was resizing an uploaded image. Ed Curtis On Thu, 26 Feb 2004, Will wrote: > Thanks!! I found some doc

Re: [PHP] thumbnail

2004-01-21 Thread Ed Curtis
> No need to copy+mogrify; just use > > convert [options] /path/to/old /path/to/new > > instead :-) I wasn't aware of that command. This list is great!! Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] thumbnail

2004-01-21 Thread Ed Curtis
> [snip] > OK, but how? I already use GD, I need to now how to create a thumbnail, > > somebody now how to use the GD functions to create a thumbnail??? > [/snip] > > http://www.php.net/GD Personally, I think Imagemagick's mogrify works alot better. I've been using GD for the past few months a

RE: [PHP] picturing webpage

2004-01-09 Thread Ed Curtis
king for but this might be what you're after. It was posted on Freshmeat just this week. http://www.babysimon.co.uk/khtml2png/ Ed Curtis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: progress in PHP

2003-12-23 Thread Ed Curtis
> Join the 11,000 people who use megaupload progress bar (with a little > help from perl) > http://www.sourceforge.net/projects/megaupload/ I tried. It wasn't worth all the perl mods I would to have had to install to make it work. Ed -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Re: progress in PHP

2003-12-22 Thread Ed Curtis
> Now that might interest me. So what has been added to the PHP codebase > that makes this work? And what tweaking would I need to do? [Can't I > just have it display in the current window? Why bother with a popup?] >From rumors I've heard on the list a future version of PHP may have a progr

Re: [PHP] Working pop-up progress window

2003-12-22 Thread Ed Curtis
> If I understand you correctly, when you call window.close on the next > page you want it to close the child window. I am not sure if this is > possible > with Javascript if you go to a new page, it might be. You would want > to not call window.close but something like myPopUp.close() on the

[PHP] Working pop-up progress window

2003-12-22 Thread Ed Curtis
I've read through the archives and run through some of the suggestions given for progress bars and pop ups with animated gifs and haven't had much luck. I've had the most luck using the pop-up window method. In the element I call onSubmit="{open some window here}" This works as the pop-up appe

Re: [PHP] Re: Building a query string

2003-12-03 Thread Ed Curtis
> To answer the question, $query_str.=" AND garage = '$garage' "; > > BUT. If $garage is an id (numeric), then you should use > $garage=abs($garage) first in order to defeat SQL injection. If it's a > string, well, say so and we'll tell you what to do (a lot to explain, > and not useful if it's an

[PHP] Building a query string

2003-12-03 Thread Ed Curtis
This list has helped me out alot and I hope it can do it one more time. I need to build a MySQL query based on 11 different options from a form. Some options will have values others will be checkboxes to say include in the query. How I thought about going at it was using a default query string

Re: [PHP] Comparing 2 strings.

2003-11-19 Thread Ed Curtis
I guess I did miss that it says that the comparison is case sensitive and binary safe. Thanks, Ed On Wed, 19 Nov 2003, CPT John W. Holmes wrote: > From: "Ed Curtis" <[EMAIL PROTECTED]> > > > I currently store text from a MySQL blob field in a string $orig_text

[PHP] Comparing 2 strings.

2003-11-19 Thread Ed Curtis
I currently store text from a MySQL blob field in a string $orig_text. I need to compare that with something someone type in from a form stored in $new_text. How would I go about comparing them to see if they are different or exactly the same? strcmp doesn't look like it will handle this too well

RE: [PHP] Concerning number_format()

2003-11-06 Thread Ed Curtis
Duh. Yeah, works like a charm. Thanks, Ed On Thu, 6 Nov 2003, Jay Blanchard wrote: > [snip] > $price = "1234.567890"; > > $price = number_format($price, 2, '.', ''); > > echo $price; > > Returns 1234.567890 > > Should return 1234.57 correct? > [/snip] > > Use a new variable to hold the modif

[PHP] Concerning number_format()

2003-11-06 Thread Ed Curtis
I'm using an example straight from the manual on the php site that doesn't seem to work. $price = "1234.567890"; $price = number_format($price, 2, '.', ''); echo $price; Returns 1234.567890 Should return 1234.57 correct? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Stripping Decimals

2003-11-04 Thread Ed Curtis
Thanks! Works like a charm. Ed On Tue, 4 Nov 2003, CPT John W. Holmes wrote: > From: "Ed Curtis" <[EMAIL PROTECTED]> > > I currently use number_format() and str_replace() to remove a "," or "$" > > if entered and reformat it as a pr

[PHP] Stripping Decimals

2003-11-04 Thread Ed Curtis
I currently use number_format() and str_replace() to remove a "," or "$" if entered and reformat it as a price for an item. I've asked the user not to use decimals but some still do. How do I remove a decimal and anything after from a number in a varable? Thanks, Ed -- PHP General Mailing Li

[PHP] Multidimensional Arrays

2003-10-20 Thread Ed Curtis
I'm trying to submit multiple values to a variable within an tag by using a value such as value="this,that" There are multiple statements on this form each counting up from 1 using $count and $listings as such. This and That That and This On the recieving side I'

[PHP] Avoiding "Warning - Page Expired"

2003-09-30 Thread Ed Curtis
Is there any way to avoid having this happen using php if someone sits on a page too long and clicks the back button to go back to a form they have filled out and not having the values in a session? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] One variable not equal to 2 values.

2003-09-25 Thread Ed Curtis
How would I write this statement: if $thisvar is not equal to this value or that value. { do stuff } Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Types

2003-09-15 Thread Ed Curtis
> Didn't google hard enough :) > > .pm5 application/x-pagemaker > I'd guess that can be extended to pm7 and 65 - I've seen x-pagemaker5 as > well. > > pmd is also pagemaker according to filext.com, as well as some software I've > never heard of. > > QXP is a good one, and you may need to

RE: [PHP] File Types

2003-09-15 Thread Ed Curtis
On Mon, 15 Sep 2003, Javier Tacon wrote: > > You could use the function exif_imagetype() to see what type of file > has been uploaded. > The filetypes are not all images types. Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Types

2003-09-15 Thread Ed Curtis
On Mon, 15 Sep 2003, Raditha Dissanayake wrote: > You don't need to look any further than mime.types files included in > your apache distro. Did that as well as googled for the list of extensions. Still can't seem to find the mime type for .pm7, .p65, .qxp and .pmd. -- PHP General Mailing List

[PHP] File Types

2003-09-15 Thread Ed Curtis
I currently limit file types in an upload script by using an allowed types array $allowed_types = array("image/jpeg", "image/gif"); I also need to allow files of with the following extentions. .tif, .pm7, .p65, .pdf, .qxp, .pmd, .eps Is there a site out there anywhere that gives the mime ty

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Ed Curtis
2003-09-11 at 15:39, Ed Curtis wrote: > > Is there any type of criteria that would point a user to directoryA or > > directoryB? > > > > I recently rebuilt a site that handled a couple thousand > > different working directories for clients but used only one set of

Re: [PHP] some kind of redirection (not the header function)

2003-09-11 Thread Ed Curtis
Is there any type of criteria that would point a user to directoryA or directoryB? I recently rebuilt a site that handled a couple thousand different working directories for clients but used only one set of scripts for all. The user would have to login and variables were pulled from a database

[PHP] Acessing session vars

2003-08-15 Thread Ed Curtis
I just started using sessions and am having some trouble understanding how to pull values out of sessions to use in another page. I set the values as: session_start(); session_register{'magazine'); session_register('company'); The data is saved as a session because I can read the file located

[PHP] Problems with variables and PHP/HTML

2002-09-24 Thread Ed Curtis
RL such as: It becomes a null value or doesn't get passed at all. I thought this might have something to do with track-vars but track vars are enabled by default in PHP since before my version. When I compiled everything I compiled PHP as a DSO. Any ideas? TIA, Ed Curtis -- PHP Gener