php-general Digest 27 Aug 2005 23:10:04 -0000 Issue 3649
Topics (messages 221466 through 221475):
Ahmed Abdel-Aliem has invited you to try Google Talk.
221466 by: Ahmed Abdel-Aliem
Re: PHP MySql Extension No Loading
221467 by: Bagus Nugroho
221474 by: Glen Zimmerman
Re: PHP Security
221468 by: Chris Shiflett
Apache Installation Error: Cannot load /usr/lib64/httpd/modules/libphp4.so into
server: undefined symbol: unixd_config
221469 by: Chinyi Woo
syntax for multiple boolean
221470 by: Ross
221472 by: sub.pudlz.com
sscanf() not returning info
221471 by: Simon Fredriksson
& and mySQL
221473 by: mastershay
Image Rendering/Generation Options
221475 by: Dan Trainor
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
I've been using Google Talk and thought you might like to try it out.
We can use it to call each other for free over the internet. Here's an
invitation to download Google Talk. Give it a try!
-----------------------------------------------------------------------
Ahmed Abdel-Aliem has invited you to sign up for Google Talk so you can
talk to each other for free over your computers. Signing up also gives
you Gmail, a free Google email account with over 2,000 megabytes
of storage.
To accept this invitation and get Google Talk and Gmail, visit:
http://mail.google.com/mail/a-353c367f8f-9c28f4a6d8-e736913ada
If you already have a Gmail account, please visit:
http://mail.google.com/mail/b-353c367f8f-9c28f4a6d8-d3c240b87504c300
Google Talk is a downloadable Windows application that lets you send
instant messages to your friends and make free phone calls over an
internet connection. Google Talk offers excellent voice quality and
works with any computer speaker and microphone.
Gmail is Google's free email service, offering lots of free storage,
powerful spam protection, built-in search for finding your messages,
and a helpful way of organizing email into "conversations." And there
are no pop-up ads or untargeted banners - just text ads and related
information that are relevant to the content of your messages.
Once you sign up, we'll notify Ahmed Abdel-Aliem of your new Gmail address
and add you to each others' Friends lists so you can start talking
right away.
Gmail and Google Talk are still in beta. We're working hard to add
new features and make improvements, so we might also ask for your
comments and suggestions periodically. We appreciate your help in
making our products even better!
Thanks,
The Gmail and Google Talk Teams
To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/benefits.html
http://www.google.com/talk/about.html
(If clicking the URLs in this message does not work, copy and paste
them into the address bar of your browser).
--- End Message ---
--- Begin Message ---
ensure you have php_mysql.dll on c:\PHP\ext
and don't forget to check php.ini location, it must comply with httpd.conf (
see PHPIniDir ".....") and restart apache after editing both of files.
________________________________
From: Glen Zimmerman [mailto:[EMAIL PROTECTED]
Sent: Sat 27-Aug-2005 01:08
To: php-general@lists.php.net
Subject: [PHP] PHP MySql Extension No Loading
I am setting up Apache 2.0.54 with PHP 5.0.4 on a Windows 2000 work station
running MySQL 4.1.12a-nt.
When I start Apache, I receive the error message,
"PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_mysql.dll'.
I have C:\PHP set in the environment variable path.
In the php.ini file I have the following set(I have tried it with both the
final "\" included and excluded):
extension_dir = "C:\PHP\ext\"
I do not get an error when I try to load the php_oci8.dll. Just for
php_mysql.dll.
What am I missing?
DISCLAIMER: The information in this email is confidential and proprietary. If
you are not the intended recipient, please do not read, copy, use, or disclose
the contents of this communication. Please permanently delete this e-mail and
all copies that you may have. This information may be subject to privilege or
may otherwise be protected by legal rules.
--- End Message ---
--- Begin Message ---
Yes, I have the dll in the right place (C:\php\ext), and PHPIniDir is set
to C:\php where php.ini is located. I know that php.ini is being picked
up, because the changes I make to the file take affect when I restart
Apache. PHP is loading properly as the php function, phpinfo, does display
the proper information page when I run a test. I just cannot get
php_mysql.dll to load.
I have gone through the PHP installation documentation several times, but
it has not made a difference.
I just don't know what I have over looked.
|
--- End Message ---
--- Begin Message ---
Richard Lynch wrote:
The actual text is:
"...in a Web service protocol FOR PHP"
Good catch. The summary sent to the list was:
"A new security flaw in the PHP Web service protocol used by a large
number of Web applications could allow attackers to take control of
vulnerable servers."
Thanks for clarifying.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--- End Message ---
--- Begin Message ---
Hello, guys
I am trying to configure apache_1.3.33 with php 4.3.9 on my linux box.
After adding LoadModule php4_module
/usr/lib64/httpd/modules/libphp4.so to http.conf, I started httpd by
"apachectl start" and got the following error message:
Cannot load /usr/lib64/httpd/modules/libphp4.so into server:
/usr/lib64/httpd/modules/libphp4.so: undefined symbol: unixd_config
./bin/apachectl start: httpd could not be started
I have been beating my head against this for quite a while. Is there
anyone who can help me figure it out?
Many thanks
Chinyi Woo
--- End Message ---
--- Begin Message ---
I want to check if multiple fields are empty and want to find the best
shorthand way to do it. What are the rules with brackets in PHP.
if (empty ($fname){
//do something
}
if (empty ($sname){
//the same thing
}
if (empty ($address){
//do the same ting again
}
R.
--- End Message ---
--- Begin Message ---
You could write what your code does now like this.
if (empty ($fname) || empty ($sname) || empty ($address))
{
// do something
}
If you want your first condition to be met and one of your second two
conditions to be met you can do it like this:
if (empty ($fname) && (empty ($sname) || empty ($address)))
{
// do something
}
Of course the first example will run the code if any of the fields are
empty. The second will run it if the first and second or third are empty.
Hope that helps.
Andrew Darrow
Kronos1 Productions
www.pudlz.com
----- Original Message -----
From: "Ross" <[EMAIL PROTECTED]>
To: <php-general@lists.php.net>
Sent: Saturday, August 27, 2005 10:42 AM
Subject: [PHP] syntax for multiple boolean
> I want to check if multiple fields are empty and want to find the best
> shorthand way to do it. What are the rules with brackets in PHP.
>
>
> if (empty ($fname){
>
> //do something
>
> }
>
> if (empty ($sname){
>
> //the same thing
>
> }
>
> if (empty ($address){
>
> //do the same ting again
>
> }
>
>
> R.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 8/26/2005
>
>
--- End Message ---
--- Begin Message ---
Can anyone tell me what is wrong here?
<?php
$data = "<a class=\"new20030101\" href=\"Zero01.jpg\">Pic 1</a>";
$info = sscanf($data,"<a class=\"%s\" href=\"%s\">%s</a>");
var_dump($info);
?>
Returns:
array(3) {
[0]=>
string(12) "new20030101""
[1]=>
NULL
[2]=>
NULL
}
I expect:
array(3) {
[0]=>
string(11) "new20030101"
[1]=>
string(10) "Zero01.jpg"
[2]=>
string(5) "Pic 1"
}
//Simon
--- End Message ---
--- Begin Message ---
Hi, I am trying to search mySQL for URLs that include & in them. I start
with a standard URL that uses &, use str_replace to put in &, and then
do a mySQL query. However, nothing is found when I run the search through
PHP. When I do the search directly through phpMyadmin, it works fine. Anyone
know what the problem is?
--- End Message ---
--- Begin Message ---
Hello, all -
I've seen a few times, albeit I don't know how, people generate images
on a page in different ways, such as maybe using base64 to output the
raw image data into a page? Is this correct?
If so, what does it "look" like? How would one go about doing this?
If not, what are my options to achieve something like this? What are my
alternatives? What kind of performance impact, if any, does this make
on both the load on the server and the rendering time for a given image
to the client? Last but certainly not least, is this a dumb idea?
What I'm looking to do is to deliver dynamic content to the browser,
without writing images to disk. I simply want what would be written to
disk, be displayed in a specific area I'm talking about.
I'm sorry if this is a dumb question. Once I get a few more clues here,
I'll be able to figure the rest of this out pretty well, I'm quite sure.
As always, thanks for the time
-dant
--- End Message ---