that
my site uses. I will try an get that data together by the first of next
week.
it will show microsecond time lines of include(), requires(), print()
echo, ?=?, and other related functions.
Lets me know what you would like to see.
Jim Lucas
- Original Message -
From: Jack Dempsey
I would do a mysql_num_row(); on your results to see if it returning
anything at all.
Jim
- Original Message -
From: Jay Fitzgerald [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 12:08 PM
Subject: [PHP-DB] while...if
Try putting a closing ? php tag just before the final HTML.
Jim
- Original Message -
From: J.F.Kishor [EMAIL PROTECTED]
To: PHP Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 5:26 AM
Subject: [PHP] Error while calling a function
hi all,
I have got a problem, when I
php will return you four $vars to work with.
check this out.
http://www.php.net/manual/en/features.file-upload.php
then work with the tmp file and get done with it what needs to be done
before the script closes cause php will delete the file when the script is
done.
jim
- Original Message
make sure you copy all the correct dll's into the c:\windows\system or
system32 directory. the dll's have to be in a location that is included in
the window PATH in the autoexec.bat
Jim
- Original Message -
From: Alex Shi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December
actually Martin, that is what Martin was doing.
href=javascript:function_name() calls to a js function.
my suggestion would be to write it this way.
a href=#no_hash onClick=YourFunction(xx)text/a
that way, if the client clicks the link/button before the page is done
downloading the page. it
hope you don't plan to use that example table in netscape 4.x
- Original Message -
From: Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 4:10 PM
Subject: Re: [PHP] Working with designers...
On Tue, 18 Dec 2001 16:00:09 -0800, Fred
: [PHP] JavaScript php question - mainly JS though so slightly
OT but hep needed!!! :o)
On Tue, 18 Dec 2001 15:58:10 -0800, Jim Lucas wrote:
actually Martin, that is what Martin was doing.
href=javascript:function_name() calls to a js function.
my suggestion would be to write it this way.
a href
.
Use Netscape 4.
Now there's a condtradiction you don't hear every day.
Mike
Jim Lucas wrote:
hope you don't plan to use that example table in netscape 4.x
- Original Message -
From: Mark [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December
your scripts have to have to be readable by your apache user/group if it
can't read them then it can't run them. now as for being allowed to only
view files of yours, you would want to place the apache user in your group.
this will give it access to read your files, but so will others running
in your SearchOrder() function change the for() to a foreach()
Jim
- Original Message -
From: Carlos Fernando Scheidecker Antunes [EMAIL PROTECTED]
To: PHP-GENERAL [EMAIL PROTECTED]
Sent: Wednesday, December 19, 2001 10:15 AM
Subject: [PHP] Help on dealing with arrays of HTTP_POST vars
as long as the domain of the cookie is set to yoursite.com it will be
readable from whateveryouwant.yoursite.com
but if the domain is set to www.yoursite.com you won't be able to read it
from yoursite.com
Jim
- Original Message -
From: Mehmet Kamil ERISEN [EMAIL PROTECTED]
To: [EMAIL
it is a thingy called magic quotes. setup in the php.ini file. turn it off
and they will go away.
or, if you can't add a stripslashes() to every variable that will passed
this way.
Jim
- Original Message -
From: Evansville Scene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
? (this is what it sounds like you are asking, to me anyways)
Answer these two questions and it will help me alot
Jim Lucas
- Original Message -
From: Christoph Starkmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 04, 2002 8:34 AM
Subject: [PHP] Secure File Upload
Hi
not sure why you have such a complex reg there, but will this work for you.
preg_replace(/(http:\/\/)?([^\/ ]*)(.*);/, http://\\2\\3;, $str);
\\1 = http:// ; if there
\\2 = domain
\\3 = request_uri
Jim Lucas
- Original Message -
From: J. Younker [EMAIL PROTECTED]
To: [EMAIL
the date() function takes two arguments.
$date_time_format = m-d-Y;
echo date($date_time_format, $unix_time_string);
Jim Lucas
- Original Message -
From: _michael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 05, 2002 11:15 AM
Subject: RE: [PHP] what is the format
of you
mail that you are sending, a) the content type, b) bit number 8bit, 7 bit,
etc... that solved the problem for me.
Jim Lucas
- Original Message -
From: César L. Aracena [EMAIL PROTECTED]
To: PHP General List [EMAIL PROTECTED]
Sent: Wednesday, June 05, 2002 9:29 AM
Subject: [PHP] mail
. it should
give you some insight on what is going on with the error messages included
in the return mail.
Jim Lucas
- Original Message -
From: César L. Aracena [EMAIL PROTECTED]
To: PHP General List [EMAIL PROTECTED]
Sent: Wednesday, June 05, 2002 8:42 PM
Subject: RE: [PHP] mail() problem
Ok. I've
$file = preg_replace('/^([a-z0-9\-\_]*).([a-z]{3,4})$/i', $new_file .
.$2, $_FILES['upload']['name']);
Maybe this?
Jim Lucas
- Original Message -
From: Gerard Samuel [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 3:11 PM
Subject: [PHP] regex
Im expecting
is your isp using a unix machine or windows machine?
if they are using a unix box then your backslash needs to be a forward slash
/, and if they are using a windows machine, your backslash needs to be
escaped. -- \\ other wise you are escaping the b in blah...
Jim Lucas
- Original
what does $GLOBALS['DOCUMENT_ROOT'] return?
Jim Lucas
- Original Message -
From: Lazor, Ed [EMAIL PROTECTED]
To: 'Shane Wright' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 4:35 PM
Subject: RE: [PHP] get pwd on windows
Will getcwd() work for you?
Also, try
nope, theres nothing in apache that needs to be setup for js to be used.
does your js file have any php in it?
when you say that you couldn't get it to work, do you mean that the include
doesn't work or that the js doesn't work on the page that you are including
it to?
Jim Lucas
- Original
seems to work fine for me.
what are your results when you do this? mine are 0.4 and this is what is
should be. if it were .349 it would round down. isn't this how it should
work? What were your results?
Jim Lucas
- Original Message -
From: George Whiffen [EMAIL PROTECTED]
To: [EMAIL
check out the reply he sent to my last message. it had the code as an
attachment.
Jim Lucas
- Original Message -
From: David Freeman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 2:25 PM
Subject: RE: [PHP] php JavaScript
I've tried to include a simple
here is a quicky that I wrote up to do just that
?php
$ext = get_loaded_extensions();
foreach($ext AS $module_name)
$functions[$module_name] = get_extension_funcs($module_name);
print_r($functions); // This is the returned array from above
?
Jim Lucas
- Original Message -
From
after entering the second script and is should
work. if it doesn't, if you have php 4.1.0 or newer use $_SESSION['course']
if older version you are working with, use $HTTP_SESSION_VARS['course'] .
Hope this helps.
Jim Lucas
- Original Message -
From: Anthony Rodriguez [EMAIL PROTECTED
pass the user id to the page as a url variable. maybe set a unique cookie
name for that value that won't get destroyed when the person logs out.
Jim Lucas
- Original Message -
From: Michael Champagne [EMAIL PROTECTED]
To: PHP General Mailing List [EMAIL PROTECTED]
Sent: Monday, July 08
what is it you are testing for?
a page that has been submitted. do you mean from an html form or some other
method?
Jim Lucas
- Original Message -
From: Preston Wade [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 09, 2002 3:20 PM
Subject: [PHP] isset
Hello All,
I am
show the contents of 'try_param.php' please.
Jim Lucas
- Original Message -
From: Maciej Przybycien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 15, 2002 10:38 AM
Subject: [PHP] tag img and php
Hi,
I included php file as html img:
img src=/smtMonitoring
if you are running apache you could turn that option on inside of a specific
VirtualHost.../VirtualHost block.
Jim Lucas
- Original Message -
From: Jeff Bearer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 20, 2002 12:44 PM
Subject: [PHP] display errors for developers only
when you loop through a mysql result set you move the pointer up one place.
you need to use the mysql_data_seek($results, 0); to reset the pointer
Jim Lucas
- Original Message -
From: Web [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Tuesday, May 21, 2002 2:47 AM
Subject: [PHP] array
you can use serialize() and unserialize() and make sure that you urlencode()
and urldecode() the serialized string before attaching it to your URL. if
you don't, you might find that some chars will not be right on the other end
of the line.
Jim Lucas
- Original Message -
From: John
Are you starting the session first?
?
session_start();
session_register('variable');
?
Jim Lucas
- Original Message -
From: Pushkar Pradhan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 22, 2002 10:19 AM
Subject: [PHP] unable to register session variables
I am
not that I am aware of.
Jim Lucas
- Original Message -
From: Pushkar Pradhan [EMAIL PROTECTED]
To: Jim lucas [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, May 22, 2002 10:43 AM
Subject: Re: [PHP] unable to register session variables
Aren't there two method to register
depending on what version of php you are running, you can use
$GLOBALS['HTTP_REFERER'] or on newer versions you can use
$_SERVER['HTTP_REFERER']
Jim Lucas
- Original Message -
From: Kris Vose [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 31, 2002 9:19 AM
Subject: [PHP
use flash to open a tunnel to the server and run a script, therefor it
never has to leave the current page. ::)
Jim Lucas
- Original Message -
From: Michael Sweeney [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Dave Shacket [EMAIL PROTECTED]
Sent: Friday, May 31, 2002 10:36 AM
Subject
the bad thing about the BTW seciton is, is that it is not true inside of a
function, that is the reason I refered to it as $GLOBALS['HTTP_REFERER']
Jim lucas
- Original Message -
From: Philip Olson [EMAIL PROTECTED]
To: Jim lucas [EMAIL PROTECTED]
Cc: Kris Vose [EMAIL PROTECTED]; [EMAIL
but that would take you off the current page wouldn't it? or would you
return false?
Jim Lucas
- Original Message -
From: Leotta, Natalie (NCI/IMS) [EMAIL PROTECTED]
To: 'Jim lucas' [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Cc: Dave Shacket [EMAIL PROTECTED]
Sent: Friday
page no-matter what.
do the validating and then if the email address isn't there, redirect with
the php header() function to the custom page that you are talking about.
Jim lucas
- Original Message -
From: Don [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Friday, May 31, 2002 1:46 PM
string concat
something like this require(contant.$variable.string);
Jim Lucas
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 03, 2002 1:26 AM
Subject: [PHP] echoing two varibles(newbie)
How can I echo(or include) two variables
of
shitting on them and telling them to f*** off?
Just an observation
Jim Lucas
- Original Message -
From: Julie Meloni [EMAIL PROTECTED]
To: r [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, June 01, 2002 8:06 AM
Subject: Re[2]: [PHP] A small question - Mysql_insert_id
r
This is not a bug. This is just one of many differances between the big
browser war. With Netscape (not sure which versions), the attachment thing
I found is required. But with IE it kills the browser.
?
define('MSIE', (preg_match(/msie/i, $_SERVER['HTTP_USER_AGENT])?1:0));
Try this:
BEGIN:PHP-CODE
$result = mysql_query (SELECT DISTINCT date FROM linktracker WHERE name
LIKE '$PHP_AUTH_USER' GROUP BY date ORDER BY date);
if (mysql_num_rows($result))
{
for($i=0;$icount($row);$i++)
{
$date = array(
begin = array($i = $row[date]),
one problem on the second script you are trying to use variables that are in
an array.
if this is where you are talking about
you need to specify the array[key]
while ($myrow=DB_fetch_array($result)){
$difference = ($budget - $actual);
$difference = ($myrow[budget] - $myrow[actual]);
try this out
$words = explode( , $keywordText);
$compare = array('on', 'the', 'in', 'at', 'is', 'it');
foreach ($words AS $value)
{
if (in_array($value, $compare))
{
$ignored[] = $value;
} else {
$included[] = $value;
}
}
Jim Lucas
- Original Message
I notice that you are concatinating then each time. try setting them to =
before using them
$companyID_string = ;
$companyName_string = ;
then:
while()
{
$companyID_string .= , . $query_data[0];
$companyName_string .= , . $query_data[1];
}
Jim
ps. try
[EMAIL PROTECTED]
To: Jim Lucas [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 1:17 PM
Subject: Re: [PHP] while() looping over query results twice?
OK, so I defined the variables before using them and that solved the
problem.
(Thanks!)
I'm still curious as to why
are you trying to have one column not be a dup or a combination of columns?
jim
- Original Message -
From: Jeff Gannaway [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 2:31 PM
Subject: [PHP] Setting A MySQL Column to NO DUPLICATES
Does anyone know how to set
function foo($arg1, $arg2=) // or you can replace the with array()
{
blah
}
Jim
- Original Message -
From: Kurt Lieber [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 3:57 PM
Subject: [PHP] account for missing/optional arguments in functions?
Is it
the bad thing about using the #160, mac user won't be able to view this.
mac uses a different ASCII set 160 isn't a space :)
Jim
- Original Message -
From: Steve Werby [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 4:06 PM
Subject: Re: [PHP]
try this
?
system(php.exe filename, $output);
echo $output;
?
make sure you put the correct paths to the .exe and file otherwise it will
think that it is realtive to where you are in the file system.
Jim
- Original Message -
From: John A. Grant [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
function jsFunc()
{
// then check the status of the checkbox
if (checked)
{
run this
} else {
run this
}
}
onClick=jsFunc()
Jim Lucas
- Original Message -
From: Johnson, Kirk [EMAIL PROTECTED]
To: PHP General (E-mail) [EMAIL PROTECTED]
Sent: Friday
use $GLOBALS[SERVER_ADDR] it will return the IP address of the server. then
use that in an if..then..else
Jim
- Original Message -
From: John A. Grant [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 2:18 PM
Subject: [PHP] how to recognize local or server
this means that on line 8 of the product_list.php file, you are sending
something to the browser with print() echo or ?something?
find out what is on that line
then, make sure that the session_start(); is the first thing that gets
called.
jim
- Original Message -
From: Gate [EMAIL
what type of browser are you using to view this image?
jim
- Original Message -
From: Luz Lopez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 1:56 AM
Subject: Re: [PHP] show png in the browser
Hi David, of course, I send of header: header(Content-type:
returns 0
Jim Lucas [EMAIL PROTECTED] wrote in message
03ad01c161b0$026caee0$[EMAIL PROTECTED]">news:03ad01c161b0$026caee0$[EMAIL PROTECTED]...
mysql_error() and mysql_errno() return the value.
$error = mysql_error($dblink);
$errno = mysql_errno($dblink);
or
echo mysql_error
take a look at the manual
http://www.php.net/manual/en/function.array-slice.php
it will show you the right way to do it
jim
- Original Message -
From: Daniel Harik [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 11:25 PM
Subject: Re[2]: [PHP] split array in
try using the $GLOBALS[variable_name] array.
Jim
- Original Message -
From: Matt Fair [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 01, 2001 3:08 PM
Subject: [PHP] submitting form to a page with frames
I have 2 pages page1.php and page2.php. I want to submit the
most of my installs, Redhat linux 7.0 and 7.1, have placed the php.ini file
in the /etc/php.ini location. what version of linux are you using?
Jim
- Original Message -
From: Gaylen Fraley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 01, 2001 3:16 PM
Subject: [PHP]
read this page a little closer!
http://www.php.net/manual/en/function.mysql-fetch-array.php
the mysql_fetch_array(); does not pull all the results in one big array.
it IS only a single row of data.
try this out, it should do what you are looking to do.
$results = mysql_query(SELECT * FROM
Here are a few pointers to make it run just a little faster also.
don't extract the entire $GLOBALS array. just use the $var that you need.
function GetData($Query)
{
return(mysql_query($Query, $GLOBALS[db_conn]));
}
another thing would be to build a wrapper function for mysql_query() and
try this:
function
Upload($source_file,$source_filename,$dest_dir,$allowed_types=array(),
$upload_errmsg=)
{
if( count($allowed_types) )
{
if(!in_array(ArquivoExt($source_filename),$allowed_types))
{
?O arquivo ?=$source_filename? não está entre os tipos
check this out
http://www.php.net/manual/en/function.gethostbyaddr.php
jim
- Original Message -
From: Ben Clumeck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 2:48 PM
Subject: [PHP] IP Address Variable
I currently log ip address that reach my site.
try using $GLOBALS[PHP_SELF]
no matter where you are at (ie out of a function, in a function, in an
array(), etc... ), you will get the correct value
Jim
- Original Message -
From: John Steele [EMAIL PROTECTED]
To: PHP General List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001
eregi_replace isn't your problem this funciton RETURNS the new string.
function scan_string($str) {
$forbid = array (coke, tylenol, ford);
$swap = array (pepsi, advil, chevrolet);
for ($i = 0; $i count ($forbid); $i++) {
$NEW_STRING =
sorry didn't notice the in the args
you'll want this instead.
function scan_string($str) {
$forbid = array (coke, tylenol, ford);
$swap = array (pepsi, advil, chevrolet);
for ($i = 0; $i count ($forbid); $i++) {
$str = eregi_replace($forbid[$i],$swap[$i],$str);
}
well, if you are on a *nix based system, you could use ImageMagic. and have
it generate the thumbnails for you.
as for a script, well, you would have to write that.
Jim
- Original Message -
From: cosmin laslau [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 3:16
at our site, we built the error trapping that you are wanting to build.
here is a snippet of what we used.
PSID: (. PSID .)\n.
Page: ($GLOBALS[REQUEST_URI])\n.
As refered from: ($GLOBALS[HTTP_REFERER])\n.
Browser Platform: ($GLOBALS[HTTP_USER_AGENT])\n.
checkout the output control function at php.net
http://www.php.net/manual/en/ref.outcontrol.php
they allow you to capture the test that would have normally been sent to the
browser.
take the value of the variable and write it to a file.. :)
Jim Lucas
- Original Message -
From
check out the www.php.net and look into the using the header function to
force the down load instead of trying to executing the file.
www.php.net/header
Jim
- Original Message -
From: AAustin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 4:26 PM
Subject:
, GET has a size limit on the amount of data you can send
throught the URL, 2kb. I want to be able to send larger amounts with a
header() redirect.
Any ideas on how to send the data in a POST with header(); woud be
appreciated.
Thanks Jim Lucas
--
PHP General Mailing List (http://www.php.net
()/require() stuff. If you would like information on the
performance results I might be able to round up some of the data. It is
faster and cleaner.
Jim Lucas
www.bend.com
- Original Message -
From: René Fournier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday
($filename);
if ( $stat_info ) {
// do something...
}
The '@' will suppress the E_WARNING notice
if stat fails the condition will fail.
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.
Twelfth Night, Act II, Scene V
, and voila!
don't give out our alternate purpose of mailing lists :)
...
...
just kidding
--
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
what you are trying to do here.
--
Jim Lucas
Perseverance is not a long race;
it is many short races one after the other
Walter Elliot
Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.
Twelfth Night, Act II, Scene V
;
}
}
}
displayDirectory($_GET['location']);
--
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
that
'',
Side note, you might want to look into using the '+' instead of the '*'.
'+' = must be one or more
'*' = 0 or more
In some of the cases here, I see where this can bite you in the butt later.
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and some have
\n;
var_dump(chomp($data));
--
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
mike wrote:
On 11/1/07, Jim Lucas [EMAIL PROTECTED] wrote:
I noticed, while perusing the chop() manual page, that some people were giving
examples of Perl's
chop() and chomp() functions. Comments made about both said the examples were
good, but not correct.
what about trim(), rtrim
handler is only available within the lifetime
of the current script.
When the script ends, the all resource handlers get removed!
The only thing that my help, is if you use persistent connections in mysql
using mysql_pconnect()
--
Jim Lucas
Some men are born to greatness, some achieve
';
echo 'tdimg src='.$path.' //td';
echo '/tr';
}
echo '/table';
} else {
echo 'No results found';
}
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.
Twelfth Night, Act II, Scene V
configuration is anything like the default OpenBSD setup.
I know you can manually start httpd with the -u flag to disable chrooting
Again, I can't find any examples of the Mac setup, but my money would be on
chrooting as the problem.
--
Jim Lucas
Some men are born to greatness, some achieve greatness
should have a separate script generate the img and link to it with your HTML
img src=generate_image.php?img=someImage /
Then in the script generate_image.php you create the image and pass it back at
that point.
--
Jim Lucas
Some men are born to greatness, some achieve greatness
is so small to consider any optimization?
thanks for any help.
-afan
I would perform multiple inserts @ a time. This way you save yourself some time by not having mysql
rebuild the indexes, if any exist, after each insert statement.
--
Jim Lucas
Some men are born to greatness, some achieve
are wanting to do is make a table layout sortable, why not use
something like this?
http://www.kryogenix.org/code/browser/sorttable/
--
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
GD function calls, necessarily using a header
call of the correct type, prevent any other html output on that page?
David
It does not prevent other HTML output, but the browser will not read it as HTML, it will think
that it is binary data in the format of the picture data instead.
--
Jim
, the input going to your mail function call has the
body/data escaped.
Check that magic quotes are not turned on. This would escape all your form data being sent to the
processing script.
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and some have greatness
Sudheer Satyanarayana wrote:
Wolf wrote:
Sudheer,
Post the code you are using and we'll better be able to point you in
the right direction to get your code working.
Thanks Jim Lucas, Wolf and Jay Blanchard for your suggestions. Here is
the code I am using
[code]
print 'table border=1tr
Eduardo Vizcarra wrote:
I have a WHILE sentence to retrieve all records from a SELECT query in a
database and am using mysql_fetch_array to store them in a matrix, the
sentence is like this:
while($row=mysql_fetch_array($fotos))
{
$fotos_mostrar[] = $row;
}
$fotos contains all
Mackatack wrote:
Nathan Nobbe schreef:
On 11/3/07, Mackatack [EMAIL PROTECTED] wrote:
Hey all!
Im trying to submit a very basic form to phpinfo():
form action='?' method='POST'
input type='hidden' name='foo' value='bar' /
input type='submit' /
/form
?php
statement retrieves 2 columns from one table, how do I
display the second column ?
Thanks
Eduardo
Jim Lucas [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Eduardo Vizcarra wrote:
I have a WHILE sentence to retrieve all records from a SELECT query in a
database and am using
[EMAIL PROTECTED] wrote:
Do you even need reset()? I've never used it.
Personally, I do not see the need.
The op is building the array then wanting to work with it.
At this point, the internal pointer should still be at the beginning. AFAIK
Jim
--
PHP General Mailing List
Ronald Wiplinger wrote:
Jim Lucas wrote:
Ronald Wiplinger wrote:
I have a file linked with require into my program with statements like:
define(_ADDRESS,Address);
define(_CITY,City);
I would like to replace this with a mysql table with these two fields
(out of many other fields).
How can I
de Informática Carlos Marx
de Matanzas.
La gran batalla se librará en el campo de las ideas
is your apache process chroot'ed ?
Can PHP see the sendmail binary?
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.
Twelfth Night
use screen. Screen allows you to start a new terminal, start something, and then detach
from that screen. Then you are allowed to log out and the next time you log in, you are able to
resume the previous terminal session.
--
Jim Lucas
Some men are born to greatness, some achieve greatness
. Screen allows you to start a new terminal, start something, and then detach
from that screen. Then you are allowed to log out and the next time you log in, you are able to
resume the previous terminal session.
Per Jessen wrote:
Jim Lucas wrote:
This method will work until you log out, when
(array_keys($replacements), array_values($replacements), $in);
--
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
);
$link =
str_replace(
array_keys( $map ), array_values( $map ), $link );
?
The only way to make it faster is to build the key array and value array
separately, but then the association is not so clear.
Cheers,
Rob.
--
Jim Lucas
Perseverance is not a long race
the SSI and spit out what it needs, then you can read
the file anyway you like.
understand that php reading a file from the file system, is different
then your browser calling to a server/webpage and having Apache serve
the page back to the browser.
--
Jim Lucas
Perseverance
in firefox and the syntax highlighting would have
shown you the problem.
Why in the world are you still using the font... tag? Also, learn to close your HTML tags that
require a closing tag.
What version of HTML are you coding for?
bye
Ronald
--
Jim Lucas
Some men are born
1 - 100 of 1672 matches
Mail list logo