Michael Mao wrote:
Is there a way to capture a snapshot of a html page and save it as a
jpg using php?
This is a bit of a hack, but kinda neat if you don't mind setting it
up. I'm sure you could use php to call a script anyway. Heh.
http://www.livejournal.com/users/brad/2015327.html
On Thu, 16 Sep 2004 12:08:50 -0400, Dan Joseph [EMAIL PROTECTED] wrote:
There are others?
http://www.php-accelerator.co.uk/
http://pecl.php.net/package-info.php?package=APC
http://turck-mmcache.sourceforge.net/
- Brad
--
PHP General Mailing List (http://www.php.net
I am having troubles with a script im trying to write. I was wondering
if anyone could help me. The script needs to upload 2 files to a
directory, and have a field for a name, which will then figure out the
URLs of the files put them in the database along with the specified
name. Please help :o
try restarting apache.
if mysql were not running they would see a mysql error, not a PHP error
saying the function is not defined.
Is is something to do with how mysql is built into PHP and how PHP interacts
with apache, so if all else fails, try rebuilding PHP.
-B
- Original Message -
Does anyone know any good software for PHP/mysql coding? I currently use
DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
support. I just want an easy program to script in, and upload on to my
webserver. Please help! :o
Wouldn't count(sku) work?
-Original Message-
From: Tom Ray [Lists] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] COUNT(*) Output Question
Hey-
I'm query my mySQL database to see how many of each Sku has been
ordered. I am doing
echo search_username.1='$_REQUEST[search_username]';
echo search_username.2='$search_username';
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(if that makes sense). For example:
ob_start();
echo 'Hi';
ob_end_flush();
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(*) FROM sometable is much faster with MyISAM tables than
with InnoDB tables because InnoDB tables need to actually count all the
rows where MyISAM tables keep that information handy. Someone please
correct me if I got that wrong.
- Brad
--
PHP General Mailing List (http://www.php.net
might be able to use
'mogrify' which is part of ImageMagick. I think it works very well for
this.
http://www.imagemagick.org/www/mogrify.html
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
http://anjuta.org/
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/php --with-apxs=/path/apache/bin/apxs
$ make
# make install
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for.
if ($EA === NFH)
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
' you are
dealing with. This is especially good when dealing with user input.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
['order_id'].'.html';
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
use str_replace (untested):
$a = 'order.php?order_id=';
$b = 'order_';
$c = 'a href=order.php?order_id=12345';
$new = str_replace($a, $b, $c).'.html';
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2004-01-16 at 10:21, Brad Pauly wrote:
On Fri, 2004-01-16 at 10:07, Tobias Engelhardt wrote:
That is not possible because the id's are hard-coded in thousands of
html-pages. Not a very good idea, i know. It wasn't mine... I *have* to
use search/replace. (A script processes each
/manual/en/language.operators.arithmetic.php
if ($your_number % 2) {
echo 'odd';
} else {
echo 'even';
}
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have Apache compiled with mod_rewrite and you have the
proper settings in httpd.conf (ie. LoadModule). Did you restart Apache?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
=$2id=$3
I don't remember for sure, but do you need an [L] at the end of the
second line?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 2004-01-14 at 12:41, Ryan A wrote:
Hey Jason, Brad,
Thanks for replying.
I took out the .php part...and even tried it with [L] tacked to the end of
the second linenot working
Heres how my .htaccess looks now:
RewriteEngine On
RewriteRule ^show/(.*)/(.*)/(.*) /show.php
this is
partly working.
now what to do about the variables?
Well, are any of them in $_GET? If so, are they getting assigned to the
right place? How about putting a print_r($_GET) in show.php.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
?foo=$1
And see what $_GET looks like.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that make very large input impractical.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
session_start();
Have you tried putting session_start() before the first print?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
];
}
}
echo $message;
}
You are overwriting $lines every time you make an assignment. From the
looks of how you create $message, you want $lines to be an array. Try
$lines[] = 'whatever' instead of $lines = 'whatever';
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
the last record, $vlanz[$z]. You will need to loop
over $vlans again or put the echo line inside the for loop.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
light?
What is the exact error message? It usually tells you where the guilty
line is.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/navigationStart3.php4 on line 4
Just after session_start()
from the code:
?php
include 'navigationStart3.php4';
Are these indents in the code (changeAlertDetails3.php4 I think)? You
can't have anything before the ?php.
- Brad
--
PHP General Mailing List (http://www.php.net
no concuerdan.;
$errors++;
}
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(http://us2.php.net/exec) with something like this:
$dbname = 'mydb';
$password = 'secret';
$username = 'myusername';
$filename = '/path/to/file';
exec(mysqldump --opt $dbname -u $username --password='$password'
$filename);
- Brad
--
PHP General Mailing List (http://www.php.net
/public_html/php/cateadded.php on line 14
Try checking your query results. mysql_query might return false which is
not a valid result.
$dbdo = mysql_query($query, $dbconnect)
or die(mysql_error());
That should let you know what is going on.
- Brad
--
PHP General Mailing List (http
Hi,
I keep getting errors on my websites, that contain absolute URLs, e.g.
http://www.url.com/blah.html. With most, being in the folder of my
website, it's fine, i can just add $_SERVER['DOCUMENT_ROOT'], but
there's a script I use to display the network statistics of an IRC
network, which is
me. Can anyone tell me how to get the function to be executed here?
Try $$contentfunction
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
exactly? Looking at your code again maybe you
want:
$contenctfunction();
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)
{
echo You requested to execute the function: $func_name.;
echo 'The output of the function is: ' . $func_name();
}
Nicely explained!
Please disregard my earlier suggestions. Typing too fast and not paying
enough attention. I'll go sit in the corner now =)
- Brad
--
PHP General Mailing List
on its own in a file.
It fails on Apache on my intranet and IIS after being uploaded to a web
server. The browser is set to recieve cookies. All the books say it should
work.
Is there anything before the first line of code? Any whitespace or html
will cause this error.
- Brad
--
PHP General
/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Brad Lhotsky [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
think you might have some letter 'O's instead of the number 0. Notice
that you have CO1 and C01 when you print_r. They are different keys.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Impossible, PHP is server side, look into javascript of some other client
side language to create pop-up windows.
- Original Message -
From: [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 3:00 AM
Subject: [PHP] Create Popup Window using PHP
Hi all,
' to make an application scalable. Do others consider
application design when talking about scalability?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
outside of the quotes
echo img src=\gd_graph.php?harray=,urlencode($s_array1),\;
Or encode it first:
$s_array1_encoded = urlencode($s_array1);
echo img src=\gd_graph.php?harray=$s_array1_encoded\;
I think the second is easier to understand.
- Brad
--
PHP General Mailing List (http://www.php.net
-way encryption.
md5 is a one-way hash function. It is great for passwords. (I'm not sure
if that technically qualifies as encryption because it is nearly
impossible to decrypt..hmm) Anyway, I would recommend using it.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ben Edwards wrote:
On Tue, 2003-10-07 at 16:14, Brad Pauly wrote:
Probably because you have register_globals turned off. You can use
$_GET['_section']. You can also turn it on.
But it works in hundreds of other places on the server. I don't really
want to use $_GET because I sometimes switch
the RELEASE_DATE and RELEASE_TIME in the name of the
file it would save you the step of reading the files. Just getting the
contents of the directory should provide all the information. Of course
you would still need to put that in an array and sort it.
- Brad
--
PHP General Mailing List (http
it in a selection box .
Any Idea how, thanks in advance.
You can use output buffering to grab the output and explode to put the
lines in an array.
http://us4.php.net/manual/en/ref.outcontrol.php
ob_start();
passthru(ps -ef);
$ps = ob_get_contents();
ob_end_clean();
$lines = explode(\n,$ps);
- Brad
--
PHP
Payne wrote:
[big snip]
What I am getting this
INSERT INTO leads (leads_id, title, f_name, l_name) VALUES ('', , , )
Is register_globals off?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
out the Windows installation section of the manual.
http://www.php.net/manual/en/install.windows.php
Basically, you need to copy one of the ones that comes with php into
your windows directory.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
of problem.
Are you using mysql_connect or mysql_pconnect?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brad Pauly wrote:
Nicole wrote:
I last increased my max connections to 500. That seemed to fix things
for a
while. Now I am getting the problems (database freezing up because too
many
connections) again. The site I run is pretty high traffic.
I wondered if anyone encountered a solution
,
whether it be in a switch statement or different functions. Not only
does it save you time, but it keeps your validation consistent across
your application.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to consider.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Steve Buehler wrote:
[snip]
$array=(/etc/bind/options.conf.wp,/etc/bind/rndc.conf.wp,/etc/bind/keys.conf.wp);
if($k2b==$array){
do this1
}else{
do this2
}
You are close. Check out in_array(). http://us4.php.net/in_array
if (in_array($kb2, $array))
- Brad
--
PHP General Mailing List
your cookies when you switch between your dev server
and your live server. Takes a little more manual effort, but should work.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.= $field_name = $field_value\n;
}
Then just email $content. You could filter out the excerciseN fields if
you only wanted to send those.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
) {
if (stristr($field_name, 'exercise')) {
$content .= $field_name = $field_value\n;
}
}
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for
certain applications.
I haven't used smarty for anything significant. I like it, but it does
more than I need.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
!';
else
print 'Failure';
?
Are you sure the MySQL server is running? Can you connect from the
command line using the same credentials as above?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
processes to see if it exists there?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and it will not raise an error.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jeff McKeon wrote:
Ok, so if an argument is supplied to the function, the = null is
ignored?
Yep.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cause problems.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
before that. Like:
include ($include);
You also use $includes in a couple of the cases, like the last one.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
where the php.ini file should be (it probably isn't
there right now). Copy php.ini-recommended to the location that
phpinfo() told you it was, and name it php.ini. Make the necessary
changes to php.ini. Restart Apache. You should be all set.
- Brad
--
PHP General Mailing List (http
.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
read it somewhere. I
just don't remember where.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
difference in performance.
If you use a consistent naming convention for your class files, you
could have a function that will handle including the class file and
return an object. So you could do something like:
$foo_object = CreateObject('FooObject');
- Brad
--
PHP General Mailing List (http
that.
Would there be much benefit from returning a reference to the object? I
would guess it would consume less memory.
function create_object() {
[..]
}
$some_object = create_object('some_object');
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
André Cupini wrote:
But what's the diference of the sintax:
function bla($var)
That means the function will return a reference.
http://www.php.net/manual/en/functions.returning-values.php
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
CF High wrote:
I split the number list to array -- $num_list_array = split(, $num_list)
Any ideas?
split uses a regular expression. I think you want to use explode here.
$num_list_array = explode(',', $num_list)
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brad Pauly wrote:
CF High wrote:
why does PHP add 3 slashes to the following var:
$apostrophe = I've got an apostrophe;
$slashed = addslashes($apostrophe);
echo $slashed;
Result: I\\\'ve got an apostrophe.
What's up with that -- why not just add a single backslash?
Do you have
?
$HTTP_SESSION_VARS[$user]['options'] = $options;
You could then add elements to this array like this:
$HTTP_SESSION_VARS[$user]['options']['registered'] = 1;
Is that what you are trying to do?
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or not you need the 4.0 client lib. Take a look at this link:
http://www.mysql.com/doc/en/Upgrading-from-3.23.html
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I set up a PHP4.3.3/mySQL4.0.14/Apache2.0.47 server and everythign is
configured and running properly. i tested php with some scripts and
functions and they all work. When i try and do any file editing/including in
scripts i get file not found errors all over the place when i open like
PROTECTED];
$mail_subject = php mail test;
$mail_body = test;
if ( mail($mail_to, $mail_subject, $mail_body))
{echo(sucess);}
else
{echo(fail);}
?
--
Brad Esclavon
[EMAIL PROTECTED]
(H) 404-875-4561
(C) 404-291-1082
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
what i'm going for here is to choose the page i want in that space by
defining it in the url, such as
http://l33trus.servebeer.com/site/index.php?page=contact
but how would i do that?
Based on the code posted before I think you should be able to do:
include $$_GET['page'];
- Brad
--
PHP
LoonySalmon wrote:
if page is defined in url, include page defined
else include home
You are on the right track. Take a look at the manual.
http://us4.php.net/manual/en/index.php
http://us4.php.net/isset
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
/index.php?page=homehome=http://othersite.com/bad.php
Although I think you would still be ok.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://us4.php.net/microtime
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
We have a detailed whitepaper on the subject.
Please check out: http://www.zend.com/whitepapers/PHPandApache2-ZendWhitepaper.pdf
BY
__
Brad Young
[EMAIL PROTECTED]
www.zend.com
Zend - The PHP Company
Hi All,
Can anyone aswer this simple question, that i still
zeros to the right of a decimal
are significant.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for what I am trying to do? Thanks in advance.
You might want to check out stripslashes().
http://us2.php.net/manual/en/function.addslashes.php
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you could escape that
character in the users input when you add it.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, and read some of the
numerous exposes on the subject to get a general idea.
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=object+oriented+programming
-Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, Zend Optimizer definitely does support 4.3.X.
Brad
__
Brad Young
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.zend.com http://www.zend.com
Zend - The PHP Company
-Original Message-
From: Adrian Teasdale [mailto:[EMAIL PROTECTED]
Sent: Thursday
enough when I run the query
I get no error, and can print it and run it through a mySQL terminal,
and it works.
Anyone have any ideas?
Is $buffer empty? I would start there.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
command via the exec function.
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that some might
find useful.
http://www.catb.org/~esr/faqs/smart-questions.html
- Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
that this would be the easy part. Any more ideas? Thanks for your help Jason I appreciate it.
Writing and moving require the same permissions. Also, there is a big
difference between root and webroot. Which one are you talking about?
- Brad
--
PHP General Mailing List (http://www.php.net
as (this is the User directive in your httpd.conf file). Then
you can restrict the permissions on that directory. You could probably
make it 600 if you want.
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
should be using a
comparison operator. Try using == (or ===):
if ($_SERVER['QUERY_STRING'] == ) { disp_cat(); }
http://us4.php.net/manual/en/language.operators.assignment.php
http://us4.php.net/manual/en/language.operators.comparison.php
Brad
--
PHP General Mailing List (http://www.php.net
$cat_name is, but since you have a cat_name column, I
am wondering if you are comparing two different things.
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, but essentially
something like this:
$header = imap_header($foo, $bar);
print $header-date;
http://us4.php.net/manual/en/function.imap-headerinfo.php
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.php.net/manual/en/ref.outcontrol.php
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
probably just tell
configure where apxs is. --with-apxs=/path/to/apache/bin/apxs
http://www.php.net/manual/en/install.apache.php
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
401 - 500 of 745 matches
Mail list logo