RSS PHP Help...

Ok, well I am making a PHP rss reader for my website with
updating feeds using this website...
http://rssfeedreader.com/php.html#HTML
It has worked so far and I have followed the instructions but
I get these errors when I try to view the page that views the
feeds...
Warning: main(): URL file-access is disabled in the server
configuration in /rssfeeds.php on line 10
Warning: main(
http://rssfeedreader.com/rss3/rss.php?url=
http://feeds.appstorefeeds.com/iphoneapps-books&newpage=
1&chead=&atl=&desc=1&owncss=&eleminate=&auth=&dts=&width=
300&max=5&tlen=0&rnd=1&bt=0&bs=None&nmb=&ntb=&naf=&nst=&nwd=0
&nht=0&dlen=100&lstyle=8&lc=grey&bg=White&bc=white&spc=&ims=1&tc=b
lack&ts=10&tfont=Verdana,+Arial,+Sans-serif&rf=www.***.com/rssfeeds.php&phpout=1):
failed to open stream: no suitable wrapper could be found in
/rssfeeds.php on line 10
Warning: main(): URL file-access is disabled in the server
configuration in /rssfeeds.php on line 10
Warning: main(
http://rssfeedreader.com/rss3/rss.php?url=
http://feeds.appstorefeeds.com/iphoneapps-books&newpage=
1&chead=&atl=&desc=1&owncss=&eleminate=&auth=&dts=&width=
300&max=5&tlen=0&rnd=1&bt=0&bs=None&nmb=&ntb=&naf=&nst=&nwd=0
&nht=0&dlen=100&lstyle=8&lc=grey&bg=White&bc=white&spc=&ims=1&tc=b
lack&ts=10&tfont=Verdana,+Arial,+Sans-serif&rf=www.***.com/rssfeeds.php&phpout=1):
failed to open stream: no suitable wrapper could be found in
/rssfeeds.php on line 10
Warning: main(): Failed opening '
http://rssfeedreader.com/rss3/rss.php?url=
http://feeds.appstorefeeds.com/iphoneapps-books&newpage=
1&chead=&atl=&desc=1&owncss=&eleminate=&auth=&dts=&width=
300&max=5&tlen=0&rnd=1&bt=0&bs=None&nmb=&ntb=&naf=&nst=&nwd=0
&nht=0&dlen=100&lstyle=8&lc=grey&bg=White&bc=white&spc=&ims=1&tc=b
lack&ts=10&tfont=Verdana,+Arial,+Sans-serif&rf=www.***.com/rssfeeds.php&phpout=1'
for inclusion (include_path='.:/usr/local/lib/php') in
/rssfeeds.php on line 10
Personal info was kept out..
Anyways, how can I can I correct these errors?

On Mon, 22 Dec 2008 01:42:38 +0000 (UTC), "person98"
<[email protected]> wrote:
> Warning: main(): URL file-access is disabled in the
server configuration in
>/rssfeeds.php on line 10
A lot of hosts disable using file system functions on
external files. The
error suggests this is the case in your code and that your
code is
attempting to get the external file using something like the
file_get_contents() function or using fopen() and fgets() to
read the
content of the RSS file. The solution would be to use the
CURL functions
or direct socket I/O, if that's the case. However, it's
impossible to know
without seeing more of your code.
Gary

Similar Messages

  • I cannot open rss feeds - Firefox asks whether I want to open or save both rss.php files and application/rss+xml files - any help out there?

    Trying to add feeds to live bookmarks - cannot figure out what setting to change so that when I click on the "subscribe to" button the option to add these feeds to live bookmarks is available.

    Did you find a solution to this yet? I'm trying to do exactly the same thing.

  • ZEND/Flex - amf-config.php help!!

    Have some odd behavior taking place when promoting release builds to my production server.
    I have two projects one works - one does not. Both the same settings as far as I can tell.
    Using the amf-config.ini file - this test works
    [zend]
    ;set the absolute location path of webroot directory, example:
    ;Windows: C:\apache\www
    ;MAC/UNIX: /user/apache/www
    ;webroot =C:/Program Files/Zend/Apache2/htdocs
    webroot = ../../
    ;set the absolute location path of zend installation directory, example:
    ;Windows: C:\apache\PHPFrameworks\ZendFramework
    ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework
    ;zend_path =
    [zendamf]
    amf.production = false
    amf.directories[]=xyz/release/services
    The next release uses the same gateway and amf-config files - and I get this error.
    Class "XYZservice" does not exist: Plugin by name 'XYZservice' was not found in the registry; used paths: : /xyz/release/services/
    #0 /var/www/vhosts/xyz.com/httpdocs/ZendFramework/library/Zend/Amf/Server.php(550): Zend_Amf_Server->_dispatch('secure', Array, 'XYZservice')
    #1 /var/www/vhosts/xyz.com/httpdocs/ZendFramework/library/Zend/Amf/Server.php(626): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 /var/www/vhosts/xyz.com/httpdocs/xyz/release/gateway.php(69): Zend_Amf_Server->handle()
    #3 {main}
    Have tried many variations - but still no joy. Why does ../../ work and not the direct path? - by the look of it, those directory's are fine.
    As I understand it - no matter what set-up you build on (local Windows) and promote to a hosted production server (US, mediatemple) - as long as you configure the amf-config.ini file all should be good. Is this the case? Am I missing something when I do a release build.
    Am I better of specifying the "endpoint" in all my service calls in my declarations (mxml code)?
    Been going round in circles with this for several months now. Getting to the point where the only way I can deploy is Windows. DO NOT want to go down that road.
    Help is much appreciated.
    rgds
    martin

    6 Hours of headache later I solved this problem!
    So in my case the amf_config.ini was set up correctly with webroot=/fullpath/to/url/root and amf.service=foldername (php in my case)
    on my local machine the services file is product.php and everything is groovy and working
    I uploaded everything exactly as it is on my machine and got the error you did.
    I simply cp product.php to Product.php and it worked
    For somereason the zend framework is looking for a file that starts with a capital letter!!!! even though it works fine on my machine and was referenced as product.php! Are you kidding me? What a headache.
    Joel

  • MySQL & PHP -- Help!

    Hi guys,
    Long time, no see! ;-)
    Anyway, I've got a question for someone who is pretty darn
    good with PHP,
    forms, and MySQL. This is ultimately what I need to achieve:
    I'm creating a webpage for my university that will allow the
    professors in
    the IST department to select their preferences in course
    choices. I want to
    list out each IST course and then give them two different
    things to do with
    each course. The first thing is they need to select if
    they've taught that
    IST course before. Secondly, they need to say whether they
    "don't want to
    teach" the course, are "willing to teach" the course, or
    "really want to
    teach" the course. OK, hope this makes sense so far. What I
    need help with
    is figuring out how to put all the choices for each categorey
    into one field
    in a MySQL database. For example, if they selected the "don't
    want to teach"
    option (I'm not sure if a drop-box or radio button would work
    best...) for
    IST 215, IST 110 and IST 230. How can I have those courses
    entered into the
    single database field called "dontwant?"
    This is my code so far:
    // Connect to server and select database.
    mysql_connect("$host", "$username", "$password")or
    die("cannot connect");
    mysql_select_db("$db_name")or die("cannot select DB");
    // Get values from form
    $name=$_POST['name'];
    $thedate=date('m-j-y');
    $taughtbefore=;
    $dontwant=;
    $willing=;
    $reallywant=;
    $comments=!trim($_POST['comments']);
    // Insert data into mysql
    $sql="INSERT INTO $tbl_name(name, thedate, taughtbefore,
    dontwant,
    willing, reallywant, comments)VALUES('$name', '$thedate',
    '$taughtbefore',
    '$dontwant', '$willing', '$reallywant', '$comments')";
    $result=mysql_query($sql);
    // close connection
    mysql_close();
    Is there a way I can like...append all these values into one
    string to pass
    into the single database field...? As you can see, I really
    don't know how
    or what values to assign to those empty strings up there...
    I'm really
    unsure of how to go about doing this. I hope this makes
    sense...
    Thanks for any and all of your time!
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Blog:
    http://avenuedesigners.com/blog/
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================

    Hi Murray,
    Allow me to clarify. I ultimately need to display something
    like this...and
    this would be reading from the MySQL database, and output in
    a table on the
    webpage:
    | No Teach | Want to Teach | Really want |
    | IST 250 | IST 420 | IST 330 |
    | IST 110 | IST 101 | IST 311 |
    | IST 332 | | IST 120 |
    | | | IST 440
    |
    I understand your approach and think it's a good idea. I
    guess I should have
    a table for each, like: NoTeach, WantToTeach, and ReallyWant.
    My question is
    how I would put the right IST course into the right table.
    Like if they
    selected "I don't want to teach" would I have some type of if
    statement to
    sort them into the right tables? If so, can you give me some
    code on how it
    would work?
    Thanks!
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Blog:
    http://avenuedesigners.com/blog/
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > Why would you want to put all of that into a single
    field? Sounds like
    > the wrong approach to me....
    >
    > I'd have a NoTeach table, containing at least three
    fields -
    >
    > termDate
    > profID
    > classID
    >
    > Each professor's "noteach" selection would then be a
    separate record in
    > that table, which could all be collated for display....
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "Shane H" <[email protected]> wrote
    in message
    > news:[email protected]...
    >> Hi guys,
    >>
    >> Long time, no see! ;-)
    >>
    >> Anyway, I've got a question for someone who is
    pretty darn good with PHP,
    >> forms, and MySQL. This is ultimately what I need to
    achieve:
    >>
    >> I'm creating a webpage for my university that will
    allow the professors
    >> in the IST department to select their preferences in
    course choices. I
    >> want to list out each IST course and then give them
    two different things
    >> to do with each course. The first thing is they need
    to select if they've
    >> taught that IST course before. Secondly, they need
    to say whether they
    >> "don't want to teach" the course, are "willing to
    teach" the course, or
    >> "really want to teach" the course. OK, hope this
    makes sense so far. What
    >> I need help with is figuring out how to put all the
    choices for each
    >> categorey into one field in a MySQL database. For
    example, if they
    >> selected the "don't want to teach" option (I'm not
    sure if a drop-box or
    >> radio button would work best...) for IST 215, IST
    110 and IST 230. How
    >> can I have those courses entered into the single
    database field called
    >> "dontwant?"
    >>
    >> This is my code so far:
    >>
    >> // Connect to server and select database.
    >> mysql_connect("$host", "$username", "$password")or
    die("cannot
    >> connect");
    >> mysql_select_db("$db_name")or die("cannot select
    DB");
    >>
    >> // Get values from form
    >> $name=$_POST['name'];
    >> $thedate=date('m-j-y');
    >> $taughtbefore=;
    >> $dontwant=;
    >> $willing=;
    >> $reallywant=;
    >> $comments=!trim($_POST['comments']);
    >>
    >> // Insert data into mysql
    >> $sql="INSERT INTO $tbl_name(name, thedate,
    taughtbefore, dontwant,
    >> willing, reallywant, comments)VALUES('$name',
    '$thedate',
    >> '$taughtbefore', '$dontwant', '$willing',
    '$reallywant', '$comments')";
    >> $result=mysql_query($sql);
    >>
    >> // close connection
    >> mysql_close();
    >>
    >>
    >> Is there a way I can like...append all these values
    into one string to
    >> pass into the single database field...? As you can
    see, I really don't
    >> know how or what values to assign to those empty
    strings up there... I'm
    >> really unsure of how to go about doing this. I hope
    this makes sense...
    >>
    >> Thanks for any and all of your time!
    >>
    >>
    >> --
    >> Shane H
    >> [email protected]
    >>
    http://www.avenuedesigners.com
    >>
    >> =============================================
    >> Blog:
    >>
    http://avenuedesigners.com/blog/
    >>
    >> Web dev articles, photography, and more:
    >>
    http://sourtea.com
    >> =============================================
    >> Proud GAWDS member
    >>
    http://www.gawds.org/showmember.php?memberid=1495
    >>
    >> Delivering accessible websites to all ...
    >> =============================================
    >

  • Php Help

    I have a site I have developed with Dreamweaver 8. The site
    has a mix of pages - some with the .html and some with the .php. So
    far everything works great. My home page was .html but I saved it
    over to .php and updated all the links (Dreamweaver did all of this
    for me). Now, I want to use some php code for a news feed. However,
    I keep getting the following two errors:
    Warning: main(): URL file-access is disabled in the server
    configuration in /home/content/s/u/s/sl/html/BMT/index.php on line
    139
    Warning: main(
    http://www.newsfeed.com/tools/steppatch_nc.asp?type=s&t=test&prov=keywords&cat=Business&ca t2=&num_articles=5&show_summaries=Yes&show_sources=No&show_dates=No&title=undefined&keywor ds=B%20Lns&url=&headers_size=12pt&title_size=10pt&title_bold=Yes&font_size=10pt&font_famil y=Arial&text_alignment=Left&space=Yes&titlecolor=%23000000&fcolor=%23000000&desccolor=%230 00000&sourcecolor=%230000FF&datecolor=%23999999):
    failed to open stream: no suitable wrapper could be found in
    /home/content/s/u/s/sl/html/BMT/index.php on line 139
    Line 139 is the closing tag of the php code.
    Can anyone help?

    quote:
    Originally posted by:
    brywilson88
    Warning: main(): URL file-access is disabled in the server
    configuration in /home/content/s/u/s/sl/html/BMT/index.php on line
    139
    Warning: main(
    http://www.newsfeed.com/tools/steppatch_nc.asp?type=s&t=test&prov=keywords&cat=Business&ca t2=&num_articles=5&show_summaries=Yes&show_sources=No&show_dates=No&title=undefined&keywor ds=B%20Lns&url=&headers_size=12pt&title_size=10pt&title_bold=Yes&font_size=10pt&font_famil y=Arial&text_alignment=Left&space=Yes&titlecolor=%23000000&fcolor=%23000000&desccolor=%230 00000&sourcecolor=%230000FF&datecolor=%23999999):
    failed to open stream: no suitable wrapper could be found in
    /home/content/s/u/s/sl/html/BMT/index.php on line 139
    Directly accessing URL's is forbidden on your server.
    Therefore you cannot pass a URL as an arguement to a function. This
    is a common security setting and you will probably need to use CURL
    to get the data from the external URL and then pass the input to
    main().

  • Almost there, still need email php help!

    Hey there everyone,
    I posted my issue earlier but the thread seems to be dead.  I have been researching php syntax and looked at some other examples online, and I think I almost have it.  I just need a little extra assistance to get there.
    I had my php page partially working earlier, and I was receiving emails from my form submission, but all the data I got was subject and phone number.  I didn't get my thank you page to come up either.  My form has fields for name, email, phone, 3 comment fields and 3 reference fields.  Not sure why I wasn't getting all of the data so I tried redoing my code.
    Now, after redoing the code, I get my thank you page to come up, but I don't get any email notification with the submitted data anymore.  I am not sure why.  I had some code syntax errors but I fixed them through process of elimination and I have no syntax errors now.
    Would someone be able to take a look at my files and tell me what I am doing wrong?  I am always ready to put in work and test through trial and error, but I just am not sure where to start.  I am so close!!!
    Thanks for reading and for any advice, I really appreciate it!
    Jayson

    David, thank you!  It works!  You are my new hero!
    Well, through it all I learned a lot about syntax, headers, form security, etc etc  Very helpful!  Even learned about bare LF's lol.
    I am trying to also have the thank you page redirect to the manufacturer's page after 5 seconds, and I did some reading about redirect code through meta and php.  Not sure if it matters which one I use, and I am also confused about where to put it.
    These are what I found:
    <head>
    <meta http-equiv="refresh" content="5; URL=thankyou.htm">
    </head>
    <?php
    header("refresh: 5; thankyou.htm";
    ?>
    If I use the meta tag, does it go directly in the code on the thank you page?  And if I use the pgp code, where does that go?  I tried it but the page was having trouble redirecting.
    Thanks again for all of your help, and if you feel generous enough to help me with this too I would really appreciate it!
    Jayson

  • Help rss feed help!

    I am having a problem with my feed now...I have tried to fix it but, feedvalidator keeps saying its wrong..can someone help fix it...please
    heres the link:
    http://feedvalidator.org/check.cgi?url=http%3A//thehotspotshow.com/hotspot.xml

    whats wrong with this item tag??
    <item>
    <title>The Hot Spot Live: Episode 33</title>
    <description>We are your host I am Tristen The Truth and with me is my brother Shaun Hollywood. Our show is packed with nothing but the goods. We have NFL Draft talk…big names talked about being traded, rumors, Raiders split.. NHL Playoffs, NBA Playoffs….Lots of MMA news…Cro Cop upsetted . Tito Ortiz talks again. The Ultimate Fighter Season 6 Coaches set and more, MLB Around the Horn…Arod running towards records, Torri Hunter flirted with a 3yr ban. Aztec Baseball makes a huge jump in standings and set records. Nascar Dale Jr.</description>
    <pubDate>Tue, 24 Apr 2007 11:04:21 GMT</pubDate>
    <link>http://www.thehotspotshow.com</link>
    <author>[email protected]</author>
    <category>Sports</category>
    <comments>http://www.thehotspot.org/index.php?subaction=showcomments&id=1148168871</comments>
    <guid isPermaLink='true'>http://www.thehotspotshow.com/thsshow/liveshow33.mp3</guid>
    <enclosure url="http://www.thehotspotshow.com/thsshow/liveshow33.mp3" length="55973174" type="audio/mpeg"/>
    <itunes:subtitle>The Hot Spot Live: Episode 33</itunes:subtitle>
    <itunes:summary>We are your host I am Tristen The Truth and with me is my brother Shaun Hollywood. Our show is packed with nothing but the goods. We have NFL Draft talk…big names talked about being traded, rumors, Raiders split.. NHL Playoffs, NBA Playoffs….Lots of MMA news…Cro Cop upsetted . Tito Ortiz talks again. The Ultimate Fighter Season 6 Coaches set and more, MLB Around the Horn…Arod running towards records, Torri Hunter flirted with a 3yr ban. Aztec Baseball makes a huge jump in standings and set records. Nascar Dale Jr.</itunes:summary>
    <itunes:author>Truth and Hollywood</itunes:author>
    <itunes:keywords>sports, nba, mlb, nhl, baseball, football, nfl, opinions, hot, spot, espn</itunes:keywords>
    <itunes:duration>0:58:18</itunes:duration>
    <itunes:explicit>yes</itunes:explicit>
    </item>
    Its not working for me..

  • Dreamweaver and PHP Help Needed!

    If there is anyone out there who can help, I am working with
    a back-end secured website that is in php and need to manipulate
    and change pageson-the-fly. I'm not sure how to view and actually
    see in Design View my PHP page, as I can best work in Design View.
    Can anyone help out there?
    The website I need help with is
    http://www.businesscreditbuilder.com
    Help needed as soon as possible...
    Thank you...
    If you want to help, I can compensate you for helping with an
    immediate page..

    Thank you for writing. I do need your help, and here's the
    scenario. I work for a company that deals with business credit. In
    the previous post at
    http://www.businesscreditbuilder.com
    there is a login. Once logged in, there is a home page for the
    members. That first page I need to change as soon as possible for
    over 40,000 members. All the members will see the same home page
    inside the members area. You're welcome to login as "makaiman",
    password is "1143mak" to see the first page that comes inside the
    members area I need to change just a little. PHP is installed on a
    remote server running on Windows. I need help or guidance on this
    immediately but I have to sleep right now as it is 1130pm pacific
    and need to have this done by sometime tomorrow morning. I
    appreciate all of your help so very much... any advice would be so
    much appreciated...
    m

  • RSS Feed help

    I've switched all my RSS feeds to Mail, but for the past week, none of them have been showing up. Everytime I start Mail, multiple feeds, but not all, show an error message, while the rest of the feeds show know updates. I have updated all my software. It may be a matter of Atom vs. RSS feeds, but that wouldn't explain why none of the feeds are updating. Help?

    i've found something similiar.
    My RSS feeds are no longer updating automatically. (i've checked the setting, and they're set to every 15 minutes).
    This has only started since the .2 update.

  • Cgi/php help?

    Hi, can anyone help - I'm looking to set up an online
    shopping basket on my web site with multiple options for each
    product eg. t-shirt - style logo - personalised with name - shirt
    colour - size etc. I will only be selling six different products in
    total so I don't want anything too over the top.
    Is there a PHP/CGI script or shopping basket program that
    will allow a customer to make their choices by clicking a radio
    button by each option required and then preview the outcome in a
    pop-up window or a new page eg. red t-shirt with fish logo on the
    front and personalised with a name eg. Matthew, before they make
    their purchase?
    Any help appreciated
    Cheers

    Here is a simple bit of PHP to stick in the page your form posts to. You would need to edit the first three variables to your liking, and add the html you want to serve afterwards:
    <pre>
    <?php
    $emailFrom = '[email protected]';
    $emailTo = '[email protected]';
    $emailSubject = 'Subject';
    $date = date('l, \t\h\e dS \o\f F, Y \a\t g:i A');
    $browser = $HTTPSERVER_VARS['HTTP_USERAGENT'];
    $hostname = $HTTPSERVER_VARS['REMOTEADDR'];
    $message = "$date\n\nAddress: $hostname\nBrowser: $browser\n\n";
    foreach ($_POST as $key => $value) {
    $message .= $key . ": " . $value . "\n";
    $mailResult = mail($emailTo,$emailSubject,$message,"From: $emailFrom");
    ?>
    </pre>
    This script will grab the server's date and the submitter's address and browser type. It will then list the name and value of each form field you have put on your form.
    Also, this script expects your form method="post".
    Lastly, you can offer alternate text later on in your html page based on the success of the above script with a snippet like this:
    <pre><?php
    if ($mailResult) {
    echo "Your comments have been received thank you.";
    } else {
    echo "There was an error. Please try again or contact us using an alternate method.";
    ?></pre>

  • URGENT PHP HELP

    I am working on a mail form that is linked to my payroll
    system. It is working great but there has been a request that I add
    a mail to all recipients feature. However I am not to sure how I
    would go about doing this, I am hoping someone can help me atler my
    current code. Right now the recipient selction is a drop down menu
    that is populated from a mySQL table within my payroll system.
    I would like the first option when dropped down to be "All
    Recipents" so when it is sent the mail is sent to everyone's email
    not just the slected individual email.
    Below is the current code I have where only one recipent can
    be selected.
    Thanks in advance!

    Does your e-mail system support Distribution Lists? If so,
    the easiest way
    would be to add the appropriate one to your Dropdown list.
    If not, then the only other way I see to do this is to check
    whether "All
    Recipients" is selected. If it is, loop through all of the
    addresses and
    build up the BCC: string (it's considered a bad practice to
    put huge lists
    in the TO: field). If not, then use your current code.
    HTH
    Steve
    "bcounts" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am working on a mail form that is linked to my payroll
    system. It is
    >working
    > great but there has been a request that I add a mail to
    all recipients
    > feature.
    > However I am not to sure how I would go about doing
    this, I am hoping
    > someone
    > can help me atler my current code. Right now the
    recipient selction is a
    > drop
    > down menu that is populated from a mySQL table within my
    payroll system.
    >
    > I would like the first option when dropped down to be
    "All Recipents" so
    > when
    > it is sent the mail is sent to everyone's email not just
    the slected
    > individual
    > email.
    >
    > Below is the current code I have where only one recipent
    can be selected.
    >
    > Thanks in advance!
    >
    >
    >
    > ******* HTML CODE *********
    > <?
    > include('auth.php');
    > $user_id = $_GET['user_id'];
    > $result = mysql_query("select * from user_info where
    user_id = $user_id");
    > $row = mysql_fetch_array($result);
    > ?>
    > <!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">
    > <head>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > <title>Untitled Document</title>
    > </head>
    > <body>
    > <input type="hidden" name="user_id"
    value="<?=$user_id?>" />
    > <form method="post" action="send_mail.php">
    > <table bgcolor=#ffffcc align=center>
    > <tr><td><font color=red>*</font>
    Name:</td><td><input name="Name"
    > value="<?=$row['fname']?>
    <?=$row['lname']?>" size=25></td></tr>
    > <tr><td><font color=red>*</font>
    Email:</td><td><input name="Email"
    > value="<?=$row['user_email']?>"
    size=25></td></tr>
    > <tr>
    > <td><font color=red>*</font>
    Recipient:</td>
    > <td align="left"><select name="sendto">
    > <option value="">Select Recipient . .
    .</option>
    > <?php $sql = mysql_query("SELECT * FROM user_info
    ORDER BY lname ASC");
    > while
    > ($row1 = mysql_fetch_array($sql)) { ?>
    > <option value="<?php echo $row1['user_email'];
    ?>"><?php echo
    > $row1['fname'];
    > ?> <?php echo $row1['lname']; ?></option>
    > <?php } ?>
    > </select></td></tr>
    > <tr>
    > <td><font color=red>*</font>
    Subject:</td>
    > <td><input size=25
    name="Subject"></td></tr>
    > <tr><td
    colspan=2>Message:</td></tr>
    > <tr><td colspan=2 align=center><textarea
    name="Message" rows=5
    > cols=35></textarea></td></tr>
    > <tr><td colspan=2 align=center><input
    type=submit name="send" value="Send
    > Mail"></td></tr>
    > <tr>
    > <td colspan=2 align=center><small><font
    color=red>*</font> Indicates
    > Required
    > Field</small></td>
    > </tr>
    > </table>
    > </form>
    > </body>
    > </html>
    >
    > ******* PHP CODE *********
    >
    > <?php
    > $to = $_REQUEST['sendto'];
    > $from = $_REQUEST['Email'];
    > $name = $_REQUEST['Name'];
    > $headers = "From: $from";
    > $subject = $_REQUEST['Subject'];
    >
    > $fields = array();
    > $fields{"Message"} = "Message";
    >
    > $body = ""; foreach($fields as $a => $b){ $body .=
    sprintf("%20
    > %s\n\n",$b,$_REQUEST[$a]);}
    >
    > if($from == '') {print "You have not entered an email,
    please go back and
    > try
    > again";}
    > else {
    > if($subject == '') {print "You have not entered a
    subject, please go back
    > and
    > try again";}
    > else {
    > $send = mail($to, $subject, $body, $headers);
    > if($send)
    > {header( "Location: index.php" );}
    > else
    > {print "You did not choose a recipient or the recipent
    you have chosen did
    > not
    > have an email on file.";}
    > }
    > }
    > ?>
    >

  • Some PHP help

    Hi, I'm new to PHP, currently the following sets the end date
    to the start date:
    function afterSetDateValue(ref_field, target_field, date) {
    if (date!="") {
    var startDate=document.forms[0]["start_date"];
    var endDate=document.forms[0]["end_date"];
    if (target_field==startDate &&
    checkDate(getDateValue(endDate))==0 &&
    compareDates(date, getDateValue(endDate))>0) {
    setDateValue(endDate, date);
    ("End Date was earlier than Start Date, it's now set to
    Start Date.");
    How do I make it so that if the start date is changed to a
    date later than the end date, the end date is start date + 1? I'm
    sure its a simple PHP, but like i said i'm learning!
    Thanks

    ferrarikid123 wrote:
    > How do I make it so that if the start date is changed to
    a date later than
    > the end date, the end date is start date + 1? I'm sure
    its a simple PHP, but
    > like i said i'm learning!
    It's not PHP at all. The script you have shown is JavaScript.
    It's also
    incomplete. You might get more help if you describe in more
    detail
    exactly what it is you're trying to do.
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • Php help plz

    hey, basic what i would like,,
    is a text box, form whatever. that when something is written
    then submitted it will insert this data into page, but i would need
    several boxs, with multi submit, every box has a seperate cell.
    also the current data will be erased.. thankyou
    please help
    danny
    http://www.habboradio1.com

    Then use the php filesystem functions:
    http://www.php.net/manual/en/ref.filesystem.php

  • RSS php code

    Can anyone see what is wrong with the attached code. I have a
    table named 'page' with the field 'Number' 'Title' and 'ImageLink'
    within it. I can get the simple rss feed to show up with my website
    information but it wont echo the items within the database.

    jh369057 wrote:
    > Can anyone see what is wrong with the attached code. I
    have a table named
    > 'page' with the field 'Number' 'Title' and 'ImageLink'
    within it. I can get
    > the simple rss feed to show up with my website
    information but it wont echo the
    > items within the database.
    If your code does not output the content from the database,
    then either you are attempting to output it improperly, or the data
    is not getting accessed from the database properly and isn't
    present to output.
    In a quick look, there are several potential problems:
    Your mysql_query doesn't specify the database connection,
    it's possible that your connection include specifies it, but as you
    didn't show the code it's hard to tell.
    When you output the values for from your row of data, you do
    not have them quoted, as in:
    $row[Number]
    It should be something like:
    $row["Number"]
    If that doesn't help, or you still have problems, you should
    ask your question over in the Dreamweaver Application Dev group:
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=12&catid=263&entercat= y
    And post a link to your page, as it may help in determining
    what is getting output and what should be output. Also, if you are
    getting any errors, you should post what those errors are and on
    which lines. When working with XML files, it may be harder to
    determine if there is an error, especially with RSS XML, as some
    browsers may be hiding the errors generated. It may be good to
    comment out the content type header, and only uncomment it when you
    have a fully working page.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • RSS subscribe help

    Hi All,
    I have a site hosted on a non .mac server and I can't figure out how to set up the RSS subscribe feed for my podcast page. When I publish to a folder I put in the url of my site, didn't work. I tried again and put in the url to the page the RSS is on, didn't work. I subscribed and itunes said it wasn't able to find the html or rss.xml files on the server. Thanks for any help or ideas.

    If you look in your site directory, it should look like this structure...
    mikemckennamusic.com
    \__index.html file
    \__sitefolder
    When you surf to your site, the URL for the Welcome.html page should appear as...
    http://mikemckennamusic.com/sitefolder/Welcome.html
    What is your sitefolder name???
    Right now all it says is: http://mikemckennamusic.com/Welcome.html
    I know this is probably how you would like it to appear, but iWeb's directory structure requires the intervening "sitefolder" part of the URL in order to function. Otherwise, a bunch of your images may not be referred to correctly.
    That's what is currently happening with your rss.xml file...
    http://mikemckennamusic.com/Listen/rss.xml
    Go ahead and click on it and see the results yourself. Because the rss.xml file was generated with the correct file directory structure in mind, none of the links work on your site because you have not maintained the directory structure on your server.

Maybe you are looking for

  • Report with bind variables

    Hi, I apologize in advance for the newbie question. I would like to create a report report_b with a "vertical report exclude null values" template which will show only one record. This report will be called from another report with a default template

  • Cannot load jvm again in browser extension

    I have made a browser extension for internet explorer (as a vertical explorer bar) in java. It runs correctly when the explorer is opened once. But when a new window is opened (pressing ctrl+N), the extension cannot be started in the window. It howev

  • What the heck is a WEP?

    I have set up my Airport Extreme and have been very impressed how intuitive the setup process has been, however... I have a PC that is a couple of years old and it is asking me for a WEP key ~or~ a WPA key. My newer PC laptop did not require this to

  • Printing smartform in Dot matrix printer

    Hi , i am giveing the printout of the smartform in the dot matrix printer. But in the print out the template is not getting printed and in the second table i am getting extra lines in the table. Please give me any suggestions and is there any setting

  • Exchange 2010 - Mail Database Recovery after Database Portability Applied

    Background: We had a city-wide power failure  at Office A and as a result Exchange Server A (ES-A) was taken offline for an extended period of time.  The last good backup of ES-A-DB was from the previous business day.  The DR plan was enacted and the