Jump to content

deecee2000

Members
  • Posts

    22
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

deecee2000's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Also you need to do this. From <form action="write.php" method="get"> To <form action="write.php" method="post"> Enjoy!!!
  2. Thanks for your all help. Now I got the point. So first time when I was inserting the value it is coming from POST. I used that "handleAddSlashes" function to escape that single quote. As my get_magic_quotes_gpc() is on, there is no any problem to insert in to DB. Now I was retrieving the value from DB, and using same function for escape that single quote. As get_magic_quotes_gpc() function work only for GET/POST/COOKIE. So it was not escaping the value which coming from DB. Therefore I need to do again addslashes with that value which coming from DB to insert in another table. So not this problem is fixed Thanks,
  3. Hello All, I have weired problem with addslashes. Please review this below code. function handleAddSlashes($string) { if(get_magic_quotes_gpc() == 1) { return $string; } else { return $string = addslashes($string); } } Currently "get_magic_quotes_gpc" is "on" at my server. When I tried to insert any value using this function it works well. i.e. $value = "Don't"; $test = handleAddSlashes($value); And INSERT this value in do DB by using INSERT query. Up to here there is no any problem. Now I want to read this value from DB and want to insert this value in another table. So "SELECT * FROM table1; $value = fetch_value from DB. Now inserting again this value into DB my using the same above function. $value = "Don't"; \\now this value coming from DB. $test = handleAddSlashes($value); And INSERT this value in do DB by using INSERT query. But it is saying the query fail. Even I insert this value without using this function, still it is giving the error. Please let me know how can I resolve this issue. Thanks in advance.
  4. Thnx Daniel0. I was looking the same one.
  5. Hey Rajiv, Thnx for quick response. I tried... $text = "This is First Test."; $newtext = wordwrap($text, 3, "-<br />\n", true); And the output is.. Thi- s- is- Fir- st- Tes- t.- So it not seems like expected output. Thanks,
  6. Hi All, I was looking some help to wrap my current text. $text = "This is First Test." I want to wrap this above text and expect below output. If I wrap by 3 characters then, Expected Output: Thi- s is Fir- st Tes- t. So let say if the word's character length is more than 3 characters than it will add "-" (Hyphen) and split the remaining characters in to next line. Any help will be appreciated. Thanks,
  7. It resolved by this. I have added.. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); And also checking that if $result is empty or not. Depends on that I am executing next scripts. Anyway thanks,
  8. Hi All, I'm using cURL to send request to other server. But I have one problem regarding this. Please refer this below code. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://some other server URL"); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $result = curl_exec($ch); curl_close($ch); print_r($result); In my php.ini file the max_execution_time = 30 When I executed this code, it is taking to long approx 3 minutes. And it doesn't saying any error message regarding script time execution. finally I'm getting nothing as output. So my question, is there any way that I can check script time and if it is more than 30 seconds, and still I not get any response, It will stop execution. Please put your advice here, thanks,
  9. Yes that's true... If I use below code in server2(remote), I can able to see output in my server1. server2 php file. echo $test = "ABC"; And if I include this file in my server, it is showing "ABC" as output. But my is there any way I can see output if I echo this $test variable in my server php file? In other words how can I access any variable from remote server to my server? Thanks,
  10. Hi All, I want to include other(remote) server's PHP file in my current server. I tried below command, but it is not working. include('http://www.server2.com/index.php'); My Server1 Settings are: allow_url_fopen = On allow_url_include = On I can't access any variable from server2 php file in current file. Can anyone please focus how do I handle this? Thanks in Advance. Deecee
  11. Hi All, I am using below GD environment in my php. I downloaded xampp on my linux box. I want to enable T1Lib Support in GD. Could anyone please let me know how I can do that? Array ( [GD Version] => bundled (2.0.34 compatible) [FreeType Support] => 1 [FreeType Linkage] => with freetype [T1Lib Support] => [GIF Read Support] => 1 [GIF Create Support] => 1 [JPG Support] => 1 [PNG Support] => 1 [WBMP Support] => 1 [XPM Support] => [XBM Support] => 1 [JIS-mapped Japanese Font Support] => ) Thnx in Advance.
  12. Thanks for your prompt reply. The Xampp comes with all php+apache and mysql. How do I remove only php from there? I tried this command # apt-get install php-imagick I got -bash: apt-get: command not found what is the error in above command? Thnx
  13. I want to install image magick. I made below changes in php.ini. ;extension=php_imagick.dll to extension=php_imagick.dll Restarted apache server. But still no luck. And how do I accomplish it with yum or apt-get. (I mean what is exact syntax or source?) Thnx.
  14. Hi All, I have installed xampp on my linux box. I want to recompile PHP by using ./configure command. The directory structure is below on my linux box. /opt/lampp/htdocs (Where all my project stored here) /opt/lampp/etc/php.ini /opt/lampp/etc/httpd.conf When I tried ./configure it is giving me an error "./configure: No such file or directory" Can anyone focus here how I recompile php with exact which commands. Your help will be highly appreciated. Thnx in Advance. Deecee2000
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.