<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
<title>W3Exchange : Script Forums : PHP</title>
<link>http://www.w3exchange.com</link>
<description> W3Exchange</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title>How to upload and resize images in PHP in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=7954#7954</link>
<guid isPermaLink="false">7954@http://www.w3exchange.com</guid>
<description>Topic: How to upload and resize images in PHP

Message: Hi,One of the most common practises in PHP coding with GD is to create a thumbnail image of an uploaded file. In this tutorial we will examine an image upload form, look at PHP's file upload system, and use an uploaded image to create a small thumbnail image.Please note this requires you to use the GD2 library. You can normall allow it by changing your php.ini by removing the ; in front of extension=php_gd2.dll.PHP's built in system for uploading files allows us to create an HTML form that uses the &#34;file&#34; element. This is a type of HTML input tag that tells a user's web browser to display a file selection dialogue, and to include any selected file with the data sent along with a form.
Code::&#60;form action="index.php" method="POST" enctype="multipart/form-data"&#62; 
    &#60;input type="hidden" name="MAX_FILE_SIZE" value="200000"&#62;"; 
    &#60;input type="file" name="imagefile"&#62; 
    &#60;input type="submit" name="upload" value="Upload Image"&#62; 
&#60;/form&#62;
Thanks,Fuad.
</description>
<pubDate>Mon, 26 May 2008 02:52:23 -0700</pubDate>
</item>
<item>
<title>Sending email using PHP Com functions in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=7942#7942</link>
<guid isPermaLink="false">7942@http://www.w3exchange.com</guid>
<description>Topic: Sending email using PHP Com functions

Message: Hi,COM is a technology which allows the reuse of code written in any language (by any language) using a standard calling convention and hiding behind APIs the implementation details such as what machine the Component is stored on and the executable which houses it. It can be thought of as a super Remote Procedure Call (RPC) mechanism with some basic object roots.The ScriptOpen you favorite text editor and put the following lines:
Code::&#60;?PHP

$objApp = new COM("Outlook.Application");

$myItem = $objApp-&#62;CreateItem(olMailItem);

$a=$myItem-&#62;Recipients-&#62;Add("admin@example.org");

$myItem-&#62;Subject="This is a test";

$myItem-&#62;Body="This is a Body Section now.....!";

$myItem-&#62;Display();

$myItem-&#62;Send();

?&#62;
Thanks,Fuad
</description>
<pubDate>Sat, 24 May 2008 03:16:20 -0700</pubDate>
</item>
<item>
<title>PHP code and HTML code in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=7878#7878</link>
<guid isPermaLink="false">7878@http://www.w3exchange.com</guid>
<description>Topic: PHP code and HTML code

Message: PHP code is not technically executed inside an HTML document. PHP is a programming language, HTML is a markup language, and the two should not cross.To accurately implement a site using php, you shouldn't need to have an HTML or HTM file! Your files should be PHP (unless you need others such as CSS and JAVASCRIPT etc).&#160; Each php file should begin with a php tag, and end with a php closing tag. Only one of each. I see many websites which just open php tags, run the code, echo the html and close the php tags - many do this multiple times in one document, which is horrendus programming and indicates the user does not know what's going on.To accurately answer your query - you should have a php file with functions for generating html code. You can then make a function which generates a header (including doctype, &#60;html&#62;, &#60;head&#62; etc), and functions such as tag (to do &#60;p&#62;Hello!&#60;/p&#62;), starttag (to do &#60;p&#62;), endtag (&#60;/p&#62;) and for singletons (&#60;br/&#62;).This will eliminate the need for a html or htm file, is complete valid php, and actually saves the preprocessor dealing with the markup language, then passing it to a browser to display on the page. Instead, it deals with the functions, and the markup language is only analysed by the browser. The correct way to program. This also guarantees your html tags are always correct :)
</description>
<pubDate>Sat, 17 May 2008 13:10:22 -0700</pubDate>
</item>
<item>
<title>PHP email sender in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=6696#6696</link>
<guid isPermaLink="false">6696@http://www.w3exchange.com</guid>
<description>Topic: PHP email sender

Message: Yup, this must be the code that contain message. Go ahead and post the rest if you need help.
</description>
<pubDate>Tue, 05 Feb 2008 09:44:47 -0800</pubDate>
</item>
<item>
<title>Learn PHP from the ground-up! in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=6694#6694</link>
<guid isPermaLink="false">6694@http://www.w3exchange.com</guid>
<description>Topic: Learn PHP from the ground-up!

Message: phpbuilder.com is another excellent resource for intermediate/advanced programmers.
</description>
<pubDate>Tue, 05 Feb 2008 09:42:56 -0800</pubDate>
</item>
<item>
<title>PHP code and HTML code in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=6692#6692</link>
<guid isPermaLink="false">6692@http://www.w3exchange.com</guid>
<description>Topic: PHP code and HTML code

Message: This sounds very basic. If you want to write PHP, you must learn the basics first!Host is right, but technically you can execute PHP script in any extension - say .jsp or .asp. To do so, you must have access to the server configuration file which you will not get in a shared environment.If you are hosting on a shared server, you must try doing normal stuff.
</description>
<pubDate>Tue, 05 Feb 2008 09:41:29 -0800</pubDate>
</item>
<item>
<title>Includes PHP - Top and Bottom of the page in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=6690#6690</link>
<guid isPermaLink="false">6690@http://www.w3exchange.com</guid>
<description>Topic: Includes PHP - Top and Bottom of the page

Message: If you view the source of the poages with problem, you will understand. You would have given the path to images as relative path from the root directory. Something like img src = &#34;images/logo.gif&#34;Now when the same get included from say yoursite/team/index.php, the browser will interpret the path as team/images/logo.gif - ie, relative to the current directory - which is wrong.So you have to code the html so that it works from anywhere img src = &#34;/images/logo.gif&#34; will work from any directory, since it start with a &#34;/&#34;, meaning the root dir.The bottomline is, to debug any HTML issue, view the HTML source of the page in question. That is the way to go. Smae to javascript debugging too.HTH
</description>
<pubDate>Tue, 05 Feb 2008 09:38:30 -0800</pubDate>
</item>
<item>
<title>Encode Client End Script in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=6688#6688</link>
<guid isPermaLink="false">6688@http://www.w3exchange.com</guid>
<description>Topic: Encode Client End Script

Message: There are many ways to do that, mostly using javascript. But none of them are fool proof. Actually this is one of the very basic of internet - what you sent to the client can not be hidden. If somethign can be understood by the browser, that can be understood by someone using the browser.So I would advice you not to waste your time thinking about silly tricks. That is not the way web is designed to be.
</description>
<pubDate>Tue, 05 Feb 2008 09:33:39 -0800</pubDate>
</item>
<item>
<title>Learn PHP from the ground-up! in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=6529#6529</link>
<guid isPermaLink="false">6529@http://www.w3exchange.com</guid>
<description>Topic: Learn PHP from the ground-up!

Message: I have seen a lot of people asking for sites that teach php from the ground up so here are a couple of places you can go to learn php from scratch. Learn PHP Free.com PHP.net - Start melonfire.com Code Walkers Free 2 code Hope these help you! If you have any more links please post them!
</description>
<pubDate>Sat, 26 Jan 2008 02:26:47 -0800</pubDate>
</item>
<item>
<title>PHP code and HTML code in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=6390#6390</link>
<guid isPermaLink="false">6390@http://www.w3exchange.com</guid>
<description>Topic: PHP code and HTML code

Message: Please I have a discussion with a Hosting service, tell me if that affirmation is true: &#34;The .htm extensions means simple static HTML file and server doesn't process PHP code inside this file and doesn't accept POST request related to such files. If you want your PHP code works you need to change file extension to .php &#34; If I want to execute php code inside a html page, does it work? the php code is executed for the php module and the htm for html &#34;module&#34; It is right? Thanks
</description>
<pubDate>Wed, 16 Jan 2008 01:18:43 -0800</pubDate>
</item>
<item>
<title>PHP email sender in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=6389#6389</link>
<guid isPermaLink="false">6389@http://www.w3exchange.com</guid>
<description>Topic: PHP email sender

Message: I have just got this new script which comes with a tell-a-friend option. However when the user receives an email from this script most of the message is in the subject field. Could someone just take a look at this..
Code::$siteurl=$website."view-".$title."-".$id.".html";
echo $siteurl;
$comments = stripslashes($comments);
$message="$yname is sending you a hilarious funpage \n\n\nCheck this Funpage\n".$siteurl."\n";
$message=$message."----------------------------------------------------\n";
$message=$message."Comments from $yname\n";
$message=$message."$comments\n";
$message=$message."----------------------------------------------------\n";

echo $message;
I think that is the part of the code that contains the message, if it isnt I can show the rest of it!any ideas?
</description>
<pubDate>Wed, 16 Jan 2008 01:05:42 -0800</pubDate>
</item>
<item>
<title>navigate pages generated from  the select query in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=4699#4699</link>
<guid isPermaLink="false">4699@http://www.w3exchange.com</guid>
<description>Topic: navigate pages generated from&#160; the select query

Message: Mentioned below is a PHP&#160; function , which can be used to navigate pages generated from&#160; the select query . ie. in the form of&#160; &#60;&#60; Previous ||&#160; Next&#160; &#62;&#62; &#60;? function PagerNextPrevious(&#38;$sql,$pagesize,$class='txt'){ // http://www.hanusoftware.com// Set Default Page Size to 20&#160; &#160; if($pagesize==&#34;&#34;)&#160; &#160; &#160;$pagesize=20; $page=get_post('page'); if($page!='NA'){&#160; &#160;$beg=($page-1)*$pagesize;&#160; &#160; $end=$pagesize;&#160; }else{&#160; &#160; &#160;$beg=0;&#160; &#160; $end=$pagesize;&#160; &#160;$page=1;&#160; }&#160; &#160; $rs=mysql_query($sql) ; $nrows=mysql_num_rows($rs); $sql=$sql.&#34; limit $beg,$end&#34;; $rs=mysql_query($sql); $subrows=mysql_num_rows($rs);&#160; &#160; &#160; if($nrows!=0){&#160; $from=(int)($beg)+1;&#160; $totalpages=(int)($nrows/$pagesize);&#160; $frac=($nrows/$pagesize);&#160; if(($frac-$totalpages)&#62;0)&#160; &#160;$totalpages+=1;&#160; echo &#34;( Page $page of $totalpages )&#38;nbsp; &#38;nbsp;&#38;nbsp; &#34;;&#160; &#160; &#160;if($page&#62;1 ){&#160; &#160; &#160; echo &#34;&#60;a class=$class href='&#34;.selfq().&#34;&#38;page=&#34;.($page-1).&#34;'&#62; &#38;lt;&#38;lt;Previous&#160; &#160;&#60;/a&#62;&#34;;&#160; &#160; &#160;}&#160; &#160; &#160;$next=$page+1;&#160; &#160; &#160;if($next &#60;=$totalpages ){&#160; &#160; &#160;&#160; &#160; &#160; echo &#34;&#38;nbsp;&#38;nbsp;&#38;nbsp;&#60;a class=$class href='&#34;.selfq().&#34;&#38;page=&#34;.$next.&#34;'&#62; Next &#38;gt;&#38;gt;&#160; &#60;/a&#62;&#34;;&#160; &#160; &#160;}&#160; &#160; &#160; &#160; }}  // Assuming you have Opened&#160; connection to mysql database. $sql=&#34; Select * from Products &#34;; //&#160; Show the pager link in form of Previous||Next  PagerNextPrevious($sql,20,'text'); $rs=mysql_query($sql);if(mysql_num_rows($rs)&#62;0){ while($row=mysql_fetch_array($rs)){&#160; echo $row[&#34;ProductName&#34;].&#34;&#60;br&#62;&#34;;&#160;  }}   ?&#62;Software Development India
</description>
<pubDate>Wed, 18 Jul 2007 02:06:43 -0700</pubDate>
</item>
<item>
<title>Hi in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=3841#3841</link>
<guid isPermaLink="false">3841@http://www.w3exchange.com</guid>
<description>Topic: Hi

Message: Hi,I'm new to php.I have a problem.I want to display multiple tables in a webpage using php,ajax and xml.I have generated xml tree from the table but i'm not getting the idea to display multiple tables in the webpage.plzzzzzzzzz some one help me
</description>
<pubDate>Thu, 24 May 2007 02:48:23 -0700</pubDate>
</item>
<item>
<title>text box in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=2617#2617</link>
<guid isPermaLink="false">2617@http://www.w3exchange.com</guid>
<description>Topic: text box

Message: HII think there is a mistake in your code &#60;form action='' method='post'&#62; line.you need to add name of script such as &#34;xyz.php&#34; or &#34;xyz.html&#34; , where your Processing code are included.therefore your code will be like that&#60;form action='xyz.php' method='post'&#62;you can also use GET method here.I think this will be help you.Thanks
</description>
<pubDate>Sun, 11 Mar 2007 22:29:26 -0700</pubDate>
</item>
<item>
<title>text box in Script Forums : PHP</title>
<link>http://www.w3exchange.com/view_topic.php?pid=2614#2614</link>
<guid isPermaLink="false">2614@http://www.w3exchange.com</guid>
<description>Topic: text box

Message: Alright, I want a text box that users can type stuff into and submit it to my email.&#160; this is what i made.
Code::&#60;!-- start: nav --&#62;

&#60;div class="navigation"&#62;
&#60;!-- start: nav_bit_active --&#62;
&#60;span class="active"&#62;Think-Wii&#60;/span&#62;

&#60;!-- end: nav_bit_active --&#62;
&#60;/div&#62;
&#60;!-- end: nav --&#62;
            &#60;br class="clear" /&#62;
&#60;!-- end: header --&#62;
    
&#60;script type='text/javascript'&#62;
function changeDesc(job)
{
document.getElementById('desc').innerHTML=job;
}
&#60;/script&#62;
&#60;table border="0" cellspacing="1" cellpadding="4" class="tborder" style="clear: both;"&#62;
        &#60;tr&#62;
            &#60;td class="thead"&#62;&#60;strong&#62;Contact Us&#60;/strong&#62;&#60;/td&#62;
        &#60;/tr&#62;

        &#60;tr&#62;
            &#60;td class="trow1"&#62;&#60;br /&#62;
&#60;form action='' method='post'&#62;
Subject: &#60;select name='Subject' ' id='Subject'&#62;
&#60;option value=' Affiliate' onmousedown='changeDesc(" Add our button on your site.")'&#62; Affiliate&#60;/option&#62;&#60;option value=' Site Bugs' onmousedown='changeDesc(" Report a bug found on the site.")'&#62; Site Bugs&#60;/option&#62;&#60;option value=' General' onmousedown='changeDesc(" General questions or Comments.")'&#62; General&#60;/option&#62;&#60;option value=' Other...' onmousedown='changeDesc(" Other...")'&#62; Other...&#60;/option&#62;&#60;/select&#62;&#60;br/&#62;

 &#60;span style='font-weight:bold' id='desc'&#62;&#60;/span&#62;&#60;br/&#62;&#60;br/&#62;
&#60;p&#62;Input Text&#60;br/&#62;
&#60;textarea cols='50' rows='5' name='desc'&#62;&#60;/textarea&#62;&#60;/p&#62;&#60;br/&#62;
&#60;input type='submit' value='Submit Form'/&#62;&#60;/form&#62;

&#60;/td&#62;
        &#60;/tr&#62;&#60;/table&#62;&#60;/html&#62;
The problem is I get this when I submit.Method Not AllowedThe requested method POST is not allowed for the URL /contact.htmis there something wrong with the code?
</description>
<pubDate>Sun, 11 Mar 2007 15:05:40 -0700</pubDate>
</item>
</channel>
</rss>
