[PHP] Spellchecking using MS Office spellchecker
Hi all, Do you know if there is a way, class or anything else that could be used in order to use Microsoft's spell checker with php to spell check text? Aspell and Pspell are good alternatives, yet not as good as expected. Thanks in advance, GP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strip_Tags @ php 4.3
Hello, Has anyone noticed strange behaviour in strap_tags @ php 4.3? We did upgrade to the latest snap yet the problem remains. For some reason strip_tags acts weird.. -- georgep -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GD jpg thumbnail - ugly discollored
Use ImageMagick found @ http://www.imagemagick.org . It is all you need to handle images. Aside the binary external program take a look at this too : http://magick.communityconnect.com/ best of luck, --georgep - Original Message - From: Victor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, January 25, 2003 10:00 PM Subject: [PHP] GD jpg thumbnail - ugly discollored I have a script that takes uploaded images (jpeg only) and makes proportionate thumbnails etc, and saves them in jpeg (.jpg) format again (default compression of %75 I think) anyway, the thumbnails are UGLY. Beauty of content aside, they are discolored, and usually one predominant color takes over the entire picture so they come looking like off-black and white thumbnails. WHY? And how can I fix this/get around it? This is some extra info. GD Support enabled GD Version 2.0 or higher FreeType Support enabled FreeType Linkage with freetype JPG Support enabled PNG Support enabled WBMP Support enabled __ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Minor email problem
Take a look at the standard php mail function . You can set most of the available mail headers inluding from/to ones. That would do it. --georgep - Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: PHP general list [EMAIL PROTECTED] Sent: Friday, January 24, 2003 1:48 AM Subject: [PHP] Minor email problem hello friends, I am hosted with an ISP called Apexon. I have written php scripts to send mail from a webpage. When I send this mail, the from address becomes [EMAIL PROTECTED] . Their website says that the variable sendmail_from is [EMAIL PROTECTED] . I want to force my own from address in this. I also want to change the sender's name to my name rather than my website name. I have tried many ways, but not successful. Can someone help me? Please help. Thanks denis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Word Count
$wordsCount = str_word_count($string); -- georgep - Original Message - From: Maxim Maletsky [EMAIL PROTECTED] To: Craig [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 11:26 PM Subject: Re: [PHP] Word Count words, for a programming language, are nothing more than just the spaces. So, as previousely was shown - could the mount of spaces in the string to get the amount of `words' in between them. -- Maxim Maletsky [EMAIL PROTECTED] Craig [EMAIL PROTECTED] wrote... : Is there a way to count the number of words in a string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a regular expression problem - split text
If I got this right : preg_match_all (#\!.*?(.*?)#si,$string,$match); You will have an array ($match[1]) with all your subs in there. -- georgep - Original Message - From: Juan Pablo Aqueveque [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 9:11 PM Subject: [PHP] a regular expression problem - split text Hi all I am sorry for the very simple question but I can't doing this. I have a text like this: $text= !-- 1 -- this is January !-- 2 -- this is February !-- 3 -- this is March !-- 4 -- this is April ; OK.. i want to show e.g. this is January in my var $sub_text. How can i doing this using a regular expressions? ?php ereg((help-me-with-a-regulars-expressions-sentence),text,$sub_text); echo $sub_text[0]; ? thanks a lot Juan Pablo Aqueveque [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Output problem
Hi, After unsuccessful try to install apache2.0.4 with php I went back to apache1.3 and the same php config I had before. Yet for some reason php is not working the way its supposed to. The header function wont do a thing and no syntax errors or warnings are shown . I guess it has to do something with output handling but I didn't find anything on the php.ini file relative to it, in fact I used the old php.ini file (working one). Is there any chance this is an Apache fault ? If not what would you suggest? Thanks. -- georgep -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0.40 and php as module
Hi , I am trying to install Apache 2.0.40 with the latest php build as a module (windows xp) yet it just wont work. Though I tried all the tricks and possible scenarios no luck. Does anyone have anyidea why I am getthing this frustrating Cannot load D:/Apache/php/sapi/php4apache2.dll into server: The specified procedure could not be found. message? Thanks in advance. -- georgep -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP/Apache/Windows question
Hello , I am using PHP 4.x on Windows/Apache 1.3.x. Using the same confing on Linux , I can get something like index.php/something/anotherSomething/blah blah. Trying to do this windows just failes. I think it has to do with Apache look back feature which for some reason is not working on Windows. The only thing I get is premature end of headers error.. Any ideas what migh be wrong.? -- GeorgeP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Referer Question
Hi, Say I have an image called in a page which is actually a PHP script (A banner image for example). Is there any variable I could use to detect where the the one that entered the page and ran the php script came from? I guess it's something like the referer of HTTP_referer or something. I could do it using some javascript and pass it to the php but that's not really acceptable. Thanks in advance, George E. Papadakis Project Manager Phaistos Networks S.A - http://www.phaistosnetworks.gr [EMAIL PROTECTED] T: +30 892 24450 F: +30 892 23206 - A DOL Digital Company -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP/Mysql error handling
Hi, Is there any way to make php notify me of any errors through email? I know it may sounds funny, but imagine having this huge site and u just want it to run smoothly but u juct cant check it all the time . If there was a way that php would notify u for a an error on a specific page/line that would make debuggin much easier and without guessing.. So, is it possible? Thanks. -- phaistonian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Apache / PHP Question
Hello, In my lnx server I can do index.php/var1/var2/var3 I try the same exact thing in windows (using the same config (Apache/php) ) and it gives me internal server error. Any ideas? Thanks -- phaistonian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shell or http?
Thanks for your answer Chris, What I want to do is find a way to check if a script is running as a cgi or not. Suppose I am running it from a unix shell (sgi) then I want the script to behave differently than when executed by a Web Server. I was wondering if there is an enviroment/php variable that can help me identify whether the script was sgi or web running. Thanks again. --georgep - Original Message - From: Chris Lambert [EMAIL PROTECTED] To: George E. Papadakis [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, August 27, 2001 1:14 AM Subject: Re: [PHP] Shell or http? It depends on how the webserver is setup. If its being run as a CGI then it depends if suEXEC is enabled. If its not, it should be run as nobody, whereas if it is (and the user/group paramater in httpd.conf is set) it'll be run as whatever the directive is set to. If its run as a module, then the userid should be nobody. Where are you trying to identify it from? /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: George E. Papadakis [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Sunday, August 26, 2001 1:36 PM Subject: [PHP] Shell or http? | Hi, | | Is there any way to identify if a php script is running through a shell or | web? | Thanks in advance. | | | -- GeorgeP | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | To contact the list administrators, e-mail: [EMAIL PROTECTED] | | | -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Just like to know
Hello, I ame facing a cookies problem with with Internet Explorer I issue the following command to set the cookie: setcookie( $cookie_name, $cookie_value, time()+15768, /, .mydomain.gr, 0 ) The page that sends the cookie is in an IFRAME inside the main browser's window. The domain in the main window and the page in the iframe is different. IE refuses to save the cookie if the privacy level is medium (or higher). If we set the privacy level to 'low' everything works fine. The problem is that IE comes with privacy level set to medium by default. Is there any way to set the cookie overiding IE's security options? Thanks in advance, George Papadakis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] select the most repeated value in a field
select result,count(*) as cnt from table group by result order by cnt desc ; - Original Message - From: Jacky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 10:02 PM Subject: [PHP] select the most repeated value in a field Hi people How do i query to select the most repeated values in a field, say if I hacve list of values as a,b,c,d,e to be submitted to a field call result in a table. And I want to know which value appear most in that result field amoung all records. cheers Jack [EMAIL PROTECTED] There is nothing more rewarding than reaching the goal you've set for yourself -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] About Commit..
Use Oracle if you want transactions. Yet, it's going to be slow. Mysql is said to support transactions soon. - Original Message - From: Hassan Arteaga [EMAIL PROTECTED] To: Php (E-mail) [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 4:55 PM Subject: [PHP] About Commit.. Hi all!! I wants to implements transacctions with this code...What can I do ? $Conn=mysql_connect(myserver,myroot,mypass); $Query_ID1=mysql_db_query (App, update FamiliPic set pic_code=4 , $Conn); //only example $Query_ID2=mysql_db_query (App, update DesFam set pic_code=4 , $Conn); //only example ...other code Thanks !!! -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] outputting lines from file(file.php)
hm.. Is include () or require () what you are talking about or I am wrong? -- GP I have read in the lines from a php file into a $buff. Each line is set and the total corresponds to the number of lines in the file. But trying to ouput the lines results in blank lines. do I have to pass the lines through something like chop(), or html_spec_chars? How do you guys display php files to the screen in the HTML stream? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Max execution time for exec()?
Php has max exec time limit. If you increase that limit you wont face any problems with the functions/calls made by php including exec or system. :: set_time_limit (secs) Haven't seen anything to support this but it seems to me that exec() and such has maximum execution times. Can anyone verify this? chuck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] generating thumbnails
Find a good command line programm that does resing and use exec or system to do the thumbnailing Fopen fwrite exec. If you are on linux I suggest using NetPBM. - Original Message - From: Samuel Lüscher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 3:21 PM Subject: [PHP] generating thumbnails is there any way to resize images in php and save them to a new file? i want to write sort of a (db-powered) picture gallery that automatically creates thumbnails out of http-uploaded files. thanks for your advice venome -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RegEx Question
Hi, I have an ereg question::. $data = a big string , while (ereg (testing([^;]*);blah(.*),$data,$args)) { $this = $args[1]; $data = $args[2]; } What I wanna do ,obviously, is to get all the strings between 'testng' and 'blah' in an array. This will do it, yet when it wont work when special chars such \n exist between 'testing' and 'blah'. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] include() in a file incuded()
Replace frame src=onlineview.php3 with frame src=? echo $open;? Variable $open is passed to the included file automatically. Hi! I've been blocked by this tiny problem... I have a main.php file: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include (frameset.php); } ? The frameset.php looks like (omitting almost all the HTML): frameset rows=100,* border=0 frame src=onlineview.php3 frame src=footer.html /frameset In the onlineview.php file I need to use the $open URL defined before, but it isn't defined here. What am I doing wrong? How can I get $open's value from this file? Thanks! Jaime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]