Monday, May 24, 2010

Setting a vriable in php to a special character?

how can I set a variable in php to be a special character?

Setting a vriable in php to a special character?
$str=chr(27);





chr(charcode)





this would be an escape char, I am assuming you mean non printable chars.





You can search for ASCII charts to show a list of all character codes.
Reply:$var = "#"; //this kind of special character?


How can I make a PHP frame just of a login form that logs in to a forum on a different page?

I'm not sure what you are asking, but you can place any content inside another Web page via iframe:





%26lt;iframe src="login.php"%26gt;%26lt;/iframe%26gt;


What is a good, free PHP project management application?

I work in an office of 10 people, and have been charged with researching and implementing a project management system that will allow us to stop using voicemail, email and post-it notes to assign tasks to each other, and instead to consolidate our workloads in a system specifically designed for such a use.





The ideal system would be free, open source, and PHP. A Mac OSX executable is also possible. An excess of features is not necessary, and a simple interface would be best.





Any experience with these products or knowledgeable recommendations would be most appreciated.

What is a good, free PHP project management application?
The link below lists a variety of open-source PM products, including some that are PHP-based. Unfortunately I can't speak to their effectiveness, but that would depend on your particular situation anyway.





Besides the s/w, you might also want to consider some basic project management training for the office. You will probably find that this allows you to work more effectively even without any s/w, but also to get better value from any s/w. Taking a bit of training prior to investing time and effort into s/w might also help you understand what you really need.

stamen

Setting a vriable in php to a special character?

how can I set a variable in php to be a special character?

Setting a vriable in php to a special character?
use $var=chr(charcode)





if you mean non printable characters such as Chr(10)+chr(12) CR/LF combos


How many Kilometers does the 7.50 PHP minimum jeepney fare cover?

and how much for every additional kilometer after that?

How many Kilometers does the 7.50 PHP minimum jeepney fare cover?
7.50 for 5 km. then 1.00 every km.
Reply:5 kilometers
Reply:5
Reply:The P7.50 minimum fare of jeepneys is for the first four (4) kilometers.





"As of Jan '06 minimum fare is P 7.50 while the per kilometer additional fare is P 1.25. ..."


http://wikitravel.org/en/Metro_Manila





"The first 4 km is about Php 7.50 and every succeeding kilometer is an additional Php 1.25."


http://www.associatedcontent.com/article...
Reply:From PNA, the minimum fare for jeepneys is P7.50 for the first four kilometers plus P1.25 per succeeding kilometers.


http://www.gov.ph/news/default.asp?i=108...





Just recently published in Inquirer.net, public utility buses and jeepneys filed for separate petitions for provisional fare increases to cope with the rising prices of fuel.





Regular provincial buses are asking for a provisional increase of P1.25 for the first five kilometers and P0.15 for the succeeding kilometers. This will increase their fare from the current P8.50 to P9.75.





Airconditioned provincial buses are seeking a provisional increase of P0.35 per kilometer.





Meanwhile, Metro Manila regular buses are asking for a provisional increase of P1 for the first five kilometers and P0.25 for the succeeding kilometers, raising their fare from P8 to P9.





Metro Manila airconditioned buses are asking for a provisional increase of P2 for the first five kilometers and P0.35 for the succeeding kilometers, which will increase the fare from P10 to P12.
Reply:Here in Manila, it's 7.50 for the first 4 kilometeres. Then 1.25 every kilometer thereafter. In the provinces, I believe there is a different scheme.
Reply:5km
Reply:4


and 1 peso for every additional km.


How do I get the file name in PHP?

What is the script needed to get the current file name of the opened php file? Thanks.

How do I get the file name in PHP?
The constant __FILE__ returns something like:


c:\Inetpub\wwwroot\test\phpinfo.php





This actually is the full physical path of the file containing the line.





Combine it with basename function:


basename( __FILE__ )





returns:


phpinfo.php





Lastly, there is a variable called PHP_SELF in $_SERVER. You can access it as:


$_SERVER[ "PHP_SELF" ]





This gives virtual path of the file:


/test/phpinfo.php


Does anyone know anything about using Sokkit to install PHP on my computer?

If so, is there anything I need to know before installing it?

Does anyone know anything about using Sokkit to install PHP on my computer?
http://www.cebuplus.com/computer/442/sof...

sim cards