[PHP] RE: PHP JavaScript

2006-05-19 Thread Jay Blanchard
[el snipo] For instance I have a small JavaScript sniplet that will check certain checkboxes if a radio button is selected. Since I have a fair amount of checkboxes I want to put them in an array all their own so I use the XHTML syntax w/brackets; input type=checkbox name=list37[] value=7 /

RE: [PHP] PHP JavaScript

2006-05-19 Thread Jay Blanchard
[snip] http://us2.php.net/variables.external [/snip] BINGO! We have a winner! It can be as simple as adding an id to each checkbox; input type=checkbox id=list37 name=list37[] value=4 / By doing this I did not have to change the function or the function calls. JS recognizes the boxes by id,

RE: [PHP] PHP JavaScript

2006-05-19 Thread Jay Blanchard
[snip] So, using the same ID produces non-valid documents if you ask me. [/snip] This is correct, and in order to properly validate I changed it to transitional instead of strict. This is an internal appif it were external I would do this differently for sure -- PHP General Mailing List

RE: [PHP] PHP JavaScript

2006-05-19 Thread Jay Blanchard
[snip] For grouped checkboxes that have numerical keys, why not give them an ID that's simply a concatenation of NAME and the VALUE, so it's unique? [/snip] Because JavaScript loops through all the like ID'ed checkboxes to check or uncheck groups. It could be done the other way, but then

RE: [PHP] Session Not Being Passed?

2006-05-18 Thread Jay Blanchard
[snip] which points to this page, ?php session_start; //Check the user has logged in with a valid password if ($_SESSION['authuser']!=1) { echo Sorry, you're not authorized to access this page; exit(); } ? [/snip] You forgot the parentheses after session_start(); (Assuming that

RE: [PHP] PHP and mySQL getting smashed...

2006-05-17 Thread Jay Blanchard
[snip] I have a site that is getting 30K+ traffic daily and it is smashing mySQL - any ideas on what to do to make the mysql connections more efficient, or anything in general. No bandwidth issue here, just the server getting killed. [/snip] Without seeing any code or table information my bet

RE: [PHP] Good Answers

2006-05-11 Thread Jay Blanchard
[snip] Might I make a suggestion for an addition to the newbie email - in the where to find more information section - add a link either to the manual security section or phpsec.org [/snip] Cool idea, let's get that info together and I'll add it and throw it up on my server... -- PHP General

[PHP] BDC to ASCII Conversion

2006-05-11 Thread Jay Blanchard
I have been searching, but does anyone know of a BDC to ASCII conversion tool for PHP right off the top of their head? If not, I'll have to write one Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] BDC to ASCII Conversion

2006-05-11 Thread Jay Blanchard
[snip] I haven't heard of BDC. Did you mean BCD (binary coded decimal)? Or possibly EBCDIC? (What platform is this data coming from?) If it's EBCDIC data, there are plenty of translation tables you can use, (but you won't find a one-to-one correspondence in their character sets). [/snip]

RE: [PHP] BDC to ASCII Conversion

2006-05-11 Thread Jay Blanchard
[snip] In dog we trust Am partial to Dog is my co-pilot [/snip] You must be a member of the First United Universal House of Dog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SMS E-Mail and other oddities

2006-05-11 Thread Jay Blanchard
I am attempting to send SMS via an e-mail messageand it works! *phew* phonenumber@sms.myserver.com Problem is that the reply to or from field on the device always shows [EMAIL PROTECTED] regardless of what I have set the Replay-To: or From: headers. PHP runs as nobody, so this makes

RE: [PHP] SMS E-Mail and other oddities

2006-05-11 Thread Jay Blanchard
[snip] Send us some source code and we can help you out! [/snip] Always reply to the list and please do not top post. $poot = ini_set(sendmail_from, '[EMAIL PROTECTED]'); $smsTo = $_POST['smsPhone'] . '@sms.myserver.com'; $to = $smsTo; $subject = $_POST['smsSubject']; $message

RE: [PHP] SMS E-Mail and other oddities

2006-05-11 Thread Jay Blanchard
[snip] $fromaddress = '[EMAIL PROTECTED]'; mail($to, $subject, $message, $headers, '-f'.$fromaddress); [/snip] Cool...worked like a champeene race dog! (Say it with a Southern drawl) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Jay Blanchard
[snip] Is there anyway to check the size of a file before it starts uploading it? For instance, if the file is huge, and takes ages to upload, and is then rejected by the server, the user will be somewhat annoyed! [/snip] PHP is server-side and cannot check anything client-side. You cold use

RE: [PHP] Good Answers

2006-05-10 Thread Jay Blanchard
[snip] In the spirit of improving the mailing list, I'd like to suggest that we, as a group, attempt to not provide answers with Bad Practices, or at least always to point out that the Sample is Bad Practice for production sites? For example, an answer to a question about ?php echo $foo? where it

RE: [PHP] cookie style saving without cookies

2006-05-09 Thread Jay Blanchard
[snip] I have a realty site where people want to be able to save properties but don't want to enter a username/password, etc. My first thought is just to save the info to a cookie but am not sure if this is the best way. If cookies aren't allowed, they will loose this functionality. I had

RE: [PHP] Creating EPS files with PHP

2006-05-09 Thread Jay Blanchard
[snip] Is it possible to create EPS or TIFF files with a image libraries like GD or ImageMagik? [/snip] You Googled, right? http://www.mcs.vuw.ac.nz/technical/software/PHP/ref.image.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Creating EPS files with PHP

2006-05-09 Thread Jay Blanchard
[snip] I did, that link didn't seem to actually talk about the ability to create new TIFF images and didn't mention EPS at all, did I miss something on that page? [/snip] It talks about all the things you can do with the image library. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Scheduling applications

2006-05-08 Thread Jay Blanchard
I have been searching and reading and testing for days, but I cannot seem to locate a reliable team scheduling application utilizing PHP and MySQL. I think that I am searching for the wrong thing search terms wise as I turn up a lot of project scheduling apps, not people scheduling. Some of the

RE: [PHP] Scheduling applications

2006-05-08 Thread Jay Blanchard
[snip] I am sure that I will not locate an app with all of these 'features' but having it in PHP will allow me to make mods. Any ideas where I can find something like this? TIA [/snip] Ahathe search term needs to be 'time and attendance' but still not a lot out there that I can see so

RE: [PHP] include() question

2006-05-08 Thread Jay Blanchard
[snip] I am including a page from another server: (include(http://;));   Works fine, but if for some reason that server is not responding, the page that is calling it also never returns, so the user ends up with a time out.   Is there something I can set that will not force the calling server

RE: [PHP] WINNER

2006-05-08 Thread Jay Blanchard
[snip] Good ole John. I miss him. And Jason Wong. Where have all the good times gone? [/snip] *sniff* I know -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] WINNER

2006-05-08 Thread Jay Blanchard
[snip] Jason Wong - Gremlins Associates - www.gremlins.biz [/snip] Surely my eyes deceive mea Jason Wong sighting! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] group for pure startups...OT

2006-05-08 Thread Jay Blanchard
[snip] can someone tell me if there's a group where people who are interested in starting/contributing to embryoninc startup concepts can get together/meet, exchange ideas, etc... [/snip] Since this is not strictly PHP make sure to include some kinda' off-topic reference in the subject line

RE: [PHP] php script fails when run from cron

2006-05-04 Thread Jay Blanchard
[snip] The code then goes on to move some data from a remote SQL Server db to the local mysql. When finished, the log stops at got two classes. I am trying to debug now to see which of the two classes it seems to be failing on. I don't have anything in the php error log. The MSSQL connection

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] Is there any way to call for an element value in an array by the position? Like position 2 in the array and not the key name. [/snip] I hate to say this, but you really need to RTFM http://www.php.net/array To get a value from position 2 in an array you use $arrayName[1] (all array

RE: [PHP] Paged Results Set in MySQL DB with one result

2006-05-04 Thread Jay Blanchard
[snip] There's a fundamental problem with trying to slice text into resizable web pages the same way it's sliced on paper. Paper pages work because they're set in a fixed font size. When you change the ratio of font size to column width, the places where lines of text wrap changes. Because

RE: [PHP] Sanity checker?

2006-05-04 Thread Jay Blanchard
[snip] If you're in a team environment, the best advice I've heard is to have the team share accountability. Meaning, if you write a piece of code, you _must_ have a colleague double-check it and sign off on it. Then if a bug is discovered down the road, _both_ of you will be held responsible.

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] $colors = array('white'='#ff','black'='#00','blue'='#ff'); [/snip] What happens when you echo $colors[1]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] I get nothing do you get something different? [/snip] Not even 'array'? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] Of course getting an indexed value into an associative array seems a bit odd to me... maybe Jonas could shed some light on why he would go this route... [/snip] Exactly [snip] To get a value from position 2 in an array you use $arrayName[1] (all array elements start numbering at 0,

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] Seem like your missunderstanding me. I'm not using an orignal array. I'm using an map-array. $array = ('element' = 'value'); [/snip] It is called an associative array, a value is associated with a key. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] session cookie and domains

2006-05-04 Thread Jay Blanchard
[snip] That makes is available for all subdomains. Is there a possiblity to make it available for all domains like example: .domainname. [/snip] Are you trying to share a cookie across domain names? If so that cannot be done. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] Lasso can do the following, can PHP? ?LassoScript Variable: 'Colors'=(Map:'red'='#ff','green'='#00ff00','blue'='#ff'); Loop: $Colors-Size; Output: 'br' + $Colors-(Get: Loop_Count),-EncodeNone; /Loop; ? This outputs; ff 00ff00 ff I'm new at PHP but

RE: [PHP] preg_replace_callback

2006-05-04 Thread Jay Blanchard
[snip] Hi. I have problem with preg_replace_callback. It seems that my pattern is bad, but I can't find any error. Pattern : \[\s*((\d|\w|_)+)\s*\] this pattern is intended to find strings like [field], [ fi12_eld]... but every time I get warning message Warning: preg_replace_callback():

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] $colors = array('white'='#ff','black'='#00','blue'='#ff'); foreach($colors AS $key = $value){ echo $value . br /\n; } But I don't get anything out of this code. Why? Doesn't echo anything? [/snip] Seriously? Works fine here. -- PHP General Mailing List

RE: [PHP] What editor do you use?

2006-05-04 Thread Jay Blanchard
[snip] I am currently looking for a good PHP editor for Windows. I know, the question must have been asked so many times, but I thought I could ask it again now that a few editors have evolved, others have appeared. [/snip] Eclipse. You could also STFA -- PHP General Mailing List

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Jay Blanchard
[snip] - Anything else you wish to add pertaining to the above. [/snip] People who use GET requests are lazy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Jay Blanchard
[snip] I *think* Jay is referring to submitting forms via GET. [/snip] Exactly. All of those with your foot in the proximity of your mouth may put them (the foot's) back on the ground nowor up on your desk if you prefer. We have all been at our computers to damned long. We have a launch date

RE: [PHP] Sanity checker?

2006-05-04 Thread Jay Blanchard
[snip] Have you ever seen things like for ($i = 0; $i count($some_array); $i++) { //do stuff } Do you know how slow it is if $some_array gets big compared to $array_count = count($some_array); for ($i = 0; $i $array_count; $i++) { //do stuff } [/snip] The thing is this; there are lots

RE: [PHP] array_push in array maps

2006-05-03 Thread Jay Blanchard
[snip] Need solve another case regarding array maps. Is it possible to insert more values like with array_push in arrays as bellow? $colors = array( 'red' = '#ff', 'green' = 'X00ff00', 'blue' = '#ff' ); [/snip] // Append associative

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] I am trying to create a simply rule so that when someone goes to: mysite.com/users/1 They are redirected to: mysite.com/users/index.php?uid=1 But am a bit lost looking through all the docs. I know people do this all the time so am looking for some help. [/snip] mod_rewrite: A

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that is. [/snip] If a woodchuck could chuck wood he (or she) would chuck as much wood as he (or she) could chuck while viewing a php web site. Told you. -- PHP General Mailing List

RE: [PHP] mod_rewrite help

2006-05-03 Thread Jay Blanchard
[snip] [snip] How much wood could a woodchuck chuck if a woodchuck could chuck wood? While viewing a php web site that is. [/snip] If a woodchuck could chuck wood he (or she) would chuck as much wood as he (or she) could chuck while viewing a php web site. H, I dunno if it's that

RE: [PHP] Paged Results Set in MySQL DB with one result

2006-05-03 Thread Jay Blanchard
[snip] Does anyone have any ideas?? [/snip] Quite frankly, yes. Question is, how many words do you want to show up on a 'page'? Is the design liquid or rigid? A basic formula (pseudo-code, will not actually work in the PHP parser); Select article body from database. Place all of the words in

RE: [PHP] What means Fatal error: pcntl_fork(): Error 11?

2006-05-02 Thread Jay Blanchard
[snip] My script dies with the following line (after a few hours running without other errors/warnings/notices): Fatal error: pcntl_fork(): Error 11 in /home/foo/bar.php on line 297 Is there any documentation for pcntl_fork(): Error 11? Does anybody know what causes pcntl_fork(): Error 11? (It's

RE: [PHP] [JOB] PHP developered needed in Largo, MD

2006-04-29 Thread Jay Blanchard
[snip] Hey Jay! We run linux here... you could leave your Windows world again! :) [/snip] Thanks, but I have to stay where I am for a while. Sounds like an interesting project though... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: php - js (was Javascript Navigation)

2006-04-29 Thread Jay Blanchard
[snip] ...interesting conversation... [/snip] Stateless applications, ain't they fun? I did a little experiment before Ajax cam into vogue with a small PHP script that essentially ran a while loop with some sleep cycles built in. This was placed in an iframe and another page was placed in

RE: [PHP] bookmarking with a trademark sign in title

2006-04-26 Thread Jay Blanchard
[snip] This might be slightly OT but it is related to a PHP project. I have a link on the site Im developing to bookmark the site. The title is XYZ company(tm) but when the add bookmark window comes up for saving the bookmark, I cannot see the (tm) sign. Does anyone have any idea of how to get

RE: [PHP] New Help with Javascript Navigation

2006-04-26 Thread Jay Blanchard
Pub, Thank you for subscribing to and participating in the PHP users list, a place where your PHP questions can be answered. Unfortunately your last post contained several problems; a. It was to long. 2. it was a JavaScript question. Thank you, Jay -- PHP General Mailing List

RE: [PHP] New Help with Javascript Navigation

2006-04-26 Thread Jay Blanchard
[snip] lol - that was almost perfect... you missed an 'o' ;-) [/snip] I am allowed a missed 'o' as I am on the bus (and have been for almost 24 hours) chaperoning a high school band trip to Florida. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Permission problem

2006-04-25 Thread Jay Blanchard
[snip] A while back I was persuaded by this illustrious group into thinking that placing images in a file system was superior to placing them in mySQL -- after all, what could go wrong with a file system solution, right? So I did. Now, I have a small problem. Unfortunately, most of the images

RE: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Jay Blanchard
[snip] ...a pretty good discussion... [/snip] I have used output buffering to flush stuff (like lengthy data) to the client before the end of the script so that those pesky users could see something was happening (because they couldn't be bothered to watch the browser's progress meter) and at one

[PHP] RE: Jay- RE: [PHP] How to find img tag and get src of image OT

2006-04-24 Thread Jay Blanchard
[snip] I want to get src of image form a $text And I want a pony! Jay, a warning would be nice before you post stuff like you posted above... I am _supposed_ to be working here and suddenly when I burst into laughter and then control myself to a big smile on my face everyone looks at me and

RE: [PHP] list noise [WAS: How to find img tag and get src of image]

2006-04-24 Thread Jay Blanchard
[snip] I'm here for PHP. I love the wit, humor, intelligence, and passion of the list debates, but I'm working my butt off earning my living writing software and simply don't have time to scroll down through some enormous unsnipped quote simply to find thanks! or you weenie! at the bottom.

RE: [PHP] shopping carts

2006-04-24 Thread Jay Blanchard
[snip] Another aspect is this: Why do we call it a shopping cart? [/snip] We discarded this terminology in favor of 'order fulfillment system' or OFS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to find img tag and get src of image

2006-04-23 Thread Jay Blanchard
[snip] Hi everybody! I want to get src of image form a $text, I have a below text $Text = table border=1 cellpadding=3% cellspacing=3% width=100% trtd width=20% img align=middle border=0 id=userupload/78/Autumn.jpg src=userupload/78/Autumn.jpg onClick=javascript:ViewImage(this.id);

RE: [PHP] forms and variables?

2006-04-21 Thread Jay Blanchard
[snip] Probably a stupid one but anyway... In PHP. Is it possible to point to a variable with the HTML form name by which it was posted from? Example: //point to the variable with something like or somenthing??? $AddNew.SomeVar form name=AddNew method=post action=? $PHP_SELF ? $SomeVar = Add;

RE: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-21 Thread Jay Blanchard
[snip] it's about our philosophies. [/snip] Too bad your article didn't reflect that as well as you might have liked. And Web 2.0 is a label, the underlying philosophy has been there for years (before you ever got Dreamweaver to write your first line of HTML for you). Ajax is a label for a loose

RE: [PHP] PDF to Text

2006-04-20 Thread Jay Blanchard
[snip] I am trying to find a way for a program to search through the text on a PDF. My first thought was to use pdftotext, but the PDFs generated by our commercial scanner/copier/printer machine do not seem to work with pdftotext... it just outputs two CRLFs. I've been looking around on the

RE: [PHP] PHP with Oracle

2006-04-19 Thread Jay Blanchard
[snip] is there a ready script that handle entering user name and password for authentication by extracting the Data from Oracle10g DB without showing the URL in the address bar...I am thinking of using a popup window Spec. [/snip] Please RTFM at http://www.php.net/oracle and have a look at

RE: [PHP] PHP with Oracle

2006-04-19 Thread Jay Blanchard
[snip] php.net  is DOWN!!! or what [/snip] Use your resources. There are mirrors if the main is down, also here is Oracle's PHP Dev Center; http://www.oracle.com/technology/tech/php/index.html http://us3.php.net/oci8 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-19 Thread Jay Blanchard
[snip] Yes, I absolutely agree that Rasmus is awesome and his accomplishments are far and beyond amazing, but I'm saying that I think that Rasmus is motivated to stay true to PHP's philosophies and not be willing to rethink them: that is what I meant by that. [/snip] What, exactly, is wrong with

RE: [PHP] PHP Script not sending email in WinME and PWS

2006-04-19 Thread Jay Blanchard
[snip] ...way too much crud... [/snip] A. I could never find a question. 2. That is way too much stuff to post through a mailing list. No one will go through it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Run Apache/PHP/MySQL from CD?

2006-04-19 Thread Jay Blanchard
[snip] I have no idea if this is possible or not but is there a way to run Apache, PHP, and MySQL from a CD? I'd like it to be possible to run it on Windows, Mac OSX and *nix. If it is possible could someone point me in the right direction? [/snip] You'd have to have CD's for each OS on which

[PHP] RE: Run Apache/PHP/MySQL from CD?

2006-04-19 Thread Jay Blanchard
[snip] I have no idea if this is possible or not but is there a way to run Apache, PHP, and MySQL from a CD? I'd like it to be possible to run it on Windows, Mac OSX and *nix. If it is possible could someone point me in the right direction? [/snip] Yippee, cross-posting!

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-19 Thread Jay Blanchard
[snip] I'm looking for a ready made php script that can open phpBB 2.0.20 accounts By sending username, email and password. {/snip] I am looking for a good hearted woman who likes to dance. I used Google. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP Script to open phpBB2 accounts

2006-04-19 Thread Jay Blanchard
[snip] How's it working for you? I'm still waiting on the top 10 to finish the questionnaire... [/snip] It is a little hit and miss, but that is the breaks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mktime() vs date()

2006-04-18 Thread Jay Blanchard
[snip] hi, is mktime() actually faster than date() or any other date functions? [/snip] This sounds like the perfect opportunity for you to write a test and return the results. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Last one for today! Pager problem

2006-04-18 Thread Jay Blanchard
[snip] My pager does everything but when I hit any of the links for the pages it doesn't show any results. It can be seen here (alothough the page doesn't seen to submit on the remote host. Any ideas why?? [/snip] I think it might be coder error, but that's just me. Anyone else? -- PHP

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jay Blanchard
[snip] I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your thoughts with me. http://www.maraby.com/papers/pushing_php_into_the_web_20_generation Don't be too skeptical. ;) [/snip] Web 2.0 Hype alert. There is no such

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jay Blanchard
[snip] I've written a short paper on the future of PHP and I'd appreciate it if you folks would take a look at it and exchange your thoughts with me. http://www.maraby.com/papers/pushing_php_into_the_web_20_generation Don't be too skeptical. ;) [/snip] I have now taken the time to read it and I

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jay Blanchard
[snip] .. [/snip] And his mailing list name is James Crane, he signs of as M.T. which stands for Matt Todd. I call shenanigans. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Jay Blanchard
[snip] foreach ($checkbox as $value) { echo Value: $valuebr /\n; } however the value is no longer being echoed to the page. What am I missing here? This is the code that is being submitted, $num being an incremented value: input name=checkbox[?php echo $num; ?] type=checkbox

RE: [PHP] uml tool for php

2006-04-18 Thread Jay Blanchard
[snip] is there a suggested tool that can create uml diagrams for php 5 objects (ie import in a file and create a diagram)? [/snip] http://uml.sourceforge.net/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Pushing PHP Into The Web 2.0 Generation

2006-04-18 Thread Jay Blanchard
[snip] the article is also under the name of Matt Todd, didn't catch that first time round - very odd - if this was some kind of prank then first mailing internals (also under the name James Crane) has a really high ***hole factor. [/snip] I found the kid's actual e-mail addressanyone

RE: [PHP] pause until page is loaded

2006-04-18 Thread Jay Blanchard
[snip] I created a script to redirect to a download auto. but it redirects before the Whole page is loaded. How do I pause until page is loaded? [/snip] Page loading is client-side, but you can delay the redirect using sleep(). -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Table formation...

2006-04-17 Thread Jay Blanchard
[snip] time limits always dictate the 'get it working' solution, that said Paul's suggestion is rather better than using a table for a couple of reasons (imho): 1. it saves you having to pre-order/split/etc the original data so that you can then loop them/it in order to dump out a table. 2. it

RE: [PHP] How can I see where my script wasting time?

2006-04-17 Thread Jay Blanchard
[snip] I was developing one site with fake records in DB. Now, I put it live whit real records. The site is running ok, but it's painfully slow. Even for grabbing an order from DB and showing it on screen, from 1-2 sec (while developing) went to almost 10-15 sec?!? No, of records for orders is a

RE: [PHP] phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jay Blanchard
[snip] i have delete a few entries in my database as they were entered for testing purposes and are no longer need (actually 102 entries)... and even thought that db is empty i noticed that when the next entry went in the id number went to 103 not 0 so i was wondering is it possible to somehow

RE: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jay Blanchard
[snip] 2. Reset the auto_increment in Operations to 101 [/snip] This isn't another of those 'reseting the auto-increment' holy war questions where you use the AI number as an identifier for the record, is it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Table formation...

2006-04-16 Thread Jay Blanchard
I know that this is simple, and again I am operating on little rest in the quest to get a site launch by sometime tomorrow evening. I have a table of data and I want to display items by two's, i.e. Item 1 Item 2 Item 3 Item 4 Item 5 ...and so on. I seem to remember doing this using mod

RE: [PHP] Table formation...

2006-04-16 Thread Jay Blanchard
[snip] Something like this? $c = 0; while($c $itemcount) { if ($c % 2 == 0) $c++; } [/snip] Yep! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Jay Blanchard
[snip] I just get obsessive and thorough when testing and then I don't like stale data in my database - so I like to reset everything. It would be better to backup before testing and then restore. Resetting the AI just makes it the same as if you had. [/snip] I agree, that is why I truncate

RE: [PHP] Table formation...

2006-04-16 Thread Jay Blanchard
[snip] Pardon my asking on the eve of your launch, but is a table the most sensible markup for this data? It looks to me like a one-dimensional list that just happens to be presented two to a row. If so, I'd use an unordered list, float each item left, and limit the list width to two item

RE: [PHP] how to reload a PHP page via PHP code

2006-04-14 Thread Jay Blanchard
[snip] I would like to know if it exist a method to reload a PHP page via PHP code ? the topic behind is that i do not want to specify the PHP page to reload. It must reload the actual page only. for example, if use views the page : test.php and click on US flag image. PHP should reload this page

RE: [PHP] how to reload a PHP page via PHP code

2006-04-14 Thread Jay Blanchard
[snip] Sorry, but i do not find it in my PHP manual :-( [/snip] http://www.php.net/manual/en/reserved.variables.php It is actually the first one mentioned on the page. :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php - mysql problem

2006-04-14 Thread Jay Blanchard
[snip] $sql = SELECT * FROM `table1` LEFT JOIN `table2` USING `id` WHERE ... GROUP BY `table1`.`id`; mysql_query($sql); the problem is, that, when in table2 is not matching data using that id, i lose that id from output array. but i don`t want to.. is there any posibility to keep that id?

RE: [PHP] php - mysql problem

2006-04-14 Thread Jay Blanchard
[snip] table1 id name value table2 id x y i want to id name value x y but there is no id from table 2 that is in table2.id and i want the resource to bu something like this: id(from table 1) name value (empty) (empty) SELECT table2.* FROM table1 LEFT OUTER JOIN table2 ON(table1.id =

RE: [PHP] php - mysql problem

2006-04-14 Thread Jay Blanchard
[snip] SELECT table1., *table2.* FROM table1 LEFT OUTER JOIN table2 ON(table1.id = table2.id) [/snip] Oops, typo. SELECT table1.*, table2.* FROM table1 LEFT OUTER JOIN table2 ON(table1.id = table2.id) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] return a formatted difference between two dates

2006-04-14 Thread Jay Blanchard
[snip] is there a function to take a second count and return it as a formatted difference? like a date_diff('H hours i',6133) that uses date()'s formatting. [/snip] http://www.php.net/mktime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] interview

2006-04-13 Thread Jay Blanchard
[snip] can you please send some interview questions for php i have in few days to inteview some people. [/snip] 1. How's you mum? 2. What is PHP? 3. Have you met any of the folks on that list? 4. Can you ask them questions about PHP? -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] SQL result

2006-04-13 Thread Jay Blanchard
[snip] I remember that i use a func that it return an array what it consist of result of my sql query. Please name me that. [/snip] RTFM. You are now named mysql_fetch_array. http://www.php.net/mysql_fetch_array -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] interview

2006-04-13 Thread Jay Blanchard
[snip] Will PHP help me save money on my car insurance? [/snip] No, but a fifteen minute call to Geico will. Wait. That is an answer. I so suck at this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] interview

2006-04-13 Thread Jay Blanchard
[snip] Great, now the interviewee will be able to cheat. Way to go Jay. [/snip] *blush* I know. I wonder where we could apply, that way we can skew the results so that the cheating doesn't matter. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] interview

2006-04-13 Thread Jay Blanchard
[snip] How much wood would a wood chuck chuck if a wood chuck could chuck wood?? [/snip] Sub-question A; using a regular wood chuck? Sub-question B; using a PHP wood chuck? (Never mind the expense) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] plain text email message format

2006-04-12 Thread Jay Blanchard
[snip] Is the code below the correct way to 'build' the message for plain text email? $message = Message From: .$firstName. .$lastName. First Name: .$firstName. Last Name: .$lastName. Address: .$address. Home phone: .$homePhone. Best time to contact: .$bestTime. Email: .$email.; [/snip] Yes.

RE: [PHP] XML its elements

2006-04-11 Thread Jay Blanchard
[snip] I need to retrive content of my XML element.my element is translation. translationMY _CONTENT/translation Of course i wanna use PHP4 instead 5. [/snip] http://www.php.net/xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] OT - PHP Webhost Dedicated Server

2006-04-11 Thread Jay Blanchard
[snip] Any suggestions for Dedicated PHP Webhost. [/snip] http://www.phpwebhosting.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] user authentication

2006-04-11 Thread Jay Blanchard
[snip] i'm sure that it's a stupid question but i would like to have your feedback on it. i have MySQL with 2 users in the mysql database which are root and uimmense. i suppose that what i see in the password field is the sha1 crypted password. is it correct or not ? but lets continue... in

<    4   5   6   7   8   9   10   11   12   13   >