- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 22
- Posts with Upvotes
- 19
- Upvoting Members
- 21
- Downvotes Received
- 9
- Posts with Downvotes
- 9
- Downvoting Members
- 5
168 Posted Topics
Anyone know of a way using php (no shell_execs), to convert a pdf to an image type of png, jpg,gif, or tif? In my existing app we are shelling out using ghostscript, pdftk, etc, and would like to switch this over to all inside of php. Yes, I've googled. a … ![]() | |
Re: AFAIK there's a few ways to do this. pay for a service for true SMS. use emails where available like [email]9895551212@tmomail.net[/email] [url]http://www.tech-recipes.com/rx/939/sms_email_cingular_nextel_sprint_tmobile_verizon_virgin/[/url] or use curl to sms from each providers web site where available. | |
Re: post the full error. it should have a php file name and line #. that's helpful. also, check config.php and make sure that it's not outputting some test code that you don't want. | |
Re: I'm not aware of any way to do this without using a library of some sort. Try google. Here's one I just found by googling [url]http://www.agencjawebowa.com/klienci/mp3/mp3.zip[/url] | |
Re: welcome to daniweb. please use code tags around your code from now on. to answer your question, i can only make assumptions on which field, how you want to insert it, etc. I'm assuming you are referring to $d and it's probably being saved as "array" so to fix this … | |
Re: I might first play with higher end javascript stuff such as prototype or jquery. Not much to learn with them, but it will make you a much more polished developer, and save you a TON of time. PHP5 is a good next step.. Ruby on rails is also good, but … ![]() | |
Re: Do you have anything, even a return character or space before the <?php or after the ?> ? | |
Re: you could 1) Write a java applet that does this 2) use javascript to "sleep" or count for a bit, then do an ajax load. I'd opt for #2 as java in a browser makes me angry | |
Re: any correctly coded class has a get and set for it's variables | |
Re: [url]http://php.net/manual/en/function.get-browser.php[/url] [code=php] <?php echo get_user_browser(); function get_user_browser() { $u_agent = $_SERVER['HTTP_USER_AGENT']; $ub = ''; if(preg_match('/MSIE/i',$u_agent)) { $ub = "ie"; } elseif(preg_match('/Firefox/i',$u_agent)) { $ub = "firefox"; } elseif(preg_match('/Safari/i',$u_agent)) { $ub = "safari"; } elseif(preg_match('/Chrome/i',$u_agent)) { $ub = "chrome"; } elseif(preg_match('/Flock/i',$u_agent)) { $ub = "flock"; } elseif(preg_match('/Opera/i',$u_agent)) { $ub = "opera"; } … | |
Re: [code=php] $friendsname = $_GET['friend']; echo "Hi ".$friendsname"; [/code] [url]http://us3.php.net/manual/en/reserved.variables.get.php[/url] I would then add it as a hidden variable in your form. [code=php] echo '<input type="hidden" name="friendsname" value="'.$_GET['friend'].'" />'; [/code] and [code=php] $message = 'User = '.$_POST['friendsname'].'\n'.'Age = '.$_POST['age']; mail('youremailaddy@example.com', 'New Friend info', $message); [/code] [url]http://us3.php.net/manual/en/function.mail.php[/url] | |
Re: [QUOTE=andydeans;1071702]hi, i was wondering of a simple way to generate a pdf & excel spreadsheet from a php form and mysql table with data in it? any help would be great. many thanks[/QUOTE] to export to xl just include the header and write HTML with tables [code=php] <?php $filename ="excelreport.xls"; … | |
Re: How is that any worse than copying peoples answer in hopes of stealing the solved count? | |
Re: [QUOTE=tekneck;1134564]I am trying to call a php script from a crontab sh script... I can get it to work if I hardcode each file, but I want to pass a variable to a single php file either from hardcoded calls in the sh script, or even better, by looping through … | |
Re: [url]http://flexigrid.info/[/url] [url]http://plugins.jquery.com/project/jqGridView[/url] [url]http://www.trirand.com/blog/[/url] [url]http://www.reconstrukt.com/ingrid/[/url] to name a few. This is really more of a javascript/jquery question than PHP, but that should help get you started. | |
Re: This will do what you want. table and when you click it, it becomes editable. [url]http://trirand.com/blog/jqgrid/jqgrid.html[/url] click on row editing | Using Events | |
Re: here's my take on them. Once an exception is thrown, the rest of the code in the try will not be executed. It will then go to your catch (you can have more than 1 catch and define difference types, but is rarely done) PHP will take the fatal error … | |
Re: the proper way to do this is with SOAP [url]http://php.net/manual/en/book.soap.php[/url] or XMLRPC [url]http://phpxmlrpc.sourceforge.net/[/url] both give you the ability to call functions on remote servers | |
Re: google turned up a few [url]http://www.woyano.com/view/474/How-To-Access-Gmail-With-PHP[/url] [url]http://sourceforge.net/projects/phpgmailapi/[/url] etc | |
Re: you had a misplaced parenth. this will work better [code=php] if (isset($_POST['username']) && $_POST['password'] ) { if ($_POST['username'] == 'admin' || $_POST['password'] == 'admin') { $password = $_POST['username']; $password = md5($_POST['password']); } else { $username = $_POST['username']; $password = $_POST['password']; } [/code] | |
| |
Re: [url]http://articles.webraydian.com/article1546-How_to_upload_large_file_in_php.html[/url] | |
Re: use a session if you want random per person. if you want random per site....here's the concept. file_put_contents, file_get_contents, array(), serialize, unserialize, rand, in_array, flock pretty much all of the functions you'll need. all found on php.net - get a random int with 1 and # of images corresponding to … | |
Re: you can draw them yourself, use a php library like gdchart [url]http://devzone.zend.com/article/3774[/url] or jpgraph [url]http://www.aditus.nu/jpgraph/[/url] or do them in jquery [url]http://www.reynoldsftw.com/2009/02/6-jquery-chart-plugins-reviewed/[/url] | |
Re: pretty sure %22 is the code for quote. try changing your code to use double quote instead of single tick on the url for the image. " instead of ' | |
Re: There's a few ways to do this: [url]http://www.php.net/manual/en/function.substr.php[/url] [code=php] $fields = substr($fields,0,strlen($fields)-1); [/code] or implode [url]http://us3.php.net/manual/en/function.implode.php[/url] | |
Re: just brainstorming here, but can't you just create a class and have an "add subclass()" method that does a new subclass() and sets a class variable to point to it? then anytime you want to create a new level just call that class? | |
Re: if you are that lazy that you dont want to type out each include/require, or use autoload, then write a function that Reads the directory [url]http://php.net/manual/en/function.readdir.php[/url] include each file that has the extension you want [url]http://us.php.net/manual/en/function.require-once.php[/url] which is basically what autoload does | |
Re: [code=html] <A HREF="javascript:window.print()">Click to Print This Page</A> [/code] | |
Re: there's a ton of ways to generate a pdf in php. it really depends on what you want to do with your pdf. do you want to load pre-existing pdfs, fill a form on the page? do you want to create pdfs from scratch? do you want to create a … | |
Re: for one, you want quotes around $username [code=php] # mysql_query("UPDATE users SET username='$name' WHERE username='$thing"); [/code] | |
Re: you could install wordpress and allow them to do it with little or no coding. [url]http://wordpress.org/[/url] or do a jquery wysiwyg editor if you wanted it to be more custom [url]http://plugins.jquery.com/taxonomy/term/515[/url] | |
Re: all in 1 install [url]http://www.apachefriends.org/en/xampp.html[/url] | |
Re: certain characters are used and reserved in URLs. You need to url encode the url before it's sent with urlencode() [url]http://php.net/manual/en/function.urlencode.php[/url] | |
Re: it might not be the way you want to go, but if it were me, I'd be using jquery and a jquery plugin to do that. here's one that works perfectly [url]http://www.reynoldsftw.com/2009/03/live-email-validation-with-jquery/[/url] | |
Re: [code=php] <?php echo "into php"; $result = shell_exec ('killall -9 sshd-sim'); //sshd-sim is the process to be killed echo $result; echo "out of php"; ?> [/code] that will give you the output and should help you debug. my guess is www-data doesnt have access to kill that process and needs … | |
Re: [CODE=PHP] if ($cvalue == "Germany" || $cvalue == "England" || $cvalue == "latvia" || $cvalue == "Africa") { echo "Do something" ; } [/CODE] The or operator in php is 2 pipes || [url]http://www.w3schools.com/PHP/php_operators.asp[/url] | |
Re: print_r($_REQUEST); will give you everything you should want, but if not, try out [url]http://www.php.net/manual/en/reserved.variables.httprawpostdata.php[/url] | |
Re: [code=php] while($i++<5) { sleep(1); } [/code] [url]http://php.net/manual/en/function.sleep.php[/url] | |
Re: short answer, yes. However, you'll have to store all of your items and user logins in a php file, and that's just ugly if you want to change/update anything. | |
Re: is the query failing? is the # of rows returned not == 1? have you tried echoing the sql and running it in a sql client to see what happens? also, "my code doesnt work" is hard to debug. Try to be more specific. | |
Re: Looks like you probably have an extra = after password try this [code=php] $sql="SELECT * FROM $tbl_name WHERE id_no='$username' and password='$password'"; [/code] | |
Re: use where once. separate with "and" select * from teammembers where name = 'jack handy' and team = 'purple cobras' | |
| |
Re: [QUOTE=web3;1092688]How to replace one backslash with two? This code doesn't work: [CODE] $msg = str_replace("\","\\",$msg); [/CODE] PHP will two backslashes insert into database as one. If is there one backslash it will return a parse error.[/QUOTE] change your double quotes " to single ticks ' | |
Re: You could serialize $_SESSION [url]http://php.net/manual/en/function.serialize.php[/url] encode it call a get or post on the other site with the data. then unserialize the data. That would do exactly what you want to. | |
Re: [url]http://lmgtfy.com/?q=html+editable+combo+box[/url] | |
Re: my guess is you don't have a close php tag in your z_join_form.php post the code from that file. | |
Re: [QUOTE=Lakshith;1088497]Im my form to send emails I have a button called "Save".When I click the button I want to send the email as well as insert data into my database(values of sender,receiver).I can send th email but i dont know how to insert the data into the database at the … | |
Re: [url]http://geolite.maxmind.com/download/worldcities/[/url] |
The End.