Oops, clearly too early in the morning to be looking at code. Sorry.
-Stuart
2009/7/16 Stuart :
> 2009/7/15 Govinda :
>> Sorry this is isn't good 'ninja' material.. but I gotta start where I am.
>>
>> this:
>>
>> echo 'is set (EditExistingClient) ='. isset($EditExistingClient)."\n";
>> is return
2009/7/15 Govinda :
> Sorry this is isn't good 'ninja' material.. but I gotta start where I am.
>
> this:
>
> echo 'is set (EditExistingClient) ='. isset($EditExistingClient)."\n";
> is returning:
> is set (EditExistingClient) =1
>
> but this, later down the page:
> elseif ((isset($EditExistingCli
Better late then never! :)
I played around with your code tonight and got this working on a
test server:
$db_billing = mysql_connect($DBHOST, $DBUSER, $DBPASS) or die("Could
not connect: " .mysql_error());
$db_selected = mysql_select_db($DB, $db_billing);
if(!$db_selected) {
On Jul 13, 2009, at 10:03 AM, Govinda wrote:
I have this code:
$db_billing=mysqli_connect(localhost,metheuser,mypass,billing);
if (mysqli_connect_error()) { die("Can't connect: " .
mysqli_connect_error()); }
mysqli
//$dbname = 'billing';
$sql = "SHOW TABLES";
I realize this is after the fact, but...
The above does not indicate WHAT it is set too. Just that it is set.
it could be set to /null/, FALSE, or 0 and they would all return
false,
and fail, in your if condition later on.
I understand. I appreciate your taking the time to explain things.
Govinda wrote:
> Sorry this is isn't good 'ninja' material.. but I gotta start where I am.
>
> this:
>
> echo 'is set (EditExistingClient) ='. isset($EditExistingClient)." />\n";
I realize this is after the fact, but...
The above does not indicate WHAT it is set too. Just that it is set.
it
nevermind.. sorry for the noise.
It was my if clause that was firing too much, and never even reaching
that elseif.
-G
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry this is isn't good 'ninja' material.. but I gotta start where I
am.
this:
echo 'is set (EditExistingClient) ='. isset($EditExistingClient).">\n";
is returning:
is set (EditExistingClient) =1
but this, later down the page:
elseif ((isset($EditExistingClient)) || ($CreateClient)) //we j
At 12:21 PM +0200 7/14/09, Anton Heuschen wrote:
In my index.php page I then use $dbconnect again but do I simply use
$dbconnect again ... or must I say global $dbconnect and then use it in the
rest of the DB calls? or use GLOBALS ..
Anton:
My way -- every time I open a database, I do so
At 3:40 PM -0400 7/15/09, Daniel Brown wrote:
When I got to his house, he ordered the pizza and asked if I was
ready to lose. I told him quite the contrary: before the game starts,
the score is a tie at zero-zero.
Reminds me of many years ago when I was in New Orleans and a street
kid cam
On 7/15/09 12:21 AM, "Martin Scotta" wrote:
> Hi
>
> Do you noted that all the discussion here are about problems, bugs, or
> just "urgent pleaaase help me"
> I have an idea. It is not really THE idea... but it is.
> What happen if tell this idea to the community? I don't know, so,
> let's take
On Wed, Jul 15, 2009 at 12:40 PM, Daniel Brown wrote:
> On Wed, Jul 15, 2009 at 15:30, Ashley Sheridan
> wrote:
> > Done! In order to never lose, don't play ;)
>
> That's what I had expected. ;-P
>
>About eleven years ago, a co-worker and I each wanted the same day
> off. I had seniorit
On Wed, Jul 15, 2009 at 15:30, Ashley Sheridan wrote:
> Done! In order to never lose, don't play ;)
That's what I had expected. ;-P
About eleven years ago, a co-worker and I each wanted the same day
off. I had seniority, but decided to play fair with him and give him
a shot. I told him
On Wed, 2009-07-15 at 12:28 -0400, tedd wrote:
> At 4:40 PM +0100 7/15/09, Ashley Sheridan wrote:
> >On Wednesday 15 July 2009 16:29:49 tedd wrote:
> > > Here's an AI (rule based) php game:
> >>
> >> http://sperling.com/quarters/
> >>
> >> Get your AI to beat mine. :-)
> >>
> >> Cheers,
> >>
>
I always have doubts about comparison between boolean and integers.
Lets PHP shows hows is that he does.
The results where:
false < $int === true / $int !== 0
false <= $int === true
false > $int === false
false >= $int === false / $int !== 0
false == $int === false / $int !== 0
false === $i
That's the idea. You will have fun programming the AI and looking how
it "match" between others.
I'd like to see your game, do you still have it?
--
Martin Scotta
I would love to see someone write an AI to beat my best skill level
that I could get into the AI. I can beat expert level now
--snip
How do I write the for each loop in here:
//alphabetical pagination links
if (!isset($_GET['letter'])) {$letter = "A";} else
{$letter = $_GET['letter'];}
On Wed, Jul 15, 2009 at 12:29 PM, tedd wrote:
> At 1:21 AM -0300 7/15/09, Martin Scotta wrote:
>>
>> Hi
>>
>> Do you noted that all the discussion here are about problems, bugs, or
>> just "urgent pleaaase help me"
>> I have an idea. It is not really THE idea... but it is.
>> What happen if tell th
At 4:40 PM +0100 7/15/09, Ashley Sheridan wrote:
On Wednesday 15 July 2009 16:29:49 tedd wrote:
> Here's an AI (rule based) php game:
http://sperling.com/quarters/
Get your AI to beat mine. :-)
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstone
On Wed, Jul 15, 2009 at 10:38 AM, Govinda wrote:
>> PHP is a great language. You can do a lot of things with him, even
>> have fun with it.
>> My idea is to make a simple game where your have to write some AI to
>> beat the other players AI
>>
>> The idea, as simple as it looks, is really difficult
On Wed, Jul 15, 2009 at 4:21 AM, Lenin wrote:
> On Wed, Jul 15, 2009 at 3:24 AM, VamVan wrote:
>
> > contact/me - Contact US
> >
> > perfect match would be easy because I can exactly look for what I want.
> >
> > It becomes tricky when I introduce wild cards like contact/* for example.
> It
> > c
On Wed, Jul 15, 2009 at 4:55 AM, Carlos Medina wrote:
> Martin Scotta schrieb:
>>
>> Hi
>>
>> Do you noted that all the discussion here are about problems, bugs, or
>> just "urgent pleaaase help me"
>> I have an idea. It is not really THE idea... but it is.
>> What happen if tell this idea to the c
SET @letter := 'B';
SELECT name FROM table WHERE SUBSTRING(name, 1) == @letter;
SELECT name FROM table WHERE name like concat(@letter, '%');
I don't know a faster way to do it
On Wed, Jul 15, 2009 at 12:57 PM, Ashley
Sheridan wrote:
> On Wednesday 15 July 2009 16:46:53 Andrew Ballard wrote:
>> On
So, I've got a little piece of code designed to play with catching the
exception that's thrown when an object doesn't have a __toString
method.
This does not run as expected. I'd think that when the implicit string
conversion in the try block hits, the exception would be thrown,
caught by the ca
On Wednesday 15 July 2009 16:46:53 Andrew Ballard wrote:
> On Wed, Jul 15, 2009 at 11:30 AM, Ashley
>
> Sheridan wrote:
> > On Wednesday 15 July 2009 16:21:22 tedd wrote:
> >> At 12:38 PM -0700 7/14/09, Miller, Terion wrote:
> >> >I am trying to make a page that displays a-z like a b c d e etc as
>
I have a page where a user authenticates, fills in some information in
an HTML form, and then when clicking on the submit button, will need to
execute a php schell script as that user to write some data to their
/home/username directory. Since apache web server runs as the user
nobody, how wil
At 8:29 AM -0700 7/15/09, Miller, Terion wrote:
Hi all thanks for all the suggestions, I really had no idea this was
going to be so difficult..
I think you are making it more difficult than it has to be.
Please review what I said and try it out.
Cheers,
tedd
--
---
http://sperling.c
On Wed, Jul 15, 2009 at 11:30 AM, Ashley
Sheridan wrote:
> On Wednesday 15 July 2009 16:21:22 tedd wrote:
>> At 12:38 PM -0700 7/14/09, Miller, Terion wrote:
>> >I am trying to make a page that displays a-z like a b c d e etc as links
>> >then when you click open one it reloads itself and shows onl
At 4:30 PM +0100 7/15/09, Ashley Sheridan wrote:
On Wednesday 15 July 2009 16:21:22 tedd wrote:
At 12:38 PM -0700 7/14/09, Miller, Terion wrote:
>I am trying to make a page that displays a-z like a b c d e etc as links
>then when you click open one it reloads itself and shows only the query
On Wednesday 15 July 2009 16:29:49 tedd wrote:
> At 1:21 AM -0300 7/15/09, Martin Scotta wrote:
> >Hi
> >
> >Do you noted that all the discussion here are about problems, bugs, or
> >just "urgent pleaaase help me"
> >I have an idea. It is not really THE idea... but it is.
> >What happen if tell thi
At 1:21 AM -0300 7/15/09, Martin Scotta wrote:
Hi
Do you noted that all the discussion here are about problems, bugs, or
just "urgent pleaaase help me"
I have an idea. It is not really THE idea... but it is.
What happen if tell this idea to the community? I don't know, so,
let's take a look.
P
On 7/15/09 10:30 AM, "Ashley Sheridan" wrote:
On Wednesday 15 July 2009 16:21:22 tedd wrote:
> At 12:38 PM -0700 7/14/09, Miller, Terion wrote:
> >I am trying to make a page that displays a-z like a b c d e etc as links
> >then when you click open one it reloads itself and shows only the query
On Wednesday 15 July 2009 16:21:22 tedd wrote:
> At 12:38 PM -0700 7/14/09, Miller, Terion wrote:
> >I am trying to make a page that displays a-z like a b c d e etc as links
> >then when you click open one it reloads itself and shows only the query
> >results that go with that letter...i'm not gett
At 12:38 PM -0700 7/14/09, Miller, Terion wrote:
I am trying to make a page that displays a-z like a b c d e etc as links
then when you click open one it reloads itself and shows only the query
results that go with that letter...i'm not getting itI get a page that
says ARRAY over and over...
This note shows up in the documentation for set_error_handler():
The following error types cannot be handled with a user defined
function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING,
E_COMPILE_ERROR, E_COMPILE_WARNING, and most of E_STRICT raised in the
file where set_error_handler() is called
PHP is a great language. You can do a lot of things with him, even
have fun with it.
My idea is to make a simple game where your have to write some AI to
beat the other players AI
The idea, as simple as it looks, is really difficult to implement
specially about security
so, do you like me idea?
Patrick wrote:
> Hi Everyone
>
> Could anyone give me some advice on the best way to do IP to
> geo-location with php using open source code?
>
Use DNS and http://countries.nerd.dk.
/Per
--
Per Jessen, Zürich (24.2°C)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
Hi, thanks for your reply.
The thing is, I need to set it in runtime (ini_set) since I want to append
the URI that generated the error, so I'll need to use some $_SERVER
variables.
Regards
JaviRuiz.
On Wed, Jul 15, 2009 at 2:25 PM, Ashley Sheridan
wrote:
> On Wednesday 15 July 2009 12:44:21
Patrick wrote:
>> Hi Everyone
>>
>> Could anyone give me some advice on the best way to do IP to
>> geo-location with php using open source code?
>>
>> Thanks in advance-Patrick
That is not an easy problem.
You can go to ARIN, APNIC, etc and get /8 and smaller assignments.
But, if the new assign
On Wed, Jul 15, 2009 at 3:28 AM, Ashley
Sheridan wrote:
> On Wednesday 15 July 2009 06:35:04 Jim Lucas wrote:
>> Andrew Ballard wrote:
>> > On Tue, Jul 14, 2009 at 3:38 PM, Miller,
>> >
>> > Terion wrote:
>> >> I am trying to make a page that displays a-z like a b c d e etc as links
>> >> then when
On Wed, Jul 15, 2009 at 08:14, Patrick wrote:
>
> Could anyone give me some advice on the best way to do IP to
> geo-location with php using open source code?
Advice: RTFM. ;-P
http://php.net/geoip
--
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www
On Wednesday 15 July 2009 12:44:21 Javier Ruiz wrote:
> Hi!
>
> I'm trying to append some extra info to my php errors. It works well when
> I'm displaying errors on screen, but it doesn't work to log the extra info
> into an error file (log_errors and error_log). I mean, if I use this:
>
> ini_se
Hi Everyone
Could anyone give me some advice on the best way to do IP to
geo-location with php using open source code?
Thanks in advance-Patrick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Michael A. Peters schrieb:
Carlos Medina wrote:
Martin Scotta schrieb:
Hi
Do you noted that all the discussion here are about problems, bugs, or
just "urgent pleaaase help me"
I have an idea. It is not really THE idea... but it is.
What happen if tell this idea to the community? I don't know,
Hi!
I'm trying to append some extra info to my php errors. It works well when
I'm displaying errors on screen, but it doesn't work to log the extra info
into an error file (log_errors and error_log). I mean, if I use this:
On Wed, Jul 15, 2009 at 3:24 AM, VamVan wrote:
> contact/me - Contact US
>
> perfect match would be easy because I can exactly look for what I want.
>
> It becomes tricky when I introduce wild cards like contact/* for example. It
> could also be contact/me/*
>
> How would I match patterns for this
Martin Scotta wrote:
> Why are you ussing GD?
> All you need is output the image to the browser?
>
> try this... I didn't test/run this code, but it may work...
>
> public function showPicture( $id ) {
> header('Content-type:' . mime_content_type( $this->updir . $id .
> '.png' ) );
>
Ash, Martin,
Seems you are both wandering around the obvious problem...
I suspect that $tipo (in the next line) is *supposed* to be $type - sounds like
a partial Italian translation to me...
So given that $type="imagecreatefrompng" (for example, if the mime check returns
'png' - not very reliabl
Carlos Medina wrote:
Martin Scotta schrieb:
Hi
Do you noted that all the discussion here are about problems, bugs, or
just "urgent pleaaase help me"
I have an idea. It is not really THE idea... but it is.
What happen if tell this idea to the community? I don't know, so,
let's take a look.
PHP
Martin Scotta schrieb:
Hi
Do you noted that all the discussion here are about problems, bugs, or
just "urgent pleaaase help me"
I have an idea. It is not really THE idea... but it is.
What happen if tell this idea to the community? I don't know, so,
let's take a look.
PHP is a great language.
On Wednesday 15 July 2009 08:38:28 Tom Chubb wrote:
> 2009/7/15 Areba Collins
>
> > Hello guys, i have a quick one:
> >
> > Im working on an app that reads email and converts it into a post on a
> > forum, everything works fine except the threaded comments at the
> > bottom. I would like to delete
The Doctor wrote:
> ALl right,
>
> I just install MySQL 5.1.36 on a Mac OS X Server but the PHP
> is looking at the Mysql 5.0.67 ?
>
> How do I tell the php.ini to look at the 5.1 instead of the 5.0?
>
You don't do that from the php.ini file. Either recompile PHP against
the new MySQL source. I
2009/7/15 Areba Collins
> Hello guys, i have a quick one:
>
> Im working on an app that reads email and converts it into a post on a
> forum, everything works fine except the threaded comments at the
> bottom. I would like to delete everything that is from a previous
> email (which usually begins
On Wednesday 15 July 2009 06:35:04 Jim Lucas wrote:
> Andrew Ballard wrote:
> > On Tue, Jul 14, 2009 at 3:38 PM, Miller,
> >
> > Terion wrote:
> >> I am trying to make a page that displays a-z like a b c d e etc as links
> >> then when you click open one it reloads itself and shows only the query
>
54 matches
Mail list logo