Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
74% Quality Score
Upvotes Received
22
Posts with Upvotes
19
Upvoting Members
21
Downvotes Received
9
Posts with Downvotes
9
Downvoting Members
5
8 Commented Posts
~36.2K People Reached
Favorite Tags

168 Posted Topics

Member Avatar for kireol

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 …

Member Avatar for diafol
0
2K
Member Avatar for rohoni

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.

Member Avatar for Semy
0
356
Member Avatar for engmizan

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.

Member Avatar for almostbob
0
358
Member Avatar for shea279

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]

Member Avatar for stwalcher
0
269
Member Avatar for babydol

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 …

Member Avatar for wonderlhily
0
2K
Member Avatar for k9shark

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 …

Member Avatar for diafol
0
228
Member Avatar for ebookstores

Do you have anything, even a return character or space before the <?php or after the ?> ?

Member Avatar for rififi
0
105
Member Avatar for Blacklister

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

Member Avatar for ketan_156
0
604
Member Avatar for jakesee
Member Avatar for kanjigirl

[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"; } …

Member Avatar for FlashCreations
-1
111
Member Avatar for gregoirelegros

[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]

Member Avatar for microspective
0
180
Member Avatar for andydeans

[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"; …

Member Avatar for andydeans
0
778
Member Avatar for takeshi

How is that any worse than copying peoples answer in hopes of stealing the solved count?

Member Avatar for kireol
0
262
Member Avatar for tekneck

[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 …

Member Avatar for kireol
0
205
Member Avatar for babydol

[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.

Member Avatar for kireol
0
128
Member Avatar for xuexue

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

Member Avatar for xuexue
0
100
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
95
Member Avatar for hno

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

Member Avatar for kireol
0
85
Member Avatar for sfrider0

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

Member Avatar for kireol
0
76
Member Avatar for ~Redous

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]

Member Avatar for ~Redous
0
134
Member Avatar for anu.reka85
Re: PHP

originally it stood for Personal Home Page That's since changed.

Member Avatar for samarudge
-8
177
Member Avatar for manojjena1982

[url]http://articles.webraydian.com/article1546-How_to_upload_large_file_in_php.html[/url]

Member Avatar for kireol
0
112
Member Avatar for the0ry

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 …

Member Avatar for kireol
0
652
Member Avatar for aneeka

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]

Member Avatar for kireol
0
289
Member Avatar for WaltP

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 '

Member Avatar for WaltP
0
138
Member Avatar for Morty222

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]

Member Avatar for arunss
0
180
Member Avatar for smartness

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?

Member Avatar for kireol
0
132
Member Avatar for samiq

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

Member Avatar for samiq
0
145
Member Avatar for achiman

[code=html] <A HREF="javascript:window.print()">Click to Print This Page</A> [/code]

Member Avatar for achiman
0
117
Member Avatar for moerpheus

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 …

Member Avatar for moerpheus
0
73
Member Avatar for Mike516

for one, you want quotes around $username [code=php] # mysql_query("UPDATE users SET username='$name' WHERE username='$thing"); [/code]

Member Avatar for kireol
0
94
Member Avatar for nats01282

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]

Member Avatar for kireol
0
93
Member Avatar for niro_fernando

all in 1 install [url]http://www.apachefriends.org/en/xampp.html[/url]

Member Avatar for Stefano Mtangoo
0
109
Member Avatar for veledrom

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]

Member Avatar for veledrom
0
164
Member Avatar for zeroge

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]

Member Avatar for zeroge
0
190
Member Avatar for dolu

[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 …

Member Avatar for dolu
0
2K
Member Avatar for SgtMash

[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]

Member Avatar for kireol
0
121
Member Avatar for psyb0rg

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]

Member Avatar for kireol
0
101
Member Avatar for Venom Rush

[code=php] while($i++<5) { sleep(1); } [/code] [url]http://php.net/manual/en/function.sleep.php[/url]

Member Avatar for Venom Rush
0
73
Member Avatar for mangel.murti

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.

Member Avatar for kireol
0
59
Member Avatar for ronaldpaul

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.

Member Avatar for cwarn23
0
233
Member Avatar for cane23

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]

Member Avatar for vaultdweller123
0
121
Member Avatar for Flufferman

use where once. separate with "and" select * from teammembers where name = 'jack handy' and team = 'purple cobras'

Member Avatar for daryll1
0
113
Member Avatar for theighost
Member Avatar for web3

[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 '

Member Avatar for kireol
0
108
Member Avatar for BzzBee

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.

Member Avatar for kireol
0
115
Member Avatar for aditi_19
Member Avatar for web3

my guess is you don't have a close php tag in your z_join_form.php post the code from that file.

Member Avatar for FlashCreations
0
151
Member Avatar for Lakshith

[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 …

Member Avatar for kireol
0
110
Member Avatar for dasatti

The End.