Re: [PHP] str_replace on words with an array

2006-10-29 Thread Paul Novitski
e, perhaps you could enclose each member of your original array in \b word boundary sequences using an array_walk routine so that you don't have to muddy your original array declaration statement. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace on words with an array

2006-10-29 Thread Paul Novitski
Paul Novitski wrote: If you go this route, perhaps you could enclose each member of your original array in \b word boundary sequences using an array_walk routine so that you don't have to muddy your original array declaration statement. At 10/29/2006 01:54 PM, rich gray wrote:

Re: [PHP] Decide witch table within a union

2006-10-29 Thread Paul Novitski
o somehow divine the source of a record in a union query when the query itself could simply supply that datum easily. Curiously, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Decide witch table within a union

2006-10-29 Thread Paul Novitski
thought was a great idea, but only because I thought he meant the query. Warm regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WAP?

2006-11-02 Thread Paul Scott
On Thu, 2006-11-02 at 17:11 -0500, [EMAIL PROTECTED] wrote: > http://www.w3schools.com/wap/ Also, don't forget hawhaw. I think it lives at http://www.hawhaw.de or something. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006

Re: [PHP] Trying to create an encryption method

2006-11-04 Thread Paul Novitski
where your problem lies. By the way, are you aware that chr(1) isn't 'A'? It's hex(01). 'A' = hex(40) = dec(64). Your array $normalAlphabet is not going to contain the alphabet the way it's written now. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Staff log-in

2006-11-10 Thread Paul Novitski
if the OP considered for a moment hiring any self-proclaimed professional who replied so harshly to his query. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MDB2 : never ending story

2006-11-13 Thread Paul Scott
want and the number of rows after that that you want... $res = $db2->exec($stmt); if (PEAR::isError($res)) { $ret = false; } else { .; --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/

Re: [PHP] MDB2 : never ending story

2006-11-13 Thread Paul Scott
utions that people on this list, and others, have given you... My final advice to you is RTFM and google it. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.ne

Re: [PHP] one click - two actions?

2006-11-13 Thread Paul Novitski
ur logic I urge you not to use it. 2) You omitted the $ in front of $url. 3) You used a single equal sign instead of two. This: if ($url = $row['url']) tests whether $row['url'] is blank, and also sets $url equal to that value. I think

Re: [PHP] Splitting a string

2006-11-14 Thread Paul Novitski
tch http://ca3.php.net/manual/en/function.preg-match.php Pattern Syntax http://ca3.php.net/manual/en/reference.pcre.pattern.syntax.php Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSS / PHP / Javascript

2006-11-14 Thread Paul Novitski
eir idiosyncratic bugs. This topic will be much better received in a CSS listserve such as CSS-D. Before you post, check their wiki for plentiful suggestions: http://css-discuss.incutio.com/ and specifically: http://css-discuss.incutio.com/?page=BrowserDetection Regards, Paul -- PHP

Re: [PHP] Splitting a string

2006-11-15 Thread Paul Novitski
this: /(\d+)(\d{2})(\d{2})$/' to this: /(\d*)(\d{2})(\d{2})$/' so it won't require any digits before the final two pairs. * 0 or more quantifier + 1 or more quantifier http://ca.php.net/manual/en/reference.pcre.pattern.syntax.php Paul

Re: [PHP] Looping through array

2006-11-16 Thread Paul Novitski
solution because it allows you to mark up the numbers in sequence and in future change the number of items in the sequence and/or change the way the series is presented visually without having to mess with the logic generating the markup. Regards, Paul -- PHP General Mailing List (http://

Re: [PHP] Re: Space in regex

2006-11-16 Thread Paul Novitski
he close-bracket and the vertical pipe and the second field with: [^\]] anything except the close-bracket Therefore: /\[([^\]|]+)\|([^\]]+)\]/ Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Splitting a string

2006-11-16 Thread Paul Novitski
On Thursday 16 November 2006 01:38, Paul Novitski wrote: > If you need to left-pad with zeroes, PHP comes to the rescue: > http://php.net/str_pad > > However, if you're using the regular expression > method then you might not need to pad the > number. You can chang

Re: [PHP] Re: Space in regex

2006-11-16 Thread Paul Novitski
http://ca.php.net/manual/en/reference.pcre.pattern.syntax.php Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Space in regex

2006-11-16 Thread Paul Novitski
hich I'm sure you don't here. On other regexp points: Thanks, Paul. I've been refining my methods, and I think it's better (for me) to just match everything between [ and ], including spaces, underscores, apostrophies, and pipes. I'll explode on the pipe inside the function. So

Re: [PHP] Powered by?

2006-11-22 Thread Paul Novitski
, brevity is golden. I generally just say 'Website by' and allow that ambiguity to fill the available space. It works by itself and also in conjunciton with a separate 'Design by' credit. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
ith a single double click. If you are interested in taking this route, I could set you up with some links, as well as our ISO that you could modify and re make... --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
nk that your stuff could be really useful to them. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting around the undefined index

2006-11-27 Thread Paul Novitski
ou can simplify your href to: By specifying just the querystring and not the file name, I believe it will always simply reload the current page with the querystring attached. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
er time to a myriad of African languages and we will all benefit from it. Thanks for your interest! --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] text only and text sizer

2006-11-27 Thread Paul Novitski
ng like this: if (isset($_GET[$argname])) { return $_GET[$argname]; } elseif (isset($_SESSION[$argname])) { return $_SESSION[$argname]; } In other words, if the value has been set by the last request from the client, use th

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 11:41 -0800, Ryan A wrote: > Hey Paul, > > Now this is sounding promising! > Can you send me details on how/where I can download your package to > give it a go? > The ISO image is now available at: http://fsiu.uwc.ac.za/iso/ --Paul All Email origi

Re: [PHP] Detecting naughty sites

2006-11-28 Thread Paul Novitski
s than we do -- you know, like muddy screwdrivers and oily vises -- you're going to have to do it yourself. Look at each image and judge for yourself. At least you can rest assured that your own judgement is sound. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting naughty sites

2006-11-28 Thread Paul Novitski
ertisers, it wouldn't pay to have a near-sighted or illiterate gatekeeper. Perhaps the only way to do what you're suggesting is to write an image pattern recognition algorithm so sophisticated that it can differentiate a photograph of a hand caressing a breast from a photograph

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Paul Novitski
a PHP programmer to modify the markup of one of your pages. Do you not see the advantage in separating the two layers? Again, in spite of this criticism I'm impressed with your effort. Good work! Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting naughty sites

2006-11-29 Thread Paul Novitski
At 11/29/2006 01:51 AM, Robin Vickery wrote: Cubist Porn - very big in certain 'artistic' circles. What, both eggs on the same side of the sausage? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Paul Novitski
At 11/29/2006 05:13 AM, Satyam wrote: - Original Message - From: "Paul Novitski" <[EMAIL PROTECTED]> What I find to be a much greater problem is the human readability of logic code when HTML is mixed throughout. Your innovation is helpful here, as you're nearly

Re: [PHP] Tidy HTML source?

2006-11-30 Thread Paul Novitski
is discussion is the separation of markup from logic. With respect to separating code and markup, you said "sometimes there are reasons not to do so, for example, web services." What are some of those reasons? Cheers, Paul -- PHP General Mailing List (http://www.php.net

Re: [PHP] Tidy HTML source?

2006-11-30 Thread Paul Novitski
On Thursday 30 November 2006 18:51, Paul Novitski wrote: > With respect to separating code and markup, you said "sometimes there > are reasons not to do so, for example, web services." What are some > of those reasons? At 11/30/2006 10:57 AM, Sancar Saran wrote: Wha

Re: [PHP] Remote MySQL connection via PHP file

2006-12-01 Thread Paul Novitski
at, for the requesting program to parse and utilize. The first thing I'd put in the return dataset would be a status code to communicate MySQL errors, perhaps also num_rows for SELECT queries to reduce the number of trans-server requests necessary for typical jobs. Regards, Paul -- PHP G

Re: [PHP] Tidy HTML source?

2006-12-01 Thread Paul Novitski
At 12/1/2006 02:22 PM, Richard Lynch wrote: On Thu, November 30, 2006 6:47 pm, Paul Novitski wrote: > A templating system requires the processor to merge content with > template. An inline markup assembly system requires the processor to > build the markup from function calls. Whe

RE: [PHP] Distinguishing between a mouse click and a refresh?

2006-12-04 Thread Paul Novitski
is invoked with that querystring, PHP does the necessary processing and then redirects to itself (the same page) but without the special querystring. Therefore reloading the page that's downloaded to the client won't reinvoke the post-click process. Regards, Paul -- PHP General Ma

Re: [PHP] recursive function problem

2006-12-07 Thread Paul Scott
On Thu, 2006-12-07 at 13:41 +0100, Sjef wrote: > Hello! > I wrote a recursive function, but when running the function appache stalls, > the error log says: Did you write a recursive function to send this mail to this list perhaps? --Paul All Email originating from UWC is covered by d

Re: [PHP] heredoc

2006-12-18 Thread Paul Novitski
ing pulling the tangled and bloody fragments of logic and markup from the wreckage of their collision. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: ECHO

2006-12-18 Thread Paul Novitski
ethod without messing with the others. It can be hard medicine to swallow the first time, but it will make you a leaner & cleaner coder. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database Question

2006-12-19 Thread Paul Novitski
separate tables the engine will have to select from each table separately before compiling them. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Excluding apostrophe's

2006-12-22 Thread Paul Novitski
_ Remember, my son, PHP-general helps those who help themselves. Piously, Poop Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Paul Novitski
ings you can do that make your script more efficient to execute AND to maintain. Personally I favor separating out the HTML into larger, pure chunks that can be proofread more easily than when tags and attributes are atomized and strewn throughout the logic. Regards, Paul -- PHP Gene

Re: [PHP] How do I output error messages

2006-02-21 Thread Paul Goepfert
$submit is soppose to be set when the user submits the web form for validation. I am not sure but is there soppose to be a $submit = statement? Paul On 2/21/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > if (isset($submit)) > { > //vaildation code > } &

[PHP] Error compiling php 5.1.2

2006-02-25 Thread Paul Reinheimer
;--with-db4' '--disable-eapi' '--with-xsl' '--enable-memory-limit' '--with-libxml-dir=/usr/local/lib/' make ends with collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 anyone got any ideas, or hints on what information I should be giving to make diagnosis easier/possible? thanks paul -- Paul Reinheimer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error compiling php 5.1.2

2006-02-25 Thread Paul Reinheimer
Thanks, I've subscribed to and posted to the instalation list. I'm going to try and stay off internals@ if I have a choice. thanks paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error compiling php 5.1.2

2006-02-25 Thread Paul Reinheimer
I posted the full output of make earlier in this thread, as well as the configure command i'm using, what are you looking for? The ./configure output lines that reference libxml say nothing out of the ordinary. paul On 2/25/06, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On

[PHP] Displaying Form Errors

2006-03-02 Thread Paul Goepfert
and I got some good pointers on how I should go about doing my validation but I have not yet figured out how to display the errors on the page. Could someone help me with that. I am doing the validation on the same page as the web page. I don't forward to a new page to do the validation

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Paul Scott
od, I can also use a global error callback method to handle _all_ database errors gracefully, using PEAR_Error. I do think that there may be a slight performance hit doing it this way, but in an app with over 180 000 lines of code (so far) I find it works just fine... --Paul -- PHP General Mai

[PHP] php/mysql/phpMyAdmin on an iBook?

2006-03-04 Thread Paul Jinks
mysql/phpMyAdmin working on one of these machines. Thanks in advance Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] output Today's date

2006-03-04 Thread Paul Goepfert
but the way I described this the two people accessed the webpage at the same time but I want the correct date for the client computer to be outputted. Thank you, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysql Rows

2006-03-06 Thread Paul Novitski
27;s simply -- concretely -- inefficient & inelegant to modify on average half the records in a database simply in order to delete one record, when queries give us fast, simple, READ-ONLY methods for enumerating existing data. Regards, Paul -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Re: Incremental Date Based ID

2006-03-08 Thread Paul Novitski
THE PRESENTATION and you aren't put in the inelegant position of trying to renumber records in a database. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] .DAT file with PHP

2006-03-08 Thread Paul Novitski
At 07:41 AM 3/8/2006, Jabez Gan wrote: Sorry im new but, how do we read from a file to an array? I've studied C but not with PHP and it's not working for me... Suggestions? file() Reads entire file into an array http://php.net/file Doesn't require open & close. Pau

Re: [PHP] .DAT file with PHP

2006-03-08 Thread Paul Novitski
play_content; I don't think PHP will "care" whether it's broken out or not -- internally it's having to create temporary variables on the fly to store incremental values -- but your future self and other folks reading your code will thank you for it. Regards, Paul --

Re: [PHP] Zoomable map

2006-03-08 Thread Paul Scott
te excellent mapping applications. Then again, this may be overkill, and google maps API may be your best bet. --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] .DAT file with PHP

2006-03-08 Thread Paul Novitski
At 07:05 PM 3/8/2006, Jabez wrote: I used the following code that Paul suggested, but it didn't reverse my content. The file I would want to have the content reversed is as attached. Chinese characters is in the file so... Suggestions? Jabez, The data in your file is all in one text

[PHP] Random permission strangeness

2006-03-08 Thread Paul Scott
, and nothing really reproduceable. I am using: PHP Version 5.1.2 on Apache2 Debian GNU/Linux amd64 stock kernel on Opteron processors. Has anyone any ideas as to why this is happening? --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random permission strangeness

2006-03-08 Thread Paul Scott
-wt owner root. Would it not be a little unsafe to change those permissions to anything less secure? I certainly wouldn't think it OK to chown to the webserver user...? --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] X-Mailer and headers when sending mail

2006-03-09 Thread Paul Scott
uot;you@".$_SERVER['SERVER_NAME'].">\n"; > > is this ok? I would do a date("r") for a nice RFC format date and time, but it should be OK. > > Perhaps if someone has a link on the headers for a mail that could help me it > would be much appr

Re: [PHP] Random permission strangeness

2006-03-09 Thread Paul Scott
omes the error regarding cleanup of files. --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random permission strangeness

2006-03-09 Thread Paul Scott
ff and see what I can do with it. If that also fails, will do the bug report, but I want to be dead sure before I start causing trouble for other people! Thanks for your help! --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ebay/nusoap example?

2006-03-10 Thread Paul Reinheimer
I tried to get the eBay API working with nusoap for quite a while, but eventually gave up and wrote my own code from scratch. There is a pear project that deals with eBay if you're more interested in using a prefab solution than coding your own from scratch. paul On 3/8/06, jon &l

[PHP] PHP/CSS/Javascript question

2006-03-11 Thread Paul Goepfert
Hi all, Is it possible to modify a table using JavaScript to control CSS visabilty when the entire table is developed dynamically using PHP? Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
appreciate it. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
On 3/12/06, Curt Zirzow <[EMAIL PROTECTED]> wrote: > On Sun, Mar 12, 2006 at 12:09:42PM -0700, Paul Goepfert wrote: > > Hi all, > > > > I am trying to validate phone numbers in a web form that I have > > created. I am using a regular expression to validate the p

Re: [PHP] Phone number validation

2006-03-12 Thread Paul Goepfert
ece I have it what method removes the characted or number? I know this seems trivial but I am still new to php and I don't have a good understanding of the language yet. The more I do the better I'll get. Thanks Paul On 3/12/06, Curt Zirzow <[EMAIL PROTECTED]> wrote: > On Sun, Ma

Re: [PHP] X-Mailer and headers when sending mail

2006-03-13 Thread Paul Scott
iority setting, but no > X-Mailer * 1.8 INVALID_MSGID Message-Id is not valid, according to RFC 2822 > Looks like setting X-Mailer should do the trick --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating forms dynamically

2006-03-14 Thread Paul Goepfert
Hi all, I have been working on a page where I have a form. I currently have the form in an else block with no access to it if I need to redisplay the form incase of errors. To be more specific I want to redisplay the page with the errors displayed. I would like to have the form coded once. It wo

[PHP] Re: Creating forms dynamically

2006-03-14 Thread Paul Goepfert
Class validation { //functions } if(isset($submit)) { //calls to validation code } else { //display webpage } On 3/14/06, Paul Goepfert <[EMAIL PROTECTED]> wrote: > Hi all, > > I have been working on a page where I have a form. I currently have > the form in an else block

[PHP] regular expressions and Phone validation

2006-03-15 Thread Paul Goepfert
if ((strlen($Phone)) <= 14) return preg_replace("/[^0-9]*([0-9]{3})[^0-9]*([0-9]{3})[^0-9]*([0-9]{4}).*/", "(\\1) \\2-\\3",$Phone); } } I think my problem is mostly what is returned when preg_replace executes? Paul -- PHP Genera

Re: [PHP] heredoc syntax vs Double-Quotes

2006-03-15 Thread Paul Novitski
worry about typos. I find it one of the strongest features of PHP as compared to other scripting languages. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mail function problems

2006-03-19 Thread Paul Goepfert
email sent to me. This is what I did, I created the following variables: $to = "[EMAIL PROTECTED]"; $subject ="Test"; $message ="This is a test" $headers = "From: Paul " . "<[EMAIL PROTECTED]>\r\n"; $headers .= "

[PHP] mysql_fecth_array() and function call as parameter

2006-03-26 Thread Paul Goepfert
$return = "SELECT m_id, months FROM Month WHERE m_id >= month(curdate())+1"; else $return = "SELECT m_id, months FROM Month WHERE m_id >= month(curdate())";

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-26 Thread Paul Goepfert
that says "Resource id#9". I don't get it. I tested the sql statement in MySQL that I have on my computer. It worked, Why wouldn't it give the same output through mysql_query()? Paul On 3/26/06, Chris <[EMAIL PROTECTED]> wrote: > Paul Goepfert wrote: > > H

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
ql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\validation.php on line 342 By the way I tested the SQL statements in MYSQL and they returned the values I was looking for. What am I missing? At the time of this email I wa

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
30"; break; } return $return; } Here is the code for where I output the contents of the query $day = $this->determineDay(); $Day_query = mysql_query($day); while ($a = mysql_fetch_assoc($Day_query))

Re: [PHP] mysql_fecth_array() and function call as parameter

2006-03-27 Thread Paul Goepfert
according to my SQL the month name ois going to be returned not the month number. m_id is the number equivlent to the month. months is the full name of the month. In my month method I did not change the case values to the month number and the function returns correctly. All I had to do was add t

Re: [PHP] php error reporting problem

2006-03-28 Thread Paul Novitski
, this results in a legal statement. To show the error message, enter two statements that you're sure will combine into invalid syntax, such as: $x = 4 $y = 3; Their concatenation results in: $x = 4 $y = 3; which should get you "parse error, unexpected T_VARIAB

[PHP] Not sure if this is a php problem or a mysql problem

2006-03-28 Thread Paul Goepfert
27;t have a problem with "year(curdate())" or "month(curdate())". Even though the functilon works on the final destination webserver I would like to know why it won't work on my testing server. Thanks Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP MVC

2006-03-29 Thread Paul Scott
ery string, it will return a template. To see it in action, go to http://fsiu.uwc.ac.za get the code at http://avoir.uwc.ac.za/projects/nextgen/ I would recommend doing an anonymous CVS checkout here, as we only do a new release on Friday... --Paul -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP MVC

2006-03-29 Thread Paul Scott
nes: if($this->objUser->isAdmin()) { //allow the user to do something } else { //redirect the user to another action or module $this->nextAction('anotherAction', 'anotherModule'); } --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Paul Goepfert
version 5.0.18-nt) and it worked with out any errors. And this code works on a different web server. Mysql client version 3.23.49. However it does not work on mysql client version 3.23.54. Also both php versions are the same. Thanks Paul On 4/3/06, Jon Drukman <[EMAIL PROTECTED]> wrote: > P

Re: [PHP] test for illegal characters and consequences

2006-04-04 Thread Paul Scott
e AJAX validation --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] suse php apache2 sessions problem

2006-04-04 Thread Paul Nowosielski
ions and frankly I'm dumbfounded as to why my phpinfo() is still not even listing sessions as a modules??! Any suggestions would be greatly appreciated. TIA! -- Paul Nowosielski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] test for illegal characters and consequences

2006-04-05 Thread Paul Scott
ance. Send an error message to the user and get them to refill the input box. Not sure what the question is? --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Faking Boolean

2006-04-06 Thread Paul Novitski
Enquiry); RESULT: array( john johnston ) // concatenate the array back into a string using desired delimiters $sSearch = implode(" +", $aWords); RESULT: [john +johnston] Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple regex query

2006-04-06 Thread Paul Scott
a wiki, check it out at http://fsiu.uwc.ac.za/ If its not there, please add a method once you figure it out! --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IF or SWITCH

2006-04-06 Thread Paul Novitski
es the syntax to "if (A && B)" so it knows the number of expressions and their Boolean relationships, so that when it begins evaluating the granular expressions in sequence it knows when the overall conclusion is determined. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating a Photo Album

2006-04-07 Thread Paul Goepfert
k.now how to do well in PHP is mysql queries and data validatlion. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Handling Large Select Boxes

2006-04-07 Thread Paul Novitski
ill-down in which all the category menus remain on the screen: http://www.dandemutande.org/ResourceGuide/ Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing variables within string variables

2006-04-07 Thread Paul Novitski
ontains the string 'Hello $foo': $foo = "cat"; $sText = eval($sDataField); RESULT: $sText = "Hello cat" http://php.net/eval Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing variables within string variables

2006-04-07 Thread Paul Novitski
the PHP interpreter differentiate a variable from the surrounding text: $bar = "Hello ${foo}amaran"; If you escape the dollar sign, the variable won't be evaluated: $bar = "Hello \$foo"; RESULT: "Hello $foo" Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Book Recommendation

2006-04-07 Thread Paul Goepfert
Hi all, Can anyone tell me a good php book to buy. I already have Web Database Applications with PHP & MySQL by O'Reilly. Thanks, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Parsing variables within string variables

2006-04-07 Thread Paul Novitski
; because everything inside the eval() parentheses needs to be a complete PHP statement. The eval() function itself doesn't return the value of an evaluated expression. To capture the value of an expression, you must evaluate a complete statement that sets a variable equal to the expression as above. ___ Clear as mud? Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating a Photo Album

2006-04-07 Thread Paul Goepfert
updating by user click for now. I might change that in the future to update by interval. Paul On 4/7/06, tedd <[EMAIL PROTECTED]> wrote: > At 12:13 AM -0700 4/7/06, Paul Goepfert wrote: > >Hi all, > > > >I am postilng pictures up on a website. So far I have a picture

Re: [PHP] Creating a Photo Album

2006-04-08 Thread Paul Goepfert
I'm not looking for someome to do it for me. I would like to learn how to do this my self. I have written code in Java and C/C++ before. From the function list in the PHP manual some of the functions look like the C/C++ functions. Thanks, Paul On 4/8/06, tedd <[EMAIL PROTECTED]> wr

Re: [PHP] Variable within a Variable

2006-04-09 Thread Paul Novitski
At 06:54 PM 4/9/2006, bob pilly wrote: Im trying to store a document template in mysql that has php var names within it and then find it in the datebase and print it out with the var names replaced with the var values. At 04:05 PM 4/7/2006, Paul Novitski wrote: At 02:41 PM 4/7/2006, David

Re: [PHP] php varible in Javascript alert()

2006-04-11 Thread Paul Novitski
roperly) the message can't be recalled. I recommend doing for the user almost exactly what you're doing for debugging purposes -- output the error message to the page AND to a javascript alert(). The alert() gets their attention, and the page-bound error message lets them read it a

Re: [PHP] make keys of a associative array DB field names?

2006-04-14 Thread Paul Novitski
ay($oHandle, MYSQL_ASSOC)) { // cycle through the fields in each record: foreach ($aDataRow as $sField => $sValue) { // $sField is the field name // $sValue is the field value }

Re: [PHP] Compacting multiple spaces...

2006-04-14 Thread Paul Novitski
; ...the lines I've marked with an asterisk should reveal the true length of the string, including all nine spaces, even though the screen-print functions make it look like they've been consolidated into one space. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Table formation...

2006-04-16 Thread Paul Novitski
ional 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 widths. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    7   8   9   10   11   12   13   14   15   16   >