I was writing some commented PHP classes and I stumbled upon a problem. My name (for the @author tag) ends up with a ș (which is a UTF-8 character, ...and a strange name, I know).
Even though I save the file as UTF-8, some friends reported that they see that character totally messed up (È™). This problem goes away by adding the BOM sign...
so here's the problem
I have one form, it outputs search results after submit, with this URL
http://localhost/thi/search/results?keyword=barma&search=1&minprice=nomin&maxprice=nomax&minroom=nomin&maxroom=nomax&minyear=nomin&maxyear=2010
Now I have another form, which is supposed to filter the results from ...
Hi all:
I am sending info to target email via PHP native mail() method right now. Everything else works fine but the table part troubles me the most. See sample output :
Dear Michael Mao :
Thank you for purchasing flight tickets with us, here is your receipt :
Your tickets will be delivered by mail to the following address :
Street Ad...
I heard a rumor that when inserting binary data (files and such) into MySQL, you should use the bin2hex() function and send it as a HEX-coded value, rather than just use mysql_real_escape_string on the binary string and use that.
// That you should do
$hex = bin2hex($raw_bin);
$sql = "INSERT INTO `table`(`file`) VALUES (X'{$hex}')";
//...
Hi
What is abstract class in php ?
where it can be used?
...
I would like to know what existing PHP libraries/classes have you used for your REST+JSON projects.
If I need to create a wrapper for social engines API such as Facebook and/or Twitter API, what existing PHP REST JSON architecture do you recommend?
JSON CONSUMING DEVICE (not PHP based) <--> PHP REST SERVICE <--> SOCIAL API
...
How do I allow the marquee tag in html purifier http://htmlpurifier.org/ I read the docs but I couldn't find anything. Does any one have a clue?
...
Hello,
I recently created a big portal site. It's time for putting it to test.
How do you guys test a site rigorously?
What are the ways and tools for that?
Can we sort of mimic hundreds of virtual users visiting the site to see its load handling?
The test should be for both security and speed
Thanks in advance.
...
Does such scheme exist? If yes, where can I find it?
...
HI there!
I've run into some problem while learning to combine .sh files and PHP. I've create a file test.sh and in that file I call a PHP file called test.php.
If I double click on the .sh file then it runs perfectly but when I try to run it from the terminal I get "command not found". I'm in the exact folder as my .sh file but it won...
I have the following output (via link) which displays the var_dump of some XML im generating:
http://bit.ly/aoA3qY
At the very bottom of the page you will see some output, generated by this code:
foreach ($xml->feed as $entry) {
$title = $entry->title;
$title2 = $entry->entry->title;
}
echo $title;
echo $ti...
Let me start with the things that I did and how am I using some things to get results
I have set up modular structure as:
application/
/configs
/layouts
/models
/modules
/users
/profile
/frontend
/backend
/controllers
/views
.......
hello
im trying to make a simple page with search engine. i read, that if i want to implement autocomplete/autosuggest with form, i have to use ajax. thats ok for me. there are a lot solutions on the intenret, but unfortunetly all of them is the same script :/ and thats fine for me :) but i want to go further. i want to show autosuggest...
Hi There,
I am working with the API from flickr trying to get my photosets into my site, my problem is I am wanting to only show the primary image for each set but current it is showing all the images from each of my sets. Can anyone see where I am going wrong?
<?php
$f = new phpFlickr(FLICKR_API_KEY);
$f->enablecache("fs", $...
I use FPDF to creat PDF from PHP and i have a problem with the Write() function
i use the following code and i want to indent the text block not just the first row:
$pdf->SetX(60);
$pdf->Write(5,'' . str_repeat( ' This is a test of setX.', 30 ));
but as you can understand it's just indents the first row, any idea on how to move the w...
Hi can anyone help me how to select a specific div from the content of a webpage.
Let's say i want to get the div with id="wrapper_content" from webpage http://www.test.com/page3.php.
My current code looks something like this: (not working)
//REG EXP.
$s_searchFor = '@^/.dont know what to put here..@ui';
//CURL
$ch = curl_init()...
Hi guys I've shifted to using the zend framework for reading messages from an inbox however when reading some html messages I see a lot of weird charcters like:
don’t
looks like
don=92t
Plus other weird characters like =20 .. whats going on? Is it an ecoding issue? How do I fix it?
...
Hello,
Does google app engine support PHP? I mean can I put my PHP projects there so that they are executable there?
Thanks
...
Is it possible to automaticly download xml files from one server to another server on a daily basis with PHP?
The goal is to create a webapplication in CakePHP which makes use of an xml report that comes from a online accountingserver.
So it can be done using a cronjob? But is cron supported with PHP?
Where can i configure that cronjo...
Hi this is my site,
mysite
I want to move my site from HTTP TO HTTPS ,
Also i want to redirect my site when user type
1.IF THEY TYPE LIKE happy.in To https://happylife.in
2.IF THEY TYPE LIKE http://happy.in To https://happylife.in
3.IF THEY TYPE LIKE www.happy.in To https://happylife.in
What things i have to ...