php-general Digest 10 Jul 2006 09:49:35 -0000 Issue 4231
Topics (messages 239223 through 239242):
Re: php_mysql.dll
239223 by: João Cândido de Souza Neto
239226 by: Chris
239227 by: João Cândido de Souza Neto
239228 by: Chris
239229 by: João Cândido de Souza Neto
239230 by: Bagus Nugroho
Re: PROBLEM WITH MAIL FUNCTION
239224 by: Ligaya Turmelle
239225 by: Manuel Lemos
Re: [PHP-WIN] Dynamic HTML table sort with PHP
239231 by: Shafiq Rehman
239233 by: Chris
Re: Shopping Carts
239232 by: Shafiq Rehman
Randomly rotate image on page load? File under: Image Manipulation
239234 by: Micky Hulse
239235 by: Chris
239236 by: Micky Hulse
239238 by: Paul Scott
239239 by: David Robley
239240 by: Chris
239241 by: Micky Hulse
Re: combine implode() and array_keys() to get a string of key names
239237 by: Larry Garfield
Software shopping cart
239242 by: Ryan A
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:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Well, my php is running well in windows under iis, it just doesn't read the
dynamic library php_mysql.dll.
The only thing that i do was install iis and after run the
php-5.1.4-installer.exe.
As you talk about some bug, i saw something that sounds me a possible bug.
When i install php, by default it was installed at c:\php and if i leave the
extension_dir empty in php.ini, it search all dynamic libraries at c:\php5.
""Beauford"" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
Good luck. I have tried 1001 ways to try and get PHP 5.xx to work on Windows
with no luck. Everyone says it's simple, but I believe there is a bug in PHP
5. I have no problem in Linux, but on Windows - that's another story. If you
do a search of the archives for this list I'm sure there are tons of posts
about it. Let me know if you figure it out as I'd be curious to know how you
did it. For now I'll just stay with PHP 4.4.
B
-----Original Message-----
From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
Sent: July 8, 2006 10:53 PM
To: [email protected]
Subject: [PHP] php_mysql.dll
Hi everyone.
I'm having some troubles in php5 on windows trying to load php_mysql.dll.
When i try to run a page that just has <? phpinfo(); ?> it gives me the
follow error:
PHP Warning: PHP Startup: Unable to load dynamic library
'./ext/php_mysql.dll' - Não foi possível encontrar o módulo especificado. in
Unknown on line 0
Someone knows wath i ought to do for solve that?
Thanks in advantage...
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
João Cândido de Souza Neto wrote:
Hi everyone.
I'm having some troubles in php5 on windows trying to load php_mysql.dll.
When i try to run a page that just has <? phpinfo(); ?> it gives me the
follow error:
PHP Warning: PHP Startup: Unable to load dynamic library
'./ext/php_mysql.dll' - Não foi possível encontrar o módulo especificado. in
Unknown on line 0
What does that translate to? Most people here only speak English so
unfortunately errors in another language limit the amount of help you get :(
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Excuse me.
PHP Warning: PHP Startup: Unable to load dynamic library
'./ext/php_mysql.dll' - The especified module was not found. in Unknown on
line 0
"Chris" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> João Cândido de Souza Neto wrote:
>> Hi everyone.
>>
>> I'm having some troubles in php5 on windows trying to load php_mysql.dll.
>> When i try to run a page that just has <? phpinfo(); ?> it gives me the
>> follow error:
>>
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> './ext/php_mysql.dll' - Não foi possível encontrar o módulo especificado.
>> in Unknown on line 0
>
> What does that translate to? Most people here only speak English so
> unfortunately errors in another language limit the amount of help you get
> :(
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
João Cândido de Souza Neto wrote:
Excuse me.
PHP Warning: PHP Startup: Unable to load dynamic library
'./ext/php_mysql.dll' - The especified module was not found. in Unknown on
line 0
Thanks for the translation..
Does the php_mysql.dll file exist in the php/ext folder?
Note that mysql isn't enabled by default with php5. Read
http://www.php.net/mysql for information on how to set this up.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Yes. I thik it's because windows set all folders by default as read only and
i can't change that.
"Chris" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> João Cândido de Souza Neto wrote:
>> Excuse me.
>>
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> './ext/php_mysql.dll' - The especified module was not found. in Unknown
>> on line 0
>
> Thanks for the translation..
>
> Does the php_mysql.dll file exist in the php/ext folder?
>
> Note that mysql isn't enabled by default with php5. Read
> http://www.php.net/mysql for information on how to set this up.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
if windows, you may add php directory to the PATH of Windows [Environment
Variables].
________________________________
From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
Sent: Mon 10-Jul-2006 09:08
To: [email protected]
Subject: Re: [PHP] php_mysql.dll
Yes. I thik it's because windows set all folders by default as read only and
i can't change that.
"Chris" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> João Cândido de Souza Neto wrote:
>> Excuse me.
>>
>> PHP Warning: PHP Startup: Unable to load dynamic library
>> './ext/php_mysql.dll' - The especified module was not found. in Unknown
>> on line 0
>
> Thanks for the translation..
>
> Does the php_mysql.dll file exist in the php/ext folder?
>
> Note that mysql isn't enabled by default with php5. Read
> http://www.php.net/mysql for information on how to set this up.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Juanjo Pascual wrote:
Hello,
I have a problem with the mail function when I send a mail with acents
or Ñ in the subject. When I receive the mail this caracters have been
replaced by X.
I'm using the mail function in this way:
mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página web',
'<strong>Hola, esto es una prueba<strong>','From: [EMAIL PROTECTED]' . "\r\n"
. 'Content-type: text/html; charset=iso-8859-1' . "\r\n");
The mail subject when I receive the message is like this: Consulta
SeXalXtica desde la pXgina web
¿How can I solve this problem?
IIRC sending non-ascii chars in a header is outside the standard without
some "encoding". This may help you - http://www.faqs.org/rfcs/rfc1522.html
--
life is a game... so have fun.
--- End Message ---
--- Begin Message ---
Hello,
Juanjo Pascual wrote:
> I have a problem with the mail function when I send a mail with acents
> or Ñ in the subject. When I receive the mail this caracters have been
> replaced by X.
>
> I'm using the mail function in this way:
>
> mail([EMAIL PROTECTED], 'Consulta Señalítica desde la página web',
> '<strong>Hola, esto es una prueba<strong>','From: [EMAIL PROTECTED]' . "\r\n"
> . 'Content-type: text/html; charset=iso-8859-1' . "\r\n");
>
> The mail subject when I receive the message is like this: Consulta
> SeXalXtica desde la pXgina web
>
> ¿How can I solve this problem?
Headers with non-ASCII characters must be encoded with q-encoding.
If you do not know how to encode headers that way, you may want to try
this class for composing and sending MIME messages that can encode
headers as needed. Take a look at the test_email_message.php example
script that shows how to send messages with accents like you are using:
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
Hello,
Why not you use the javascript to sort any column on client side.
http://www.kryogenix.org/code/browser/sorttable/
1. include the js file in your page
2. give your table an id
3. put your table in the class the code looks for.
That's it. Sortable clientside tables! Example:
http://pkfinance.info/analysis/
Hope this will help!
Regards
Shafiq Rehman
Sr. Web Engineer
http://www.phpgurru.com
--- End Message ---
--- Begin Message ---
Shafiq Rehman wrote:
Hello,
Why not you use the javascript to sort any column on client side.
Because that might not sort all of the data.
If you only show 20 records per page, then that will only sort those 20
records (ie the records inside that page), it won't sort the other 1,000
records by "name" or whatever other fields you specify.
If I have:
Albert
Alex
Chris
Fred
Henry
Joe
Trevor
in the list, and I show 3 per page, it would be:
Albert
Alex
Chris
and I sort descending, it would show
Chris
Alex
Albert
which isn't right, it should be
Trevor
Joe
Henry
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
hi,
http://www.cubecart.com/site/home/
CubeCart is an eCommerce script written with PHP & MySQL. With CubeCart you
can setup a powerful online store as long as you have hosting supporting PHP
and one MySQL database.
To edit or remove copyright thay charge $69.95 per domain* and you will be
issued with a License Key
I used it two years back and it works excellent
Shafiq Rehman
Sr. Web Engineer
http://www.phpgurru.com
--- End Message ---
--- Begin Message ---
Hi,
I have not done much Googling yet... thought I would ask here before I
spend a bunch of time searching for some guidance... What would be the
best function set for on-the-fly image manipulation (specifically image
rotation?)
Is it easily done? Possible? Worth the trouble?
Any links and/or guidance would be appreciated (hopefully the answer is
not a blatantly obvious RTFM.) :)
Many thanks in advance,
Cheers,
Micky
--- End Message ---
--- Begin Message ---
Micky Hulse wrote:
Hi,
I have not done much Googling yet... thought I would ask here before I
spend a bunch of time searching for some guidance... What would be the
best function set for on-the-fly image manipulation (specifically image
rotation?)
Is it easily done? Possible? Worth the trouble?
Any links and/or guidance would be appreciated (hopefully the answer is
not a blatantly obvious RTFM.) :)
It is.
http://www.php.net/image
There's even a function to do the rotations for you
http://www.php.net/manual/en/function.imagerotate.php
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Chris wrote:
It is.
http://www.php.net/image
There's even a function to do the rotations for you
http://www.php.net/manual/en/function.imagerotate.php
OMFG... I am such a schmuck!
:: Bangs head on keyboard ::
JK:Luhey; fdksahuioreufkjL: KHgfuidksja; fkdlsaah; lkhfkldjhsaljk
fdsaU^TYGHBJFhjfdj ...
Um, time for me to turn off puter and get some sleep.
Thanks for pointing that one out... :: blushes ::
Night! :)
Cheers,
Micky
--- End Message ---
--- Begin Message ---
On Mon, 2006-07-10 at 16:59 +1000, Chris wrote:
> http://www.php.net/image
>
> There's even a function to do the rotations for you
>
> http://www.php.net/manual/en/function.imagerotate.php
That all depends on what you mean by image rotation. A bunch of folks
define image rotation as displaying a set of images as a rotating "slide
show" while others (like Chris) see it as rotating a single image on an
axis (correct definition).
--Paul
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm
--- End Message ---
--- Begin Message ---
Chris wrote:
> Micky Hulse wrote:
>> Hi,
>>
>> I have not done much Googling yet... thought I would ask here before I
>> spend a bunch of time searching for some guidance... What would be the
>> best function set for on-the-fly image manipulation (specifically image
>> rotation?)
>>
>> Is it easily done? Possible? Worth the trouble?
>>
>> Any links and/or guidance would be appreciated (hopefully the answer is
>> not a blatantly obvious RTFM.) :)
>
> It is.
>
> http://www.php.net/image
>
> There's even a function to do the rotations for you
>
> http://www.php.net/manual/en/function.imagerotate.php
>
If you actually want to load a different image each time, start with
php.net/rand Perhaps the image names could be integer based, or you could
oad the image paths into an array and use rand to select based on a numeric
key. Or you could store the image paths in a mysql database and use mysql's
RAND to select an image path for display.
The possibilities are endless, but seeing this is a php list I won't mention
J...s....t :-)
Cheers
--
David Robley
Disc space - the final frontier!
Today is Sweetmorn, the 45th day of Confusion in the YOLD 3172.
--- End Message ---
--- Begin Message ---
David Robley wrote:
Chris wrote:
Micky Hulse wrote:
Hi,
I have not done much Googling yet... thought I would ask here before I
spend a bunch of time searching for some guidance... What would be the
best function set for on-the-fly image manipulation (specifically image
rotation?)
Is it easily done? Possible? Worth the trouble?
Any links and/or guidance would be appreciated (hopefully the answer is
not a blatantly obvious RTFM.) :)
It is.
http://www.php.net/image
There's even a function to do the rotations for you
http://www.php.net/manual/en/function.imagerotate.php
If you actually want to load a different image each time, start with
php.net/rand Perhaps the image names could be integer based, or you could
oad the image paths into an array and use rand to select based on a numeric
key. Or you could store the image paths in a mysql database and use mysql's
RAND to select an image path for display.
The OP mentioned image manipulation, hence the pointer to the manual
about editing images..
It's always interesting to see so many interpretations of the one thing :)
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
Hi,
Hehe, looks like I did not hit the hay just yet... too much geeking to do!
Chris wrote:
It's always interesting to see so many interpretations of the one thing :)
Yeah, no doubt! I found this on AlistApart:
<http://www.alistapart.com/articles/randomizer/>
Took me a few mins to figure out that thy author was talking about
*random image display* and not *image manipulation*.... Personally I
think "Rotation" should mean "rotating a single image on an
axis". Lol... I need some sleep.
Thanks all for the responses, I really appreciate all of your help(s).
:: tear comes to eye ::
I love you guys/gals!
Cheers,
M
--- End Message ---
--- Begin Message ---
On Friday 07 July 2006 10:03, Janet Valade wrote:
> Actually, it doesn't matter what the indexes are when you use implode.
> Implode just puts the values into a string. Here's code that will work.
>
> $field_array = array_keys($fields_form);
> $fields = implode(",",$field_array);
> $values = implode('","',$fields_form);
> $query = "INSERT INTO Table1 ($fields) VALUES (\"$values\")";
> $result = mysqli_query($cxn,$query);
>
> $fields_form is an associative array of all the fields to be entered
> into the database, with the field names as keys and the field values as
> values. This code quotes the values in the $values string in the query,
> as needed if the values are strings.
It is slightly more complicated than that, since if the value is numeric and
going into a numeric field, then it's not supposed to be quoted. (MySQL
generally doesn't care, but some other databases may; I'm not certain.)
I'm actually currently in the midst of getting this functionality added to the
Drupal CMS. Feel free to look at the patch I've submitted[1]. It has some
Drupal-isms in it, but for the most part is fairly clear. It also handles
insert, update, and delete, too.
[1] http://drupal.org/node/30334
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--- End Message ---
--- Begin Message ---
Hey all,
While on the subject of shopping carts, (and i didnt
want to hijack the other thread) can anybody recommend
a shopping cart that sells ( or: to sell) software
rather than material goods?
Something simple, would prefer free (surprising eh?)
but am open to commercial.
Something simple (fast, minimum bloat, minimum db
calls), and should be able to offer discounts and
"package discounts" (buy 2 softwares get 30% less, 3
softwares 45% less etc)
Would be nice if it connects to paypal and 2checkout
but not a big deal if it does not, I can do that.
Quite a few on hotscripts, offering the moon dipped in
melted green cheese, would prefer a recommendation
from one of you guys.
Would really like to avoid making this from scratch.
Thanks!
Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--- End Message ---