Jump to content

sgb162

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

About sgb162

  • Birthday 03/01/1989

Contact Methods

  • AIM
    sgb162
  • Website URL
    http://www.sgb162.com

Profile Information

  • Gender
    Not Telling

sgb162's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Basically, I wanted to read the top line from this feed: [a href=\"http://ws.audioscrobbler.com/1.0/user/Sgb1622/recenttracks.txt\" target=\"_blank\"]http://ws.audioscrobbler.com/1.0/user/Sgb1...ecenttracks.txt[/a] and output it in a one-line text format. I wrote this code to attempt it: [a href=\"http://code.pastebin.com/602914\" target=\"_blank\"]http://code.pastebin.com/602914[/a] (Sorry about putting it on pastebin, but it WOULD NOT SUBMIT to this post at all.) It worked. To an extent. It worked on apache, at least. When uploaded, it gave me this: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] Warning: fopen(): URL file-access is disabled in the server configuration in /home/.denali/sgb162/sgb162.com/reader.php on line 4 Warning: fopen(http://ws.audioscrobbler.com/1.0/user/Sgb1622/recenttracks.txt): failed to open stream: no suitable wrapper could be found in /home/.denali/sgb162/sgb162.com/reader.php on line 4 Warning: fread(): supplied argument is not a valid stream resource in /home/.denali/sgb162/sgb162.com/reader.php on line 5 Warning: fclose(): supplied argument is not a valid stream resource in /home/.denali/sgb162/sgb162.com/reader.php on line 6[/quote] I'm assuming that means they don't want me opening & reading files from other servers or something. So I guess I'd have to use something else. Basically, what I need is an idea and a concept or something. Would sockets be the way to go? I really don't know how to use sockets. Reading up on them on php.net confused me. <_< Do you know of a better way to do this or to fix it? Any help appreciated, thanks.
  2. For any PHP to run the file has to be saved as a .php file.
  3. Try changing [code]<input name="thetext" type="text" value="<a href="http://starcraftarena.roxr.com/fusion/viewimage.php?id=<?php echo $myrow["id"]?>">HELLO</a>" size="80" />[/code] to [code]<input name="thetext" type="text" value="<a href="http://starcraftarena.roxr.com/fusion/viewimage.php?id=<?php echo $myrow["id"]; ?>">HELLO</a>" size="80" />[/code] and see what happens.
  4. If you're looking to test PHP files offline, I think your best bet is to download and install apache. <_<
  5. Go to [a href=\"http://www.phpbb.com/\" target=\"_blank\"]their website[/a] and download the package. It actually has installation instructions packaged with it.
  6. If you're trying to ignore all capital letters, [^A-Z] should do it just fine..
  7. Need to use substr() Example: [code] <?php $number = "2345"; echo $number . "<br>"; $digit1 = substr($number,0,1); $digit2 = substr($number,1,1); $digit3 = substr($number,2,1); $digit4 = substr($number,3,1); echo $digit1 . "<br>"; echo $digit2 . "<br>"; echo $digit3 . "<br>"; echo $digit4 . "<br>"; ?> [/code]
  8. session_start is a necessity on any pages using sessions. Try getting it in at the top and see if that helps.
  9. sgb162

    Login

    I believe you need to change [code]if (isset($_POST)) ..[/code] to [code]if ($_POST['username']) ..[/code] or something similar.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.