On 20/08/13 15:00, Tedd Sperling wrote:
Hi guys:
A teacher at my college made the statement that JAVA for Web Development is
more popular than PHP.
Where can I go to prove this right or wrong -- and/or -- what references do any
of you have to support your answer? (sounds like a teacher, huh?)
On 13/06/13 10:44, BUSCHKE Daniel wrote:
Hi,
thanks for your answer. Especially the answer "42" made me laughing :)
My "Why" questions should be understand as "Why must it be like that" questions.
On 13/06/13 08:59, BUSCHKE Daniel wrote:
5. Thats a bug I have opend: https://bugs.php.net/bug.ph
On 13/06/13 08:59, BUSCHKE Daniel wrote:
Hi all,
I want to start a discussion about a PHP behaviour that drives me crazy for
years. For the beginning I would like you to guess what the result of the
following snippet will be:
var_dump('PHP' == 0);
I know the difference of == and === but the r
On 26/07/11 18:20, alekto wrote:
Hi,
is there a way to create a tree menu list only by using php/html/css?
I found some, but they are all in JavaScript, do I have to make them by using
JavaScript or is there a way in php as well?
This is how I imagine the tree menu should look like:
v First l
On 06/07/11 17:33, Robert Williams wrote:
Where I've made most use of heredocs is when I want to do nothing but define a
bunch of
long strings in one file.
I find the most useful thing about heredocs is that they don't care about
quotation marks, so I often use them for SQL statements where I
On 15/06/11 01:24, Marc Guay wrote:
I bought a 1GB external hard drive for $1000. Did I just choke on my lunch?
If that was about 20 years ago, then it would be fine!
--
Peter Ford, Developer phone: 01580 89 fax: 01580 893399
Justcroft International Ltd.
On 06/06/11 21:07, Richard Quadling wrote:
On 6 June 2011 13:55, Pete Ford wrote:
Is there something on the Apache/PHP end that might be causing this
blocking? (Apache 2.2.10, PHP 5.2.14)
The browser and / or OS may be obeying the settings about the number
of simultaneous connections per
I have a file download 'guardian' page which does something like this:
$size = filesize($path);
$fi = @finfo_file($path, FILEINFO_MIME_TYPE);
@header('Content-type: ' . $fi);
@header('Content-Length: ' . $size);
@readfile($path);
exit;
($path is derived from parameters in the request, including
On 23/05/11 13:12, tedd wrote:
At 9:47 AM +0100 5/23/11, Pete Ford wrote:
Finally, for some applications I have made an AJAX (javascript + PHP)
implementation which provides feedback to the user as they type in the
date field: every time a character is typed in the box, the backend is
asked to
On 20/05/11 16:29, Geoff Lane wrote:
On Friday, May 20, 2011, Peter Lind wrote:
Try:
$date = new DateTime($date_string_to_validate);
echo $date->format('Y-m-d');
Many thanks. Unfortunately, as I mentioned in my OP, the DateTime
class seems to be 'broken' for my purposes because it uses str
On 22/05/11 06:46, Roger Riordan wrote:
On Thu, 05 May 2011 08:28:53 -0400, sstap...@mnsi.net (Steve Staples) wrote:
On Thu, 2011-05-05 at 21:41 +1000, Roger Riordan wrote:
I have developed a common engine which I use for several different websites. I
had been
using PHP 5.2.? and IE6 (yes; I
On 19/05/11 10:37, Tim Streater wrote:
On 19 May 2011 at 10:20, Richard Quadling wrote:
On 18 May 2011 19:15, Nazish wrote:
Hi everyone,
code, code, code.
?>
The session cookie must be sent prior to any output. Including, but
not limited to, comments, whitespace, HTML code, etc.
On 03/04/11 19:41, Jason Pruim wrote:
So the subject says it all... And yes I know this isn't related to PHP but it's
the weekend and I trust the opinions on this list more then any other list I
have seen. I've been doing alot of reading on XML and honestly it looks pretty
cool... BUT the ques
On 22/02/11 14:40, Gary wrote:
"Pete Ford" wrote in message
news:76.48.39221.054c3...@pb1.pair.com...
On 22/02/11 13:59, Gary wrote:
"Pete Ford" wrote in message
news:a4.c0.39221.b3ca3...@pb1.pair.com...
On 22/02/11 05:40, Gary wrote:
Can someone tell me why this is no
This bit?
On 22/02/11 22:06, Gary wrote:
for($i=1; $i<=$_POST['counties']; $i++) {
if ( isset($_POST["county{$i}"] ) ) {
You loop over $_POST['counties'] and look for $_POST["county$i"]
I suspect that there is no field 'counties' in your form, so the server is
complaining about the missing i
On 22/02/11 13:59, Gary wrote:
"Pete Ford" wrote in message
news:a4.c0.39221.b3ca3...@pb1.pair.com...
On 22/02/11 05:40, Gary wrote:
Can someone tell me why this is not working? I do not get an error
message,
the results are called and echo'd to screen, the count does not work
On 22/02/11 05:40, Gary wrote:
Can someone tell me why this is not working? I do not get an error message,
the results are called and echo'd to screen, the count does not work, I get
a 0 for a result...
$result = mysql_query("SELECT * FROM `counties` WHERE name = 'checked'") or
die(mysql_erro
On 20/02/11 21:37, Nazish wrote:
Issue resolved!
It turned out to be the use of quotations. Instead of double quotations to
surround the $insert variable, it worked with single quotations:
$insert = ' INSERT INTO user_info
(login,password)
VALUES
("'.$login.'", "'.$passw
On 12/01/11 14:13, Richard Quadling wrote:
On 12 January 2011 14:07, Steve Staples wrote:
On Wed, 2011-01-12 at 13:40 +, Richard Quadling wrote:
On 12 January 2011 13:20, Steve Staples wrote:
Jim,
Not to be a smart ass like Danial was (which was brilliantly written
though), but you hav
On 12/01/11 03:35, David McGlone wrote:
Hi Everyone, I'm having a problem validating some links I have in a foreach.
Here is my code:
http://www.w3.org/TR/html4/loose.dtd";>
my PHP code:
$categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us',
'testimonials');
foreach($categ
On 29/11/10 23:54, Ron Piggott wrote:
I am unable to retrieve the value of $referral_1 from:
$new_email = mysql_escape_string ( $_POST['referral_$i'] );
why?
PHP while lopp to check if any of the fields were populated:
$i=1;
while ( $i<= 5 ) {
$new_email = mysql_escape_string ( $_POS
On 15/09/10 18:00, David Harkness wrote:
And let's not forget
$v = $row->xpath("//membernumber[. = \"$MemberId\"]");
The \" inside the string turns into a double-quote and using " to delimit
the string allows for variable substitution.
Oooh, I hate using backslashes - they always seem so unt
If you needed the double-quotes in the Xpath expression when the constant is
used , then you probably need them in the variable version.
$v = $row->xpath('//membernumber[. = "'.$MemberId.'"]');
That should put the double-quotes in for you...
On 15/09/10 09:33, Sridhar Pandurangiah wrote:
---
On 12/09/10 18:33, tedd wrote:
At 5:57 PM +0100 9/12/10, Ashley Sheridan wrote:
On Sun, 2010-09-12 at 12:55 -0400, tedd wrote:
Can a business have a server connected to the Internet but limit
access to just their employees? I don't mean a password protected
scheme, but rather the server being
On 29/07/10 19:10, tedd wrote:
At 9:50 AM -0700 7/29/10, Don Wieland wrote:
I am trying to create an UPLOAD form and need to figure a way to only
allow PDF files to be selected.
The short answer is you can't -- not from php. You can create a standard
form and upload it from there, but you don'
On 27/07/10 14:16, Peter Lind wrote:
2010/7/27 Nilesh Govindarajan:
2010/7/27 Dušan Novaković:
Hello,
so when I'm sending the array to model it's like this:
$fp = fopen(INVOICE_PATH.date('Y-m-d').DS.$pdfName, "r");
$pdfContent = array(
'file
On 27/07/10 10:42, viraj wrote:
$firstName is the most readable.. for variables.
does anybody have negative thoughts on using the same naming format
for method/function and for class names?
i guess it's worth sharing! many thanks!
~viraj
I like to use $firstName, and function firstName(), b
On 15/07/10 09:14, Ashley Sheridan wrote:
ALTER TABLE is the way to go. If in doubt, look at the SQL phpMyAdmin
produces when you make the changes in there.
Thanks,
Ash
http://www.ashleysheridan.co.uk
Yeah, scripting "ALTER TABLE" commands ... :)
--
Peter Ford, Developer pho
On 15/07/10 06:03, Paul M Foster wrote:
On Wed, Jul 14, 2010 at 09:28:53PM -0700, Slith One wrote:
I'm developing an app using Zend Framwork using Git for version control.
What is the best approach for updating the schema and the database
when one of us makes an update to the db structure?
cu
On 05/07/10 14:38, Richard Quadling wrote:
On 5 July 2010 14:02, Jason Pruim wrote:
Hi everyone,
I'll admit right now that I'm still trying to wrestle with inner joins...
It is all about set theory. Imagine two circles, which overlap
(http://en.wikipedia.org/wiki/Venn_diagram#Example as an e
On 21/06/10 00:45, Rick Pasotto wrote:
Within a class function I have defined another function for use with the
usort() function. How do I reference it?
When it's not part of a class usort($arr,"cmp") works fine but when it's
within a class function I get this error:
PHP Parse error: syntax er
On 07/06/10 18:49, David Mehler wrote:
Hello,
I've got a form with two combo boxes, one for the month one for the
day. Both are required. I've got code that checks the post submission
to ensure neither is empty. My problem is that if a user does not
select anything in the combo boxes January firs
On 12/05/10 11:23, shiplu wrote:
Can you paste a sample encoded version of a php file on pastie.org?
Shiplu Mokadd.im
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jo
On 12/05/10 10:48, Pete Ford wrote:
On 12/05/10 01:06, Ashley Sheridan wrote:
On Tue, 2010-05-11 at 16:50 -0700, Brian Dunning wrote:
Hi Shiplu -
I also have a product with similar requirements. I searched a LOT and
was never able to find a free solution that I was satisfied with.
Even a lot
On 12/05/10 01:06, Ashley Sheridan wrote:
On Tue, 2010-05-11 at 16:50 -0700, Brian Dunning wrote:
Hi Shiplu -
I also have a product with similar requirements. I searched a LOT and was never
able to find a free solution that I was satisfied with. Even a lot of the
commercial solutions require
On 06/05/10 11:52, Paul Waring wrote:
Ashley Sheridan wrote:
Why don't you store them as integer values and add in the decimal point
with something like sprintf() afterwards? Store the values as pence and
then you won't have any rounding problems.
If I was designing the system from scratch, th
On 25/04/10 14:17, ioan...@btinternet.com wrote:
I can return a target page - once, but then on refresh within a few
hours the script curl_error is that it cannot connect to the host and
return is empty. The target URL is an ip address, not a named url, so
maybe it has something to do with DNS. I
On 27/04/10 16:37, tedd wrote:
Error handling is almost an art form.
More like a black art - voodoo perhaps...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 26/04/10 16:56, Michelle Konzack wrote:
Hello Peter,
Am 2010-04-26 09:28:28, hacktest Du folgendes herunter:
var_dump($isfile);
Don't make assumptions of what the value is, just check it.
Yes and grmpf!
The filename has a space at the end but it can not removed even using
var_dump(
On 31/03/10 15:30, Ashley Sheridan wrote:
On Wed, 2010-03-31 at 15:30 +0100, Pete Ford wrote:
Hi All,
I have a web project built in PHP which we want to break out part of into
a stand-alone GUI program. The architecture is fine - display nicely
separated from logic, so coding is not a problem
On 31/03/10 15:30, Ashley Sheridan wrote:
On Wed, 2010-03-31 at 15:30 +0100, Pete Ford wrote:
Hi All,
I have a web project built in PHP which we want to break out part of into a
stand-alone GUI program. The architecture is fine - display nicely separated
from logic, so coding is not a problem
Hi All,
I have a web project built in PHP which we want to break out part of into a
stand-alone GUI program. The architecture is fine - display nicely separated
from logic, so coding is not a problem.
What I can't work out is what to use for the GUI part. I looked at phpqt but I
can't (yet) ge
On 17/03/10 18:59, Tommy Pham wrote:
On Wed, Mar 17, 2010 at 11:01 AM, Rene Veerman wrote:
hmm.. seems easier to me to push a filetree of .php's with wrote:
At 8:55 PM -0400 3/16/10, Adam Richardson wrote:
That said, I'm not taking exception with those who don't use the short
tag, only with
On 24/02/10 08:20, shiplu wrote:
Lots of confusion!
So I tried this,
$ for x in cat dog rabbit rat; do echo -n "$x "; if whatis $x>
/dev/null; then echo found; else echo not found; fi ; done;
cat found
dog not found
rabbit not found
rat not found
That's easy to fix:
sudo ln -s /bin/cat /b
Richard Quadling wrote:
2010/1/22 Pete Ford :
IMHO, a constant is not the correct beastie in this case - if you want it to
be different depending on the implementation then it ain't a constant!
You should probably have protected static variables in the interface, and
use the implementat
mplements SetKillSwitch
{
public function __construct()
{
self::$isSet = FALSE;
self::$date = '2010-01-21T09:30:00+';
self::$notes = "Test";
}
}
Cheers
Pete Ford
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am on the top of the world! Borlange University wrote:
hello, i can obnot retrieve a select ject from div innerHTML.
what i want to do is that when a page is loaded, first selector,say #1,
would be shown in the first div by sending a request.then i choose one
option from #1, fire change event o
On 24/12/09 16:59, Bastien Koert wrote:
On Thu, Dec 24, 2009 at 9:12 AM, tedd wrote:
At 10:20 PM +1000 12/24/09, Angus Mann wrote:
Hi all. I need to allow users to enter dates and times, and for a while
now I've been forcing them to use javascript date/time pickers so I can be
absolutely sure
On 24/12/09 12:20, Angus Mann wrote:
Hi all. I need to allow users to enter dates and times, and for a while now
I've been forcing them to use javascript date/time pickers so I can be
absolutely sure the formatting is correct.
Some users are requesting to be able to type the entries themselves
49 matches
Mail list logo