ot;password"]);
$result = mysql_query("
SELECT customer_id
FROM Customers
WHERE customer_username = '$username'
AND customer_password = '$password'") or die (mysql_error());
$myrow = mysql_fetch_row($result);
$customer_id = $myrow[0];
$_SESSION['customer_id'] = $customer_id;
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
list
pcid
itemid
table pc
pcid
location
then these could contain
items
itemid name
1 memory module
2 floppy drive
pc
pcid location
1reception
item_list
pcid itemid
11
11
12
so reception pc contains 2 memory modules and 1 floppy
Hope that helps
--
regards,
Tom
True
V> so i need to keep the informations of the reference too
V> 2005/5/19, Tom Rogers <[EMAIL PROTECTED]>:
In that case use the reference as the key to the item
id name hs
22055 sdram256 true
22056 sdram512 true
then the item list table would be
pc id
1 22055
1 22056
--
rega
ng the array required by serialization ?
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n> thanks
I have this in an auto_prepend file or you can put it before using any
of the date() functions
putenv('TZ=Australia/Brisbane');
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
an HTML 'submit'
RL> button)?
RL> Cheers,
RL> Richard
Post your details to the main page that defines the frames and get
that page to pass the new details on to the sub pages. that way all frames
will be regenerated after the post operation.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the function now looks like this
RB> and works :
You might find this very useful :)
http://weitz.de/regex-coach/
Helps my old brain
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Wednesday, April 14, 2004, 7:59:43 PM, you wrote:
RL> Tom Rogers wrote:
>> Hi,
>>
>> Wednesday, April 14, 2004, 6:57:53 PM, you wrote:
>> RL> So is there a way of making a single form post affect two scripts in
>> RL> different HTML frames? Or
Hi,
Thursday, April 15, 2004, 8:56:05 AM, you wrote:
RB> At 15:02 14-04-2004, Tom Rogers wrote:
>>Hi,
>>
>>Thursday, April 15, 2004, 12:51:20 AM, you wrote:
>>RB> Never mind y'all ... me stupid ...
>>
>>RB> obviously the ( has meaning, and need
the wheel exist in the world today? ...not many
hacked out of stone I bet :-)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Thursday, April 15, 2004, 2:57:48 PM, you wrote:
>>How many versions of the wheel exist in the world >today? ...not many
>>hacked out of stone I bet :-)
>>
>>--
>>regards,
>>Tom
AB> what does that mean?? is everybody saying i should give up on this
; P.O. Box 1482
NM> Northampton, MA
NM> 01061-1482
NM> [EMAIL PROTECTED]
NM> (413) 587-3133
NM> (413) 210-7984 Mobile
NM> (512) 681-7043 Fax
NM> --
NM> PHP General Mailing List (http://www.php.net/)
NM> To unsubscribe, visit: http://www.php.net/unsub.php
looks like your missing the closing } to your class
proper indenting would probably help
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
es for a total of 123 bytes -
over double. So Arthur is probably correct.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bs = 60 bytes
TR> with 4 spaces/tab thats 54 spaces = 100 bytes
TR> and the default of 8 (what clown came up with that one I wonder..maybe
TR> they had very small spaces) thats 72 spaces for a total of 123 bytes -
TR> over double. So Arthur is probably correct.
TR> --
TR> regards
im sure there is a nicer way of solving my prob
FF> thx Flavio
If you treat the variable as a string it is already an array of
characters
try echo $a{0};
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t.
KB> BTW, if I print $_SESSION['CategoryID'] from mod_sub
KB> right after setting, it holds the expected value.
KB> This is really frustrating, I must be missing
KB> something basic about the way session vars can be set.
KB> Kathleen
put this at the top of each page and see if you get any undefined
variables warnings as it may be a problem of variable scope
error_reporting(E_ALL);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$tail = "FROM: ".$_POST['Email'];
else:
$tail = "FROM: ".$_POST['email'];
endif;
}
else{
$tail = &quo
This will resize JPG images:
function get_image_width($image)
{
$imgsize = getimagesize($image);
return $imgsize[0];
}
function get_image_height($image)
{
$imgsize = getimagesize($image);
return $imgsize[1];
}
function resize_image($originalimage, $dest_width, $save_path, $newfilename)
Hi,
Tuesday, April 20, 2004, 7:41:18 AM, you wrote:
LL> Hello
LL> Is there a build-in function to move files in php ?
LL> or sholud i just open file A and copy it content to file B , then del file
LL> A.
LL> Thanks for help.
rename() may do what you want
--
regards,
Tom
Hi,
Tuesday, April 20, 2004, 11:29:41 PM, you wrote:
JWH> From: "Tom Rogers" <[EMAIL PROTECTED]>
>> JWH> Does anyone know of a script that'll receive the results of a form,
>> JWH> parse the original form and substitute the user supplied data in for
JWH&g
ple form I could play with? It would be quite a
class. I assume you have access to the original form :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
DN> please explain to me what dumb mistake I've made becuase I'm
DN> tearing my hair out over something so simple!
DN> Thank you,
DN> Dickon...
You are accessing the members incorrectly
change echo "Bob's Name: ".$bob->$name."\n";
to echo "Bob's Name: ".$bob->name."\n";
PHP will try to substitute $bob and will end up with null which is not
what you want.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'/(\w)\1{4,}|(\W)\2{4,}/',$string,$match)){
echo "too many repeated characters";
print_r($match);
}
That will catch everything, except numbers, that is repeated 4 or more
times.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
($split);
$out = '';
foreach($split as $key=>$val){
$out .= $val;
if(!empty($match[1][$key])) $out .= $match[1][$key];
elseif(!empty($match[2][$key])) $out .= $match[2][$key];
}
echo $out.'';
The tricks you learn with this PHP :-)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
D
JB> status = 'active'";
JB> The single quoted variables do not get parsed
JB> --
JB> PHP General Mailing List (http://www.php.net/)
JB> To unsubscribe, visit: http://www.php.net/unsub.php
They do if they are themselves inside double quotes :)
echo "'$var'"; will get parsed ok
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ld like to see the "whole truth" as well :) including the
mysterious search word.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at i want to do is format the string on display like this: (123)456-7890
AB> but dont quite know how to start with that. what function(s) would i use for
AB> that?
Try this:
$phone = '1234567890';
$newphone = preg_replace('/(\d{3})(\d{3})(\d)/','(\1)\2-\3',$ph
1 with a number below 10 tells it to use what it captured at that
point.
\D btw captures everything that is not a digit so you can use
that to cleanup the user input with $input = preg_replace('/\D/','',$input);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
vious, but I keep hitting my head
Y> against the wall. Light would be greatly appreciated.
Y> Thanks for your help.
Y> Regards,
Y> I.-
you have to do it like this:
$table["$searchSource"]["$searchDomain"]["$searchTerm"]["total"]=
(isset($table["$searchSource"]["$searchDomain"]["$searchTerm"]["total"]))?
$table["$searchSource"]["$searchDomain"]["$searchTerm"]["total"] + $row['order_total']
: 1;
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ibe, visit: http://www.php.net/unsub.php
Try doing this at the error point
} elseif ($elapsed > 5) {
echo "TOO LONG!\n";
break 2; //kill both loops
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ant to use isset so that if there is no variable the field is pre-filled
to prompt for Your Name?
A simplified version of the code is shown below and is posting to itself.
Any idea what I'm doing wrong?
Thanks in advance,
Tom
Untitled Document
Please Enter
--
PHP Gener
F> return to waiting (for another three seconds). I've got some good help
RF> from Curt and Tom (thanks guys), but there are evidently still issues
RF> with my code. Here's simplified snippet:
you need to use break 2; to exit the while and the do - while or set
$connection = fa
int_r($allpages);
VS> echo '';
?>>
VS> Any ideas?
VS> Thanks
You need the =& in the addChild function
function addchild(&$node) {
if (!is_array($this->childs))
$this->childs = array();
$this->childs[$node->absnum] =& $node;
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nded or is there more expected? If there is more to come I would
use non blocking socket and the socket select function in the loop.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
**
Upload this to your webspace and then view your .php page and it will tell
you everything you need to know about your server's PHP install.
Regards,
Tom
-Original Message-
From: Pete [mailto:[EMAIL PROTECTED]
Sent: 11 May 2004 09:15
To: [EMAIL PROTECTED]
Subject: [PHP] What is t
Try:
http://www.1phpstreet.com/vb/scripts/ShowCode.asp?txtCodeId=318&lngWId=8
Regards,
Tom
-Original Message-
From: adwinwijaya [mailto:[EMAIL PROTECTED]
Sent: 14 May 2004 07:39
To: PHP
Subject: [PHP] tracking ip and its location
Hello PHP,
Is there any function/class to search
g a text box to submit the ascii string)
This is for simulating comms between a UNIX server and a piece of electrical
equipment (for which I'm using my laptop).
Does anyone know of similar examples.
Thanks in advance,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
Does anyone know a quick way to find the full path on a shared hosting plan
to use in an include file?
Thanks,
Tom
der is that everything dies at the conclusion of
the function. It may be better to do this via a class construct
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e = 'variable'.$i;
$$varname =& $arg_list[$i];
$vars .= "\$$varname";
}
$vars .= ');';
//that leaves you with a string you can use eval on
eval($vars);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s);
JB> http://www.php.net/manual/en/function.call-user-func-array.php
The only time eval can be a problem is if you use it on client
supplied data otherwise it is no worse than any other function.
How does call_user_func_array() cope with pass by reference ? which is
the op problem.
--
regards
ench
JF> http://indent.com.au
you may need '//s' if your comment spans lines
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
', its small (I use it in an
auto-prepend file) and pretty fast. You can view the code here
http://kwiktemplates.com/download.php and the syntax is here
http://kwiktemplates.com/ (still working on the site) Anything you
don't understand drop me a line.
--
regards,
Tom
--
PHP General M
---> index.php?id=2&a=4
DC> it writes
DC> GET:
DC> Parola = 2
DC> Parola = 4
DC> POST:
DC> I want it to write:
DC> GET:
DC> id = 2
DC> a = 4
DC> POST:
DC> how can I do it?
DC> thx for any help.
You
rying to figure
GD> it out but I don't know what else to try.
GD> TIA.
GD> --
GD> Greg Donald
GD> [EMAIL PROTECTED]
There is no way for php to what is a constant and what is text so you
have to put it in a variable to use it in a string.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ads I get a permissions error (the perms on /tmp are fine). I'm
not 100% sure I understand sessions, is my method utterly implausible? Does anyone
have any better suggestions?
Thanks,
Tom Playford
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That was my original plan. The problem is that if someone works out the commands
needed to
communicate with the php control page, they will be able to bypass the Java access
control systems.
I suppose I could use https, but does that encrypt the url and post data?
Tom
Aidan Lister wrote:
>
jon wrote:
Can you just send a command line java app commands from php?
I'm not sure what you're getting at.
Do you mean writing the Java code in the php page? I didn't know php could compile the code on the
fly, can it? Or do you mean something else?
Tom
-- jon
Tom Playford
can't drag things around.
I don't think I explained myself very well.
You can see the applet here:
http://tom.playford.net/control/control.html
It does very little at the moment.
Tom
> Tom Playford wrote:
>
> >jon wrote:
> >
> >>Can you just send
Am I? I thought that applets were allowed to connect to the same host they were loaded
from. Which is what I'm trying to do.
Nice site BTW, useful for a few other things I'm working on, thanks.
Tom
On Sat, May 22, 2004 at 07:46:21AM +0600, raditha dissanayake wrote:
> Tom P
trans_sid worked with forms in 4.1.2)
MRW>session.gc_maxlifetime 1440
MRW> Other things people have asked about:
MRW>
MRW> url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry
if your not using cookies you have to pass the sessionid in your form
as a hidden
Hi,
Wednesday, May 26, 2004, 10:21:57 PM, you wrote:
TR> if your not using cookies you have to pass the sessionid in your form
TR> as a hidden variable somewhere. Or maybe I missed it :)
TR> --
TR> regards,
TR> Tom
ok ignore me I found it
btw you can drop the ; it is not neede
on to:
But, what do I need to change to update the script?
I'm a newbie, but trying hard to learn!
Thanks in advance for any help.
Tom
/n");
print("File size: $file_size bytes/n");
if(copy($file, "$path/$filename")){
print(&
following query:
AP> DELETE FROM ref_events_reg WHERE id IN ('')
AP> Both attempts fail to delete any records even though several records
AP> are checked.
AP> Where have I gone wrong?
AP> Thanks.
AP> Albert Padley
change it to
Then you can do something li
Hi,
Thursday, May 27, 2004, 3:07:28 PM, you wrote:
AP> On May 26, 2004, at 7:55 PM, Tom Rogers wrote:
>> Hi,
>>
>> Thursday, May 27, 2004, 11:34:03 AM, you wrote:
>> AP> I've checked the archives and several other sources, but still
>> can't
>
If you use ISSET together with a hidden field when posting a form to itself
to enter a second-state, is there a way of using it again to get to a
third-state.
Basically, I'm trying to convert a 3 file script into a single file and
first I check to see if it's been submitted and then using ELSE I e
Sorry if anyone else gets this, but I'm not receiving any emails at the
moment and wanted to check my subscription.
-----
[EMAIL PROTECTED]/
http://www.wuyts.org/tom/phpbb2/
// {$_class}::sayHello();
> // $_class.'::sayHello()';
> }
> Any suggestions!
> =P e p i e D e s i g n s
> www.pepiedesigns.com
> Providing Solutions That Increase Productivity
> Web Developement. Database. Hosting. Multimedia.
You could try eval()
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
iding they have a valid session?
Thanks,
Tom
pgptPriJJtwbp.pgp
Description: PGP signature
http://www.phpclasses.org/browse/package/1672.html
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
<[cdata[ starts and ]]> ends the cdata section
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Page" option in Ms word and it will extract the
images for you and they usually saved in a sub directory as image1.jpg
image2.jpg or .whatever off the directory where you save the document.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t and it really
A> doesn't seem to be entirely PCRE compatible.
A> Thanks
This works with perl regular expressions
http://weitz.de/files/regex-coach.exe
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Sunday, June 20, 2004, 5:30:39 PM, you wrote:
USK> Tom Rogers sagde:
>>
>>
>> This works with perl regular expressions
>>
>> http://weitz.de/files/regex-coach.exe
>>
USK> Thanks! Great tool! I really needed something like that.
USK> It just se
one advise how they code large forms like that and if you know of any
software to make it easier?
I've searched Google for hours and checked loads of Database scripts on
sites like Hotscripts, but can't find anything.
Thanks,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsu
database table
also has a datepost so I can select from the week ending when I posted them.
Thanks to everyone who has responded.
Tom
-Original Message-
From: Robert Sossomon [mailto:[EMAIL PROTECTED]
Sent: 24 June 2004 15:30
To: 'Tom Chubb'; [EMAIL PROTECTED]
Subject: RE: [PHP] Po
How can I query a MySQL table to get the latest results from a date field?
Basically, I am inserting several records at a time at the end of each week.
I want to have a page that displays the results for the last week only.
The date format in the field is -MM-DD
Jeffrey,
Thanks for this,
I've just realised that it's always the same no of inserts, so perhaps I
should just order by date then my previous sort field and then limit the
result to 20?
(It's all 20 results that I need displayed)
Thanks,
Tom
-Original Message-
From: [
I ave a strange problem with my error reporting!
I have set php.ini to: error_reporting = E_ALL but I don't see any errors.
(After I was happy things were working on my Apache Test Server, I uploaded
to my web host and discovered errors.)
Thanks,
Tom
--
PHP General Mailing List
I've read the manual for the mail function and extensively searched google,
but I can't work out how I can email an html page (actually a php page).
I want to query a DB and the email the displayed table to the user.
Any help most appreciated.
Tom
--
PHP General Mailing
have one row for all 81 variables ($name, 20 x Position, 20 x
Artists, 20 x Titles, 20 x Labels.)
I know that the latter will be easier to query.
Also, without maintenance, the size of the table for the current method will
get extremely large. Will that affect server performance?
I am still a newbie, so plain explanations would be most appreciated.
Thanks very much in advance.
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ar);
AN> echo $var; //echoes 0 instead of 1
AN> Is their anyway to do this:
AN> call_user_func("fun", &$var);
AN> Thanks for any help with this!
AN> Andrew Nagy
With call_user_function() you need to do this:
call_user_func("fun", &$var);
--
regards,
To
Hi,
Saturday, July 3, 2004, 3:00:22 AM, you wrote:
AN> Tom Rogers wrote:
>>With call_user_function() you need to do this:
>>
>>call_user_func("fun", &$var);
>>
>>
AN> Tom, this won't work due to the Call-Time Pass-By-Reference deprecatio
can not be changed.
MG> Thanks.
MG> Michael.
store it in the session like:
$_SESSION[session_id()]['dbkey'] = $dbkey;
then get it back with
$dbkey = (isset($_SESSION[session_id()]['dbkey']))? $_SESSION[session_id()]['dbkey'] :
0;
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
AG> Does anyone know a good PHP-based (free if possible) web mail other than
IAG> UebiMiau that they would recommend?
IAG> Best wishes,
IAG> Ian
I have used this in the past with good results
http://thegraveyard.org/vamp/
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot;After:$var";
?>
What version of PHP are you using?
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;I am not young enough to know everything." - Oscar Wilde
php-x.x.x/main/config_w32.h is where they are set, but I don't think
--enable-memory-limit will work in windows (at least I couldn't get
it to report anything meaningfull :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Thursday, July 8, 2004, 7:38:49 PM, you wrote:
RD> Hello Tom,
RD> I have to admit I did look in there, but couldn't see anything
RD> relating to it (or how to specify it). But if it doesn't work on
RD> Windows anyway then I guess it's not much use! :)
RD> Best
Hi,
Monday, July 12, 2004, 10:28:59 AM, you wrote:
MTP> Here is some additional info:
MTP> My other PHP scripts execute just fine, including the php script init.php
MTP> which uses header(...) to dispatch to the member_login.htm page. Recall that
MTP> the problem arises when validate_member_login
://www.php.net/)
HDD> To unsubscribe, visit: http://www.php.net/unsub.php
the text has to go between the like
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Buffer).") Serial number $serialNo\n";
?>
(The stock win32api dll will probably crash with that many variables so
let me know if you want a working version.)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. Once they make changes, they would like to go back to the search
D> results, instead of having to run the same search again and again.
Have form 3 open in a new window and they just close it when finished
leaving the original on form 2.
--
regards,
Tom
--
PHP General Mailing List (http://ww
timesheets
instead of different files every week.
What I'd like to know is which function I can use on PHP4?
Is it PDF_begin_page_ext?
Any help appreciated.
Thanks,
Tom
--
Tom Chubb
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
Unfortunately I can't use shell or install anything on my shared box.
Any other suggestions?
On 24/09/2007, George Pitcher <[EMAIL PROTECTED]> wrote:
> Tom,
>
> I use a Java app called itext to merge PDFs. In my case, it's to add a PDF
> cover created in PHP to a file
gmail as I am unable
to access it at work as the Gmail site is blocked so please let me
know if you find a successful way of connecting!
Thanks,
Tom
On 27/09/2007, Fábio Generoso <[EMAIL PROTECTED]> wrote:
> *Hi Cris,*
>
> *I have tried to use:*
>
> *$mbox =
> imap_open(
"If needle is not found, strpos() will return boolean FALSE."
Checking strpos($foo,$bar) !== False is exactly right; since 0 == False,
you want to use !==, not !=.
-- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org
"What's so funny abo
hat's why it doesn't work!", would
be greatly appreciated. Thanks!
-- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org
"What's so funny about peace, love, and understanding?" - Nick Lowe
"Power to the Peacefu
DB - especially DB_common::quoteSmart()
or the more modern
http://pear.php.net/package/MDB2
I'm still partial to DB but suppose I will eventually have to move
to MDB2.
-- Tom Swiss / tms(at)infamous.net / www.infamous.net / www.unreasonable.org
"What's so funny about
uot;x equals y"
and "x is identical to y", and the implicit type conversions that occur.
Novices, study
http://www.php.net/manual/en/language.operators.comparison.php
http://www.php.net/manual/en/language.types.type-juggling.php
until you grok why
gives
0 == False
1 == True
-1 == True
hing which CMS to use, don't forget to check
out Drupal at http://drupal.org. You can learn a lot about PHP by diving
into a well written project. The Drupal code is very clean and organized.
Tom Friedhof
On 10/6/07, Jeff Benetti <[EMAIL PROTECTED]> wrote:
>
> SERVER_SOFTWARE
You will probably get better luck in getting an answer to this question by
mailing the Moodle mailing list or forums.
On 10/7/07, RalfGesellensetter <[EMAIL PROTECTED]> wrote:
>
> Dear list,
>
> is there any approach to patch any PHP files within moodle in order to
> gain further columns for the u
I had to download the video and open it up in VLC to play. I'm on Mac OS X,
not sure what windows program will open it.
Tom Friedhof
On 10/8/07, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> Mark wrote:
> > Hey,
> >
> > I've made a nice video where you see
Me too.
Guess a lot of us can learn something here from another's misfortune.
Thanks Robert and good luck
On 09/11/2007, Edward Kay <[EMAIL PROTECTED]> wrote:
>
>
> >
> > I'd be interested in reading this thread. OK with me to keep it
> > on the list.
> >
>
> Ditto.
>
> --
> PHP General Mailing L
Hi all,
I have a working gallery script which reads a directory then shows all
thumbnails, each linking to the full size image.
I'm trying to change it so that the page shows an image (fullsize)
then links to the previous/next images in the sequence & then all the
thumbnails below (the bit that's w
On 27/11/2007, Colin Guthrie <[EMAIL PROTECTED]> wrote:
> Tom Chubb wrote:
> > Hi all,
> > I have a working gallery script which reads a directory then shows all
> > thumbnails, each linking to the full size image.
> > I'm trying to change it so that the p
al pictures, you could add the prev and
> next files to the link:
>
>
> $pictureLink = " href="picture.php?picture=pic2.jpeg&prev=pic1.jpeg&next=pid3.jpeg">Picture
> 2
>
> Make sense?
>
> -Andrew
>
>
> PS - You could also google "PHP
Please can someone help me understand the following:
I have 4 images with a .jpg extension in a folder.
The following reads all four:
$files = glob("thumbs/{*.gif,*.jpg,}",GLOB_BRACE);
All good, however, I noticed that if the extension is in capital
letters, eg .JPG it doesn't work. Apparently thi
On 29/11/2007, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Thu, 2007-11-29 at 17:19 +, Tom Chubb wrote:
> > Please can someone help me understand the following:
> > I have 4 images with a .jpg extension in a folder.
> > The following reads all four:
> > $
conds.
RF> Anyway, although the number of child processes isn't concurrent,
RF> would there be a problem with the number of historical child
RF> processes in view of ulimits or kern.maxfilesperproc?
RF> Anyway suggestions, tips, or links are much appreciated. Thanks.
RF> ...Rene
Put a usleep(1000) in the listen while() loop and give the cpu a
break.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1401 - 1500 of 1851 matches
Mail list logo