[PHP] how to learn php
hello i have been trying to learn php. what is the best approach to learning php for someone who has no programming experience? i am very familiar with html, xhtml, and css. i'm not an idiot when it comes to using computers. i have bought several books and have subscribed to a couple of the php mailing lists, but i feel that i could be doing more to learn php. what approach (and steps) did you take in learning this really cool scripting language? should i look into taking classes or stick with an autodidact approach? any advice and/or opinions would be greatly appreciated. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] UTF-16 strings, is there a simple way of using them?
So, I have to handle data that is UTF-16 encoded. No ifs ands or buts. Network messages on the service I'm communicating with sends and recieves UTF-16 encoded strings only. After taking a look at the Multibyte String functions, I don't know how much they will help me, though character encoding is a bit beyond me (For now). So what simple way is there to take a UTF-16 message and read it, analyze it, get information from it? -- llundi0v -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can I convert UTF-8 strings into UTF-16
I tried the multi byte functions but those failed. So how cna I convert UTF-8 to UTF-16? -- llundi0v -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP refuses to look in the areas I tell it to for its php.ini file, why?
Here is my setup Windows 2000 with latest service packs One apache 1.3 install, but two services running off it with two different configuration files. One file is for PHP4 and one is for PHP5, and that works like a charm. Oh, both PHP's are running as SAPI modules for Apache, not as CGI. I'm using both the LoadModule and AddModule directives. PHP4 is in c:/php and PHP5 is in c:/php5. The issue? Neither PHP's seem to be able to find php.ini and for some really stupid reason, neither of the PHPs seem to really care. I don't even know how PHP is running without its php.ini file, especially since its able to load extensions even though, according to phpinfo, it's trying to find extensions in directories that don't even exist! I've added both php's directories into my PATH enviroment variable in windows, I've added SetEnv PHPRC C:/php in httpd.php4.conf (obviously the apache conf file for php4) and that does nothing for PHP4. I haven't tried anything for PHP5 because on the immediate side of things, its not important. PHP4 is looking for php.ini in c:\WINNT, and its not there. There is nothing of PHP's files inside any windows directory, no dlls, no ini files, nothing. Everything is contained in PHP's own directory, which, so it seems, is reading it partially. From httpd.php4.conf - here are the config items directly related to php, in the order in which they apear: LoadModule php4_module C:/php/php4apache.dll AddModule mod_php4.c SetEnv PHPRC C:/php AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps The Apache PHP4 config works perfectly, php is able to run, but like I said, phpinfo shows nothing. Now while I can't show the output of phpinfo directly off the server, http://www.psikon.info./phpinfo.html is a copy. This is of course the PHP4 apache service outputting this. Any help anyone could offer would be GREATLY appreciated, Thanks -- llundi0v -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with MySQL String limits?
In a script I have an update query adding on to a LONGTEXT field in my database. Strangely it will no longer work after seemingly random string lengths. So far, one row stopped adding at 440 bytes and another at 1049 bytes. mysql_query("UPDATE dod_news SET Comments='$comments', NumComments=NumComments+1 WHERE Num = $Num"); Num is correct, but strangely it doesn't do ANY of the query when this occurs. I have no idea why it started doing this but any help would be appreciated.