Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
2
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~12.2K People Reached
Favorite Forums
Favorite Tags

24 Posted Topics

Member Avatar for akbar ali butt

Hi akbar ali butt, Without knowing further details, it's hard to say if it's possible or not. It is certainly possible to open, create and modify PDF's using PHP's built in PDF functions. You may benefit from reading through the PDF functions that PHP offers and deciding for yourself if …

Member Avatar for muskaan.pari22
0
7K
Member Avatar for wrstrong

Hi wrstrong, Looks like someone else is having the same problem you are... This is the thread that was produced for review: [URL="http://www.webmasterworld.com/php/3304270.htm"]http://www.webmasterworld.com/php/3304270.htm[/URL] And here is the final result PHP that was used to manipulate the flat file database: [CODE] <?php $selLine = $_GET['id']; $delType = $_GET['type']; $file = "store/" …

Member Avatar for sifatjnu
0
2K
Member Avatar for mithesh

Hi mithesh, Could you expound on your question? [LIST] [*]Will you be pulling information from your portal into your outlook calendar? [*]Will you be synchronizing information between the outlook calendar and your web portal? [*]Are you using a collaboration server of any kind with outlook? [*]Will this solution be implemented …

Member Avatar for dskanth
0
167
Member Avatar for nicolechuah

Hi nicolechuah, Try this out: [CODE]<html> <head> <script type="text/javascript"> function insRow() { var x=document.getElementById('myTable').insertRow(1); var y=x.insertCell(0); var a=x.insertCell(1); var b=x.insertCell(2); var d= '<input type="button" value="Delete" onclick="deleteRow(this)">'; var e= '<input type="text" id="answer" />'; var f= '<input type="text" name=num; id="answer1" />'; y.innerHTML=e; a.innerHTML=f; b.innerHTML=d; } function deleteRow(r) { var i=r.parentNode.parentNode.rowIndex; document.getElementById('myTable').deleteRow(i); } …

Member Avatar for Shuel
0
141
Member Avatar for chrelad

Hi everyone, I made a very quick and dirty PHP speed testing system ([URL="http://chrelad.awardspace.com/speed"]chrelad.awardspace.com/speed[/URL]) and was looking for feedback on different tests that I could add to it. I've only got two tests going right now: Comparison of string concat/replace methods [LIST] [*]Heredoc with interpolation [*]Double quote with interpolation [*]Double …

Member Avatar for chrelad
0
172
Member Avatar for rnr8

Hi rnr8, Instead of using the DOM to change the backgroundImage property, try changing the className property of the element and creating a stylesheet rule for the class name. [B]JavaScript:[/B] [CODE]el.className = 'hover';[/CODE] [B]Stylesheet:[/B] [CODE] li.hover{ background-color:#f90; font-weight:bold; text-decoration:underline; } [/CODE] Remember though, it's better to change the styles of …

Member Avatar for JScriptRUs
0
717
Member Avatar for Arun.N

Hi Arun.N, Sounds like your looking for cURL... Have a look at the [URL="http://us2.php.net/manual/en/ref.curl.php"]cURL documentation[/URL] and see what you think. cURL + regular expressions (preg_match_all) = exactly what your looking for. I've written a few of these "crawlers" myself, so I'll include some foundational code for a very a simple …

Member Avatar for moobaa
0
168
Member Avatar for jackakos

It may help to see what is being passed in the POST array when you click the next button. I would throw the following code in where you have your comment for creating a new array with the checked ID's: [code=php]print_r($_POST['dname']);[/code] That will get you something like this after you …

Member Avatar for jackakos
0
171
Member Avatar for Juliopp

First off, it depends on quite a few things... But this is how I do it and requires some prerequisites. 1. Should work on Windows/Linux/Mac 2. Install ClamAV 3. Make sure FreshClam is working and running 4. Read up on your version of ClamAV's command line arguments and how to …

Member Avatar for cwarn23
0
174
Member Avatar for lifeworks

Hi lifeworks, Look into [URL="http://us3.php.net/curl"]cURL[/URL] (Client URL library). It allows you to connect to HTTP resources via a GET/POST request. It has tons of options that you can customize for each request, but it should definitely be able to do what you need it to do. Hope that helps, Chrelad

Member Avatar for chrelad
0
73
Member Avatar for justted

Hi justted, Could you elaborate on what exactly the problem is? All I'm getting as far as a question is: "How do I add the image map HTML to the global.inc.php file?" Am I right, and if so: [U]global.inc.php[/U] [CODE] <?php $map = <<<END <img name="headerbanner0" src="headerbanner.gif" width="950" height="125" border="0" …

Member Avatar for mgwalk
0
149
Member Avatar for Papa Awortwe

Hi Papa Awortwe, Looks like you can do it a couple ways... The way I would recommend (mostly because I use it and I find it easier) is as follows: [B][U] The first page:[/U][/B] [CODE]<?php session_start(); $_SESSION['my'] = 'blue'; echo '<a href="show_session_var.php">Click here to go to next page</a>'; ?>[/CODE] [B][U] …

Member Avatar for Shanti C
0
92
Member Avatar for cstuart08

That's kind of a tough question and it certainly depends on a number of variables. Here are a few sites I visit more often: [B][U]Semantics[/U][/B] [URL="http://www.w3c.org"]http://www.w3c.org[/URL] [URL="http://www.webdevout.com"]http://www.webdevout.com[/URL] [URL="http://digg.com/search?section=all&s=html"]http://digg.com/search?section=all&s=html[/URL] [B][U]CSS[/U][/B] [URL="http://digg.com/search?section=all&s=css"]http://digg.com/search?section=all&s=css[/URL] [URL="http://www.csszengarden.com"]http://www.csszengarden.com[/URL] [URL="http://www.positioniseverything.com"]http://www.positioniseverything.com[/URL] [URL="http://www.fiftyfoureleven.com/weblog/web-development/css"]http://www.fiftyfoureleven.com/weblog/web-development/css[/URL] [B][U]Browser Compatibility[/U][/B] [URL="http://www.quirksmode.org/"]http://www.quirksmode.org/[/URL] [B][U]Ajax[/U][/B] [URL="http://www.ajaxian.com"]http://www.ajaxian.com[/URL] [URL="http://developer.mozilla.org/en/docs/AJAX:Getting_Started"]http://developer.mozilla.org/en/docs/AJAX:Getting_Started[/URL] [URL="http://digg.com/search?section=all&s=ajax"]http://digg.com/search?section=all&s=ajax[/URL] Hope some of these help :) If you need sites …

Member Avatar for Shanti C
0
107
Member Avatar for veledrom

Hi veledrom, This is what I would do: [code]<?php while($array = mysql_fetch_assoc($result)) // Iterate through list of students { $id = $array['id']; $name = $array['name']; if($_POST['student_' . $id]) $class = 'current'; ?> <tr> <td><?php echo $id; ?></td> <td><?php echo $name; ?></td> <td><input type="submit" name="student_<?php echo $id; ?>" value="Details"></td> </tr> <?php …

Member Avatar for veledrom
0
99
Member Avatar for orr16875

Hi orr16875, Security has nothing to do with it as far as I can tell... We are just refering to the DOM elements incorrectly. Check it out, changed parts are bolded: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" …

Member Avatar for Fest3er
0
154
Member Avatar for Dsiembab

Hi Dsiembab, [QUOTE]Should I save these files without the extension and add the extension only when called?[/QUOTE] It shouldn't really make a difference if you keep them out of the web root and set appropriate permissions on them. [QUOTE]Should I put these uploaded files in my cgi-bin?[/QUOTE] No, put them …

Member Avatar for Dsiembab
0
128
Member Avatar for martinkorner

Hi martinkorner, Try using strpos along with fread. Aside from that, you could read in a line of the file at a time: [CODE] <?php $handle = @fopen("/tmp/inputfile.txt", "r"); $token = '<!-- STOP HERE -->'; if ($handle) { $superbuffer = array(); while (!feof($handle)) { $buffer = fgets($handle); if($buffer == $token) …

Member Avatar for mario.stoica
0
173
Member Avatar for avmaza

Hi avmaza, It appears you've stumbled onto Microsoft's proprietary filters. This is fine for Internet Explorer browsers, but anything else is going to choke on this CSS rule and spit out the results in the normal orientation. Here is an interesting way to do it... Works at least in IE …

Member Avatar for chrelad
0
223
Member Avatar for halifaxer

Hi halifaxer, Great question... Using cURL, I came up with this: [CODE] <?php $ch = curl_init('http://www.cheapsmells.com/viewProduct.php?id=3978'); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); $cr = curl_exec($ch); preg_match_all('/([ a-z]+) (&pound;)([0-9]+\.[0-9]+)/i',$cr,$cp); print_r($cp); ?> [/CODE] When the script is run, you get this output: [CODE] Array ( [0] => Array ( [0] => Original Price &pound;36.00 [1] => …

Member Avatar for chrelad
0
69
Member Avatar for rogelioz

Hi rogelioz, I've tried the code you posted and found that $dates[1][0] is not set. That is why you are getting a wierd date. I manually set the $date2 variable to 'Nov 7, 2007' and got the correct results. [CODE] <?php $date = 'Nov 7, 2007'; echo date('Y-m-d', strtotime($date)); //$date2 …

Member Avatar for rogelioz
0
105
Member Avatar for Atticus

Hi Atticus, Couple things you can check: [LIST=1] [*]Open the site/page in IE/Firefox and check for JavaScript errors [*]If #1 produces no errors, add a simple alert('Hello') to a section of the lightbox script that runs first [*]If it doesn't run, and the alert resides in a function, make sure …

Member Avatar for Atticus
0
102
Member Avatar for manish_gajjar

Hi nav33n, May I suggest using modified preorder tree traversal for the tree handling logic. It has worked wonders for me in every instance of tree traversal I have encountered. Take a look and see if you can put it to use for your situation: [URL="http://www.sitepoint.com/article/hierarchical-data-database/"]http://www.sitepoint.com/article/hierarchical-data-database/[/URL] Have fun :)

Member Avatar for nav33n
0
215
Member Avatar for ManOnScooter

Hi ManOnScooter, In order to make certain that your results are displayed in order, include a date field or ID field in the order clause after the name: [CODE]$sql = "select id, name from student_adv WHERE name LIKE '%$search%' or name like '%$w1%' or name like '%$w2%' order by name, …

Member Avatar for r4ccoon
0
111
Member Avatar for joshua.tilson

Hi joshua.tilson, It appears that this can be streamlined even more, however, you will have to put some safegaurds in to make sure there is no fowl play (which should be done anyway). This is what it could be: [CODE]<?php require((preg_match('/(contacts|about|home)/i',$_GET['p'])) ? $_GET['p'] : 'fowlplay.php'); ?>[/CODE]

Member Avatar for chrelad
0
111

The End.