Jump to content

trillion

Members
  • Posts

    41
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

trillion's Achievements

Member

Member (2/5)

0

Reputation

  1. I am trying to display results from a MySql query using php sort of like this: result_row_0 | result_row_1 | result_row_3 result_row_4 | result_row_5 | result_row_6 ... et cetera ... this is to say that I have an undetermined # of rows of data and I wish to display the first three on one row of a table, the next three on a second table row and so on. Thanks for any help or ideas.
  2. The server is apache. The problem is that the playlist file is called from a flash .swf the .swf playlist access appears to the server as a regular direct playlist file access. Perhaps if I could allow only designated php files to access the playlist file. For example: I have a file player.php. This file holds the .swf player. If this file only was granted access to open readable the playlist file. I am not sure this will work either as it is actually the .swf that opens the playlist.php. Also the playlist.php output is an XML playlist doc if that has any effect as to securing the contents.
  3. I need to deny direct access to a php file. This file builds an xml formated output for an mp3 player that uses XSPF playlists. I have tried the methods mentioned here and these will come in handy for other areas but on this issue these techniques are not working. http://www.codingforums.com/showthread.php?p=496650 The file that calls the php playlist file is a Flash file. The flash file is calling the playlist so the linked examples above fail because the playlist is not getting the correct message. I have worked with php/flash inter-communication before but I did not build this mp3 player. This is the player: http://musicplayer.sourceforge.net/ So I need another way to keep the user from accessing the playlist file directly. Thanks
  4. then could a malicious file uploaded get access the same way?
  5. there are a number of ways to do this. One way is a redirect after mailform.php sends the mail and before it produces any output. redirect to next.php: header("Location: http://www.fertilizethoughts.com/next.php");
  6. One specific case: A form uploads an mp3 file say to a folder called music that is directly above public_html then a php page plays the mp3 like home/music/mp3 home/public_html/player.php how do I access the mp3 file. Do I set an absolute path as variable some place? I have tried with a basic html embed tag and file path as "../music/mp3" but this is not working. of course a URL will not work and I guess that is why the above path fails because it is a URL but how to access the mp3 with an absolute path for display?
  7. something like this maybe: [code]$var = $_POST[poem]."<br/>";[/code] then put  $var into the database insert query
  8. if you enter in the url test.php?category=test this code in test.php file: [code]<?php if ($category == "test") {     echo "<div id='test'>   TEST! </div>"; } ?>[/code] will return: TEST! but register globals has to be on
  9. what output are you looking for exactly? do you want this part: 01:00:03 AM to look like this: 00:00:03 UTC
  10. I have often read to place upload directories(any directory with chmod 0777) behind the www root(pulic_html in my case) I understand the reasoning and would like my server to be as secure as possible but I also want to access the files uploaded via php for display. Is there something I am missing here? It seems uploaded files/directories are concidered safe when behind public_html because they are not accessible. Is there a method to still access these files from a browser?
  11. I want to provide members with an email account. This account should be create via PHP. I have found this to do it if the server is using cpanel: http://www.zubrag.com/scripts/cpanel-create-email-account.php but my server uses vdeck. Has anyone seen something to automatically create email accounts like the above script but for vdeck administrated servers?
  12. This should be easy but I am stumped! How do I rename a directory? [code]<?php rename ('dirname1','dirname2'); ?>[/code] gets permissions denied and chmod is 0777
  13. How can I get my php script to complete even if the user closes their browser that initiated the script? I don't think I will have command line access but would like to know if that is is only option as I may have to switch hosts.
  14. OK There was a bug in the tutorial. here is the fix. change: [code]$mailer->Body($htmlBody);[/code] to: [code]$mailer->Body = $htmlBody;[/code] and change: [code]$mailer->AltBody($textBody);[/code] to: [code]$mailer->AltBody = $textBody;[/code] now it works
  15. I am trying the tutorial here: http://www.phpfreaks.com/tutorials/130/0.php to set up php email using phpmailer. It works fine for basic text email but when I get to the part to add html body content I get this error: Fatal error: Call to undefined function: body() in /home/user/public_html/dir/dir/mailto-html.php on line 21 the code looks like this: [code]require_once('../config.php'); require_once('MailClass.inc'); $mailer = new IDMailer(); $mailer->Subject = 'This is a Test'; $htmlBody = ' <html><head><title>HTML Tst Ml</title></head><body> <img src="http://phpfreaks.com/images/phpfreaks_logo.php" /><br /> <h2>PHP Rocks!</h2> <p>We text text text text text text text text text text text text <a href="http://inherentdesign.com>ID</a> text text text text text</p> '; $textBody = 'Hopefully I will not see this'; $mailer->Body($htmlBody); $mailer->isHTML(true); $mailer->AltBody($textBody);[/code] there is more under this but above is what seems relevant to the issue as I get the error at line [code]$mailer->Body($htmlBody);[/code] If I comment out the function body() I get a similar error for function altbody() what have I gotten wrong?
×
×
  • 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.