jazzman1
Staff Alumni-
Posts
2,713 -
Joined
-
Last visited
-
Days Won
12
Everything posted by jazzman1
-
Can you show us the form, please? Maybe you have a hidden field with a value 1 somewhere in the form? Just in case the symbol "=" is an assignment not comparison "==" operator in php
-
The delete sql statement does not execute according your code above: What you want to say whit that one? if ($delete = '1' ){ $order = mysql_query("DELETE FROM booking WHERE bookingid ='$eventid' LIMIT 1"); }
-
Wow...... good for you buddy Welcome aboard.
-
I am very surised how you got a correct result with this notation because the json_decode function turns a json object into a php object. So, to get a corect result you need to use a proper php object syntax. Can you show me what did you test?
-
Check the data variable and post out the result. for($x=0;$x<count($file_array);$x++){ $file = fopen($file_array[$x],"rb"); $data = fread($file,filesize($file_array[$x])); fclose($file); // here echo '<pre'>.print_r($data, true).'</pre'>; exit; $data = chunk_split(base64_encode($data)
-
Paul, that's wrong b/s you have individual json objects names. <?php $data = '{"result":"success","data":{"high":{"value":"207.00000","value_int":"20700000","display":"$207.00","display_short":"$207.00","currency":"USD"},"low":{"value":"172.13000","value_int":"17213000","display":"$172.13","display_short":"$172.13","currency":"USD"},"avg":{"value":"190.06255","value_int":"19006255","display":"$190.06","display_short":"$190.06","currency":"USD"},"vwap":{"value":"189.49989","value_int":"18949989","display":"$189.50","display_short":"$189.50","currency":"USD"},"vol":{"value":"105772.39701647","value_int":"10577239701647","display":"105,772.40\u00a0BTC","display_short":"105,772.40\u00a0BTC","currency":"BTC"},"last_local":{"value":"205.97101","value_int":"20597101","display":"$205.97","display_short":"$205.97","currency":"USD"},"last_orig":{"value":"159.39420","value_int":"15939420","display":"159.39\u00a0\u20ac","display_short":"159.39\u00a0\u20ac","currency":"EUR"},"last_all":{"value":"207.57907","value_int":"20757907","display":"$207.58","display_short":"$207.58","currency":"USD"},"last":{"value":"205.97101","value_int":"20597101","display":"$205.97","display_short":"$205.97","currency":"USD"},"buy":{"value":"205.55333","value_int":"20555333","display":"$205.55","display_short":"$205.55","currency":"USD"},"sell":{"value":"205.97101","value_int":"20597101","display":"$205.97","display_short":"$205.97","currency":"USD"},"item":"BTC","now":"1365510862857980"}}'; $obj = json_decode($data); echo '<pre>'.print_r($obj->{'data'}->{'avg'}, true).'</pre>'; Result:
-
WAMP server won't go online: Help
jazzman1 replied to talk2toyin's topic in Other Web Server Software
Every server sould have errors log files and the microsoft product called windows also. Just find the error logs and post out them here. -
How to code the insertion data based on table
jazzman1 replied to shebbycs's topic in PHP Coding Help
So, what results did you get? -
How to code the insertion data based on table
jazzman1 replied to shebbycs's topic in PHP Coding Help
Yes, it's possible. Have you ever heard about databases? -
The pictures should be saved in /user/user_bilder/ or user/user_bilder/ ?
-
Solved guys While I was compiling php 5.4 from a source code, just forgot to enable the pdo_mysql modul into it. it does not require in cake 1+, but it does for cake 2+.
-
If you want to store a image to database you need set the field "Picture", as a BLOB type.
-
Any ideas guys The cake version is 2+ ? No problem with the versions 1.+ jazz....
-
I found a solution without disabling SELinux. Here is it: [root@centos-box jazzman]# /usr/sbin/getsebool httpd_can_sendmail httpd_can_sendmail --> off [root@centos-box jazzman]# setsebool -P httpd_can_sendmail 1 [root@centos-box jazzman]# /usr/sbin/getsebool httpd_can_sendmail httpd_can_sendmail --> on Hope this helps someone! jazz..
-
Yep, I disabled SELinux and now everything is just fine Solved.
-
No, the error_reporting shows nothing. I think that it's a server security issue and coming from selinux in centos. Let me check in the error's log in the server, something happened here.
-
Hey folks, yesterday I decided to upgrade my CentOS machine from 6.3 to 6.4 and now my php mail function stoped to work. What I've tested so far: 1. If I try to send a message to my remote mail server I've got a false result. <?php phpinfo(); if ( function_exists( 'mail' ) ) { echo 'mail() is available' . '<br />'; } else { echo 'mail() has been disabled'.'<br />'; } $to = 'myEmail@gmail.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: jazzman@centos-box.localdomain' . "\r\n" . 'Reply-To: jazzman@centos-box.localdomain' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); if(mail($to, $subject, $message, $headers)) { echo "mail send ... OK"; } else { echo "mail send ... ERROR!"; } Results: 2. I checked the path to the default mail client - sendmail and it is correct: 3. Then I try to send a message to my remote server through a BASH script and the sendmail works fine: // to my remote mail server date | sendmail -v myEmail@gmail.com // to my local mail server date | sendmail -v jazzman@centos-box.localdomain Results: For some reason the mail function does not work to me! Thanks, jazz....
-
<?php $FILE='A11AA9AA7A'; preg_match_all('/[\d]+/', $FILE, $match); echo '<pre>'.print_r($match, true).'</pre>';
-
File Upload - Image Resize and Saves in Image Folder
jazzman1 replied to jillianmarie's topic in PHP Coding Help
Kevin, you are right Hey Paul, sorry buddy...my apologies.- 14 replies
-
- file upload
- upload
-
(and 3 more)
Tagged with:
-
File Upload - Image Resize and Saves in Image Folder
jazzman1 replied to jillianmarie's topic in PHP Coding Help
Yes, because he doesn't understand how php works, the same like you (I don't be rude) Don't forget - php is a server side language and need to follow the rules of the server before doing anything with javascript.- 14 replies
-
- file upload
- upload
-
(and 3 more)
Tagged with:
-
File Upload - Image Resize and Saves in Image Folder
jazzman1 replied to jillianmarie's topic in PHP Coding Help
Ok, you are English, so tell me how you understand that question?- 14 replies
-
- file upload
- upload
-
(and 3 more)
Tagged with:
-
File Upload - Image Resize and Saves in Image Folder
jazzman1 replied to jillianmarie's topic in PHP Coding Help
Yes, that's true.....but before to start that process the image has to be uploaded into the server.- 14 replies
-
- file upload
- upload
-
(and 3 more)
Tagged with:
-
File Upload - Image Resize and Saves in Image Folder
jazzman1 replied to jillianmarie's topic in PHP Coding Help
Really? What do you want to say me, that the server does care of the image dimensions?- 14 replies
-
- file upload
- upload
-
(and 3 more)
Tagged with:
-
The one from the Linux console, you need to write down the content into a new file on your server and then to handle it with php.
-
Are you able to write this content down into your own file?