RE: [PHP] How to eliminate "Warning: Undefined variable: " messages

2001-10-05 Thread Jack Dempsey
check out error reporting at php.net -Original Message- From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] How to eliminate "Warning: Undefined variable: " messages Hi All, Is these any parameter in php.ini tha

RE: [PHP] accessing localtime array directly

2001-10-05 Thread Jack Dempsey
in one line, i think it many cases, it's easier/better/more efficient to just grab the array in one line, then access and copy the val in the second line, as you did... jack -Original Message- From: John A. Grant [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 5:22 PM

[PHP] PHP to replace javascript

2004-09-02 Thread Jack Gates
? If yes, will someone tell me where in the manual on the php.net site I can find the information to learn how to do this? I have been looking through the manual on the site but without knowing the name or names of what I am looking for it is real hard to find it. TIA, -- Jack "Rhino&q

Re: [PHP] Re: PHP to replace javascript

2004-09-03 Thread Jack Gates
On Friday 03 September 2004 01:11 am, Sam Hobbs wrote: > "Jack Gates" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Javascript can open a separate and specifically sized window from a web > > page > > when a user clicks on a link

[PHP] PHP site ?

2004-09-04 Thread Jack Gates
internal network address, it is just for example.) osCommerce gets more than just the numbers, they get the name as well I think. Thanks for any insight on what they might be doing. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarc

Re: [PHP] PHP site ?

2004-09-04 Thread Jack Gates
Thanks for all the responses. Now I am satisfied and can leave this one alone. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Softwar

[PHP] Does any one else get this?

2004-09-04 Thread Jack Gates
x27;t exist or is inactive. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP site ?

2004-09-04 Thread Jack Gates
I replaced this: $address = getenv("REMOTE_ADDR"); with this $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); and now I am getting exactly what I was trying to get. -- Jack "Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.mornin

Re: [PHP] Re: Does any one else get this?

2004-09-04 Thread Jack Gates
Sorry! Chris, I meant to send this to the list. On Saturday 04 September 2004 10:17 pm, Chris Martin wrote: > Jack Gates wrote: > > Every time I post to the list, I get an undeliverable on the address > > below. Does any one else get this? > > > > If this address i

[PHP] PHP to execute hyperlink?

2004-09-14 Thread Jack Gates
"if else" statements will be easy to figure out. Every time I try to figure out these date time functions I get syntax errors. I can't figure out what the PHP manual says about these functions. Any body have any ideas? Thanks, -- Jack "The Rhino" Gates, Registered L

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Jack Gates
your ventures. The US economy is starting to pick up > which is hopefully a benefit to all PHP programmers worldwide. > > Respectfully, > > -- > Kristopher Spencer-Yates > Dev Mgr/Systems Administration > [EMAIL PROTECTED] -- Jack "The Rhino" Gates, Regist

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Jack Gates
of luck in your ventures. The US economy is starting to pick up > which is hopefully a benefit to all PHP programmers worldwide. > > Respectfully, > > -- > Kristopher Spencer-Yates > Dev Mgr/Systems Administration > [EMAIL PROTECTED] -- Jack "The Rhino" Gates, Re

Re: [PHP] Re: New PHP tutorial - suggestions welcome

2004-09-25 Thread Jack Gates
ing you to use anything. You made your own choice to use an older browser. His site works great with Mozilla 1.4 on Linux an Mozilla 1.7.1 on Windows -- Jack "The Rhino" Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Des

[PHP] runtime access to static variable

2008-12-16 Thread Jack Bates
How do I access a static variable when I do not know the name of the class until runtime? I have the following example PHP: ket% cat test.php http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: runtime access to static variable

2008-12-17 Thread Jack Bates
> this does beg the question why don't you know the classname at runtime.. > seems to be a slight design flaw and may make sense for you to post the > full problem (you must have chosen to implement this for a reason..) The full problem is: I started off with a "DeployTask" for deploying a new i

[PHP] get file from object

2009-01-06 Thread Jack Bates
How do I get the file where a class is defined, from an instance of that class? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] distinguish between null variable and unset variable

2009-01-21 Thread Jack Bates
How can I tell the difference between a variable whose value is null and a variable which is not set? // cannot use === null: ket% php -r '$null = null; var_dump(null === $null);' bool(true) ket% php -r 'var_dump(null === $unset);' bool(true) ket% // - cannot use isset() either: k

Re: [PHP] Re: how to display images stored in DB

2007-03-01 Thread Jack Gleeson
ome starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- -- Jack Gleeson Web Designer

[PHP] dynamic meta tag and title app?

2009-11-18 Thread Jack S
variables would be home, about us would be about etc. -- Thanks! Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Jack S
Thanks!!! On Thu, Nov 19, 2009 at 10:09 AM, tedd wrote: > At 11:30 AM -0500 11/18/09, Jack S wrote: >> >> Hello All, >> >> Does anyone have a reference to a program that may be out there to >> help with using a single header.php for a site, but then dynamically &

RE: [PHP] help with query

2012-06-07 Thread Jack Sasportas
Thanks Jim, worked like a charm. > -Original Message- > From: Jim Lucas [mailto:li...@cmsws.com] > Sent: Thursday, June 07, 2012 4:08 PM > To: Jack > Cc: PHP > Subject: Re: [PHP] help with query > > On 06/07/2012 09:37 AM, Jack wrote: > > $query = "sele

[PHP] get question

2012-08-27 Thread Jack S
Hello All, Trying to figure out why when I include the page that contains this code, I'm not able to get the $calling_page populated with any values. Any help appreciated... "; } elseif ($calling_page == "index") { $title = "Title 2 - $calling_page"; $body = ""; # Non S

[PHP] what's wrong with this php system

2011-08-07 Thread smith jack
I have installed a php system on my pc, it works well, except the head of the page is a bit strange, there is some warning information, and occupies lot of space, what's wrong, the error information is as follows: Warning: Parameter 1 to Notice::onPrint() expected to be a reference, value given in

RE: [PHP] Problem with date

2011-12-07 Thread Jack Sasportas
> > > How about a little debugging here (and possibly elsewhere): > > if (isset($pubdate) && ($pubdate >0)) { > $pubdate=strtotime($pubdate); > } else { > die("Barf. Can't run a string to time conversion on 0 or -1."); > } > Thanks Kevin, This bombs

[PHP] RE: Student Suspended

2005-02-10 Thread Jack Scott
Its sad too see so many programmers with so much time on their hands. Stop wasting this valuable resource on something which came from a parody site in the first place! post your idiotic commentary somewhere else -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] global and object

2005-03-19 Thread Mister Jack
Oops, sorry for double posting. my mistake. accept my apologies :-p On Fri, 18 Mar 2005 23:51:15 +, pooly <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to use a global object (declared at a upper level), but all I > got is : > Call to a member function on a non-object in > /home/pooly/publ

Re: [PHP] class and global

2005-03-19 Thread Mister Jack
The initialisation seems to be ok, since : Function return_freedb_search($array) { global $freedb; $freedb =& new freedbaxs(); [snip] $freedb->freedb_search($txt); //line 16... } works and also $freedb =& new freedbaxs(); $freedb->freedb_search("ploplop"); Function return_freedb_search($array)

Re: [PHP] class and global

2005-03-19 Thread Mister Jack
there is no database connection involved here. if I displace the $freedb =& new freedbaxs(); inside the function it's works. I should give a try with a dummy object. (but the constructor, only initialize empty array) On Sat, 19 Mar 2005 21:17:02 +0200, BAO RuiXian <[EMAIL PROTECTED]> wrote: >

Re: [PHP] class and global

2005-03-20 Thread Mister Jack
PHP 4.3.10-8 thanks for your help, On Sat, 19 Mar 2005 20:45:55 +, Mister Jack <[EMAIL PROTECTED]> wrote: > there is no database connection involved here. if I displace the > $freedb =& new freedbaxs(); > inside the function it's works. > > I should give a try wit

Re: [PHP] class and global

2005-03-21 Thread Mister Jack
axs(); function return_freedb_search($array) { global $freedb; [snip] $freedb->freedb_search($txt); } this is the one working. On Sun, 20 Mar 2005 11:37:53 +, Mister Jack <[EMAIL PROTECTED]> wrote: > Ok, I've tried with a dummy class : > > class dummy { >

[PHP] cache class

2005-03-22 Thread Mister Jack
Hi, I'm having a bit of a problem. I include a class in my script, the first time run fine, and then if I change anything in my class, changes are not reflected on the browser, it's like it's still the old class which is used. I've cleared the browser cache, force a pragma no-cache, but no, nothin

Re: [PHP] Re: cache class

2005-03-22 Thread Mister Jack
; good test, try this: > > [...trial code...] > > echo 'test run finished'; > exit; > > /* > [...unknown code...] > */ > ?> > > Hope this helps, > > Jeremy > > > Mister Jack wrote: > > Hi, > > > > I'm having a bit of a proble

[PHP] ## Getting into Netscape.com Inbox

2004-06-04 Thread jack bauer
Hi, i'm trying to access my netscape.com inbox with php, so i started to decode the ssl session and got all sent packets in plaintext, not really hard. but know i have to deal with encrypted cookies and i have no clue what i have to do. i found no help while i crawled the web for hours. an exampl

[PHP] >>>>>> THREADS IN PHP

2004-06-12 Thread jack bauer
hi, i'm looking for a methode to use threads in php (on linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jack Mays
u wanting to do this? Why not just have the button text be what you want it instead of trying to do manipulation on it's value? -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First stupid post of the year.

2008-01-02 Thread Jack Mays
Daniel Brown wrote: On Jan 2, 2008 2:05 PM, tedd <[EMAIL PROTECTED]> wrote: At 1:57 PM -0500 1/2/08, Daniel Brown wrote: On Jan 2, 2008 1:34 PM, tedd <[EMAIL PROTECTED]> wrote: from this:        A        to this A Read the docs for trim, you can't use it inline with other functions, it

Re: [PHP] php form help...

2008-01-08 Thread Jack Mays
it means, but then again I probably give to much credit to most of the population :) -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Jack Mays
rying to insert a new row with some of the same information? I dont see anything wrong right off the bat with the way you are performing the task. -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Jack Mays
funnily enough exit is even listed as a function. LOL, Ignore me, I read that message to fast and read "isn't" instead of "is". It's time to go home and sleep :) -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Jack Mays
funnily enough exit is even listed as a function. Sure it is: http://us2.php.net/manual/en/function.exit.php Unless I'm missing a point here or something. :) -- Jack Mays -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] redirect stdout to stderr

2008-02-22 Thread Jack Bates
eSniffer's report to stderr. Anyone have better suggestions than output buffering? Much thanks, Jack signature.asc Description: This is a digitally signed message part

RE: [PHP] munge / obfuscate ?

2008-03-28 Thread Jack Sasportas
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2008 10:02 PM > To: Joey > Cc: PHP > Subject: RE: [PHP] munge / obfuscate ? > > Hi Joey, > > Please keep responses on the list so others can also benefit from the > learning process. > > Co

[PHP] new $foo->className(); Class name must be a valid object or a string

2008-05-03 Thread Jack Bates
object->{'get'.$someName}($arg1, ...); - however I cannot recall the exact syntax. Can anyone confirm that there is a curly brace syntax for calling dynamically named functions? Could it be applied to instantiating dynamically named classes? Can anyone recommend a cleaner alternative

[PHP] [pcre] backreferences to all matches of a repeated subexpression

2007-08-01 Thread Jack Bates
think I might be able to do something using the Perl (?{code}) construction, e.g. ...(?:\.(\w+)(?{$parts[] = \2})|\[([^]]+)(?{$parts[] = \3})\])*... but I haven't thought about it too much because PHP doesn't support this construction. Any ideas much appreciated. Thanks, Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shopping Carts

2006-07-08 Thread Jack Gates
, etc. > > Any ideas? > > Thanks, > Mike > > -- > Michael B Allen > PHP Extension for SSO w/ Windows Group Authorization > http://www.ioplex.com/ http://www.oscommerce.com built with PHP and is free. -- Jack Gates http://www.jlgates.com/ http://www.myenergyproduc

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jack Gates
On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: > I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some > negative things about it in general (FC5). What sort of negative things have you heard in general about (FC5)? -- Jack Gates http://www.morningstarcom.ne

Re: [PHP] Best way to get PHP5

2006-08-09 Thread Jack Gates
On Wednesday 09 August 2006 19:24, Jochem Maas wrote: > Jonathan Duncan wrote: > > On Wed, 9 Aug 2006, Chris W. Parker wrote: > >> Jack Gates <mailto:[EMAIL PROTECTED]> > >> > >>on Wednesday, August 09, 2006 10:16 AM said: > >>> On

[PHP] LAMP Experts Needed

2006-08-31 Thread Jack Gates
at [EMAIL PROTECTED] It is going to be a web interface interacting with a very large database. -- Jack Gates http://www.morningstarcom.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Remove Dynamic String between StringA and StringB

2004-01-26 Thread Jack Bauer
Hi :), i'm looking for a function to remove multiple dynamic parts of a string, there are only the start and end strings given (remove all between string A and string B) got somebody a working procedure for that? regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] >>Remove Dynamic String between StringA and StringB

2004-01-27 Thread Jack Bauer
Hi :), i tried your code zu replace some parts of a string, the problem is that this method only replaces when there is only 1 word between stringA and stringB. i got the problem that the part between both strings is a dynamic one and much larger then 1 word. i really tried to use the php manual a

[PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Jack Bauer
Hi, i'm looking for a method to setup php to use a proxy for all http/ftp connections. i know it's possible to write a script that can do this, but i need to setup php itself for that (php.ini or something like this) i tried different tools for that to tunnel all connection but i didn't found any

Re: [PHP] POSSIBLE TO SETUP PHP USING PROXY AS DEFAULT?

2004-02-03 Thread Jack Bauer
iptables to the proxy server (which will have to run on a different port). Most ISPs in asia resort to this tactic. all the best Jack Bauer wrote: >Hi, > >i'm looking for a method to setup php to use >a proxy for all http/ftp connections. >i know it's possible to write a

[PHP] Flash and Sessions

2004-02-19 Thread Jack Baty
h or browser version, as I'm using the same combination as some of the folks reporting problems and have never seen it. Server is IIS 5 and PHP 4.3.3. It also doesn't seem to be a cookie or javascript issue either. Any thoughts? -- Jack Baty Fusionary Media - http://www.fusionary.com

[PHP] OT PHP Programmers

2004-03-18 Thread Jack Sasportas
Not sure where to post this, but my company is looking to hire an inhouse PHP programmer. This could be part or full time depending on details. We are not looking to contract an outside company ( doesn't work for us) or to get headhunters etc to call us. If you are a good PHP/MySQL/HTML programmer

Re: [PHP] PHP and HTTPS POSTs

2004-04-01 Thread Jack Baty
owing to an .htaccess file or the apache configuration file... SetEnvIf User-Agent ".MSIE." nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 -- Jack Baty Fusionary Media - http://fusionary.com/ Weblog - http://jackbaty.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] php not allowed in .htaccess

2005-05-25 Thread Jack Jackson
Sorry folks. Figured it out: in httpd.conf it wasn't in the first or second AllowOverride section (which I had set to All and that's why I was so gobsmacked) BUT it was in the "Control access to UserDir directories" section. Thanks everyone! -- PHP General Mailing List (http://www.php.net/) T

[PHP] php not allowed in .htaccess

2005-05-27 Thread Jack Jackson
Hi, dumb config issue. I'm putting a php_value include_path statement in an .htaccess file php_value include_path ".:/home/user/public_html/dis/admin/:/home/nick/" php_value auto_prepend_file /home/user/public_html/dis/admin/wcsconf.php and getting a 500 Server Error. Apache logs say, ".

[PHP] foreach ($media as $key => $val) problem

2005-06-01 Thread Jack Jackson
eventually, to echo it out in the age so that it appears as [art_id 1] comprises Ink, watercolor. Thanks in advance, Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using GET to build multiple sql queries

2005-06-02 Thread Jack Jackson
I'd love some help with http://hashphp.org/pastebin?pid=3443 if anyone can... Basically I want to make it so that, if the get in the url specifies no query or a query to a nonexistent row, send to vanilla index. If url specifies c= then set $c=c and use the number to build the mysql query; s

[PHP] Delay?

2005-06-02 Thread Jack Jackson
Has anyone else noticed significant delays in messages getting posted? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using GET to build multiple sql queries

2005-06-02 Thread Jack Jackson
ht in front of my face but I cannot see how to adapt it to the task. . Thanks in advance!! Greg Donald wrote: On 6/2/05, Jack Jackson <[EMAIL PROTECTED]> wrote: I'd love some help with http://hashphp.org/pastebin?pid=3443 if anyone can... Basically I want to make it so

Re: [PHP] Using GET to build multiple sql queries

2005-06-02 Thread Jack Jackson
SORRY - one small correction below: If that were instead an $s then I would do: I had accidentally put a number 1 in place of the $s in the above example. Apologies for the extra mail and thanks in advance. Greg Donald wrote: On 6/2/05, Jack Jackson <[EMAIL PROTECTED]> wrote:

Re: [PHP] Using GET to build multiple sql queries

2005-06-02 Thread Jack Jackson
Greg, thank you for all this... See below Greg Donald wrote: On 6/2/05, Jack Jackson <[EMAIL PROTECTED]> wrote: Thanks for the reply, Greg, I see how that is useful. I am confused as to how I would implement it here. Please bear with me as I am a newbie and am now perhaps more confuse

Re: [PHP] Site Design Strategy

2005-06-03 Thread Jack Jackson
asinning wrote: This is my first post to this group. I've been trying to figure this out on my own, but I keep running into complications, so I've decided to get some help. Much thanks for any help! I've been writing php server application for a couple of years, but now I'm turning my attent

[PHP] ampersands in href's

2005-06-04 Thread Jack Jackson
Hi, If I want to make a link to a URL which includes some GETs can I just do: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ampersands in href's

2005-06-04 Thread Jack Jackson
, urlencode($p)' title=\"{$sidebar['art_title']}\">src='{$image_dir}{$sidebar['art_thumbnail']}' width='50' height='60' border='0' alt=\"{$sidebar['art_title']}\" />"; } ? Thanks in advance

Re: [PHP] ampersands in href's

2005-06-04 Thread Jack Jackson
Murray @ PlanetThoughtful wrote: If I want to make a link to a URL which includes some GETs can I just do: Depends very much on the document type of your page. Valid XHTML (transitional, at least), for example, doesn't like single ampersands in links. For XHTML, you need to replace "&"s wi

Re: [PHP] ampersands in href's

2005-06-04 Thread Jack Jackson
Rory Browne wrote: On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote: Hi, Rory Rory Browne wrote: I think you have the idea. The &'s are used to seperate the various variables. If you want to set $p to something like 'Tom & Jerry' then personally I'd do s

Re: [PHP] ampersands in href's

2005-06-05 Thread Jack Jackson
p, you should do this for all *ML pages as long as the thing being printed is not part of the mark-up syntax. Jack Jackson wrote:> Rory Browne wrote: On 6/4/05, Jack Jackson <[EMAIL PROTECTED]> wrote: Hi, Rory Rory Browne wrote: I think you have the idea. The &'s are us

[PHP] looping through an array problem

2005-06-05 Thread Jack Jackson
This is something dumb I am doing but: Trying to pull all names of publishers in db. This sql: SELECT art.art_id,art.publisher_id,publisher.publisher_name, FROM art LEFT JOIN publisher ON publisher.publisher_id=art.publisher_id pulls (in phpmyadmin) four rows: artID pubID Publisher_name

Re: [PHP] looping through an array problem

2005-06-05 Thread Jack Jackson
Maas wrote: Jack Jackson wrote: This is something dumb I am doing but: Trying to pull all names of publishers in db. This sql: its a mysql question in disguise, maybe...: SELECT DISTINCT art.art_id,art.publisher_id,publisher.publisher_name FROM art LEFT JOIN publisher ON

Re: [PHP] looping through an array problem

2005-06-05 Thread Jack Jackson
M. Sokolewicz wrote: Jack Jackson wrote: Thanks for all the replies. Jochem, thank you for this code, which will take me all night to understand (though I bet it works). I also note that SELECT DISTINCT worked here, too Also as many of you noticed before me, the art_id was in there as a

Re: [PHP] looping through an array problem

2005-06-05 Thread Jack Jackson
avoid having people see a link to the Sneezy Acres Tribune only to arrive at the next page and see, "There are no images associated with this publisher." Jochem Maas wrote: Jack Jackson wrote: M. Sokolewicz wrote: Jack Jackson wrote: Thanks for all the replies. Jochem, thank

Re: [PHP] looping through an array problem

2005-06-05 Thread Jack Jackson
nk to the Sneezy Acres Tribune only to arrive at the next page and see, "There are no images associated with this publisher." Jochem Maas wrote: Jack Jackson wrote: M. Sokolewicz wrote: Jack Jackson wrote: Thanks for all the replies. Jochem, thank you for this code, which w

Re: [PHP] looping through an array problem

2005-06-05 Thread Jack Jackson
l the help everyone has offered up to now and hope I did not offend - I was trying in my last post to indicate that I was an idiot, and it appears I've come off as arrogant. I promise it was not my intent! Jochem Maas wrote: Jack Jackson wrote: M. Sokolewicz wrote: Jack Jackson wro

Re: [PHP] linux php editor

2005-06-06 Thread Jack Jackson
Clive Zagno wrote: what php GUI editors do you recommend. Ive used bluefish before, any other recommendations, thanks clive I love Jedit http://www.jedit.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Implode? Explode?

2005-06-06 Thread Jack Jackson
? Thanks in advance, Jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Implode? Explode?

2005-06-06 Thread Jack Jackson
Brent Baisley wrote: You're close, but you need to group your data on the series_id first. You can do that by looping through your array and creating another array using series_id as the array key. You'll end up with a list of arrays named after the series_id. foreach( $result_set as $resul

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need some suggestions!

2005-06-07 Thread Jack Jackson
Matt Babineau wrote: >Hi all - > >I've got a great html invoice that prints like crap because of my user of >background images and foreground images. Does anyone have any good >suggestions other than turn on images in IE to get this thing to print the >graphics? Is there a good way I could convert

Re: [PHP] Beautiful HTML Invoice -> Prints like crap! I need some suggestions!

2005-06-07 Thread Jack Jackson
Matt Babineau wrote: >Hi all - > >I've got a great html invoice that prints like crap because of my user of >background images and foreground images. Does anyone have any good >suggestions other than turn on images in IE to get this thing to print the >graphics? Is there a good way I could convert

[PHP] Three queries. One Form.

2005-06-09 Thread jack jackson
Hi, I am trying to make one form on a single page insert info into three tables; query 1 creates an art_id (auto-increment) for the newly created row in table art; query2 creates a media_id in table media. Then I need to get the art_id and media_id created by the first two queries to insert int

Re: [PHP] Three queries. One Form.

2005-06-09 Thread jack jackson
tt! > > > Matt Babineau > Criticalcode > w: http://www.criticalcode.com > p: 858.733.0160 > e: [EMAIL PROTECTED] > > -Original Message- > From: jack jackson [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 09, 2005 4:06 PM > To: php-general@lists.ph

Re: [PHP] Three queries. One Form.

2005-06-09 Thread jack jackson
Thanks for this Richard! On 6/9/05, Richard Davey <[EMAIL PROTECTED]> wrote: > Hello jack, > > Friday, June 10, 2005, 12:05:35 AM, you wrote: > > jj> I am trying to make one form on a single page insert info into three > jj> tables; query 1 creates an art_id (auto

[PHP] Getting checkboxes as array

2005-06-09 Thread jack jackson
HI I have a form which pulls values from the db, and thanks to help from the irc chat, hopefully makes any checkboxes which are selected part of an array to be gotten in post: while ($media_rows = mysql_fetch_assoc($media_result)){ $checkbox_media[] = "{$media_ro

Re: [PHP] Getting checkboxes as array

2005-06-09 Thread jack jackson
box is not check, so you have to check its > actually set before you start inserting. > > Richard Davey wrote: > > >Hello jack, > > > >Friday, June 10, 2005, 2:16:06 AM, you wrote: > > > >jj> $query = "INSERT INTO media_art (media_art_id,art_id,

Re: [PHP] Getting checkboxes as array

2005-06-09 Thread jack jackson
. $blog . "')"; $art_id = mysql_insert_id(); foreach ($media_types[] as $type) { $query .= "INSERT INTO media_art (media_art_id,media_id, art_id) VALUES ('','" . $type . "&#x

[PHP] fwrite/fopen

2005-06-10 Thread Mister Jack
Hi, I having a problem at the moment, I open a file, try to write in it, and then remove the file if the write goes wrong (if write count != of my initial buffer length). But I still get some empty file (and then a blank page). Could possibly fopen (with a 'wb' flag, and under freebsd 4.11) failed

Re: [PHP] fwrite/fopen

2005-06-11 Thread Mister Jack
gt; successfully... > > Your best bet would be to put the filename into a database table, then run > a cron job that deletes all the files in that table, and only takes them > out of the table if they are successfully deleted. > > Course, you then want to be sure you have UNIQUE fi

[PHP] Optimizing Help

2005-06-13 Thread jack jackson
Hello, Recently with the help of several of you I got a script working. It's complex, I'm still new, some parts of it came from other authors and I adapted it, and generally despite the fact that it seems to work perfectly at this point, I am certain that there is bloat, repetition and simply usele

Re: [PHP] Optimizing Help

2005-06-13 Thread jack jackson
Thanks, Chris, I see what you're getting at. I'm not sure I understand what you mean about looping through the array in the area you specified- isn't that just the definitions of the vars? Or is that what you meant and I'm missing the point!!? On 6/13/05, Chris Ramsay <[EMAIL PROTECTED]> wrote:

[PHP] Checkboxes From Intersection Redux

2005-06-14 Thread Jack Jackson
"; } Those which were checked were inserted into media_art thusly: media_id art_id 31 41 51 What I want to do is say "For every media_id which is associated with $cartoon in the table media_art, check the box; for all others leave them un

Re: [PHP] Optimizing Help

2005-06-14 Thread Jack Jackson
Jochem Maas wrote: jack jackson wrote: Hello, Recently with the help of several of you I got a script working. It's complex, I'm still new, some parts of it came from other authors and I adapted it, and generally despite the fact that it seems to work perfectly at this point, I am ce

[PHP] Image upload form

2005-06-15 Thread Jack Jackson
Hi, After a disastrous first attempt (which uploaded images but only by chance) it was suggested I rework the entire thing. This one seems to check the file against getimagesize and if that doesn't prove false, check the type and make the extension then rename the file. But the moving part is n

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Okay, I started seeing some of my mistakes. I am still having a great deal of trouble: newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg image_file returns: images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg images/jpg/test is set to 777 but I still get (Could not move file to destinati

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Richard Davey wrote: Hello Jack, Wednesday, June 15, 2005, 5:38:11 PM, you wrote: JJ> newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg JJ> image_file returns: JJ> images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg JJ> images/jpg/test is set to 777 but I still get (Could n

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Yes, Jason, Those did it! Thanks so much for the help! Jason Wong wrote: On Thursday 16 June 2005 00:38, Jack Jackson wrote: //try to get image size; this returns false if this is not an actual image file. $image_test = getimagesize($local_file); if ($image_test !== false

Re: [PHP] Checkboxes From Intersection Redux

2005-06-15 Thread Jack Jackson
Name6 NULL You could then test the output of art_id: $checkbox_media[] = "value='{$media_rows['media_id']}' ".(rows['art_id']==$cartoon['art_id']?" checked":"")."/>{$media_rows['media_name&#x

[PHP] Those checkboxes again

2005-06-16 Thread Jack Jackson
hi, I'm severely frustrated and perhaps you can help with what I have done wrong. The checkboxes I use to populate an intersection table work to add the records, and now I am trying to update them. It's almost there but producing some unexpected results when the form is submitted: the idea is

Re: [PHP] Re: Image upload form

2005-06-16 Thread Jack Jackson
Nadim Attari wrote: http://www.php-help.net/sources-php/image.upload.function.353.html Thanks, Nadim, I'm sure that is a great script. I am really trying to learn how it's working, so I'm trying to stay away from pre-rolled stuff as much as I can and beg for the mercy of the list in buildin

[PHP] A more sane problem description

2005-06-16 Thread Jack Jackson
Sorry, The last post I made was fairly incomprehensible. I'm trying to a) edit information which is already in an intersection table, while b) allowing the user to add new information to the intersection table The information in it is pulled from the table media_art and I grab the media_art_id

<    1   2   3   4   5   6   7   >