Jump to content

borfast

Members
  • Posts

    3,271
  • Joined

  • Last visited

Everything posted by borfast

  1. LOL That is so true... I have that same problem. I keep trying to teach them how to do basic stuff, so they don't need to call me every time they need to do something a little out of the ordinary but they just seem to be afraid of learning computer related stuff
  2. I don't hide my address from friends, family or co-workers either - but they all get educated before I give them my address Unless, of course, I know beforehand that they won't spread my address. For instance, I gave you guys my personal address because I don't think you'll make bad use of it
  3. That's why very few people have my personal e-mail address and those who do I make sure are educated by me Besides, whenever someone sends me an e-mail (to any of my addresses) and that e-mail has multiple recipients with visible e-mail addresses, they get a nice message from me explaining why they shouldn't send messages with visible multiple recipients (virus take advantage of it, spammers too...) and asking them to use BCC for the recipients
  4. OK, I think I found the problem that was preventing the script from working in the first place: instead of >include_once "http://www.avantixgroup.com/acounter/acounter.php"; put just >include_once "acounter/acounter.php"; As for the permissions of /public_html , you don't need to change those, so keep them as they were (I can see your website now, so you probably have already done that). Then just add the following line to the end of your .htaccess (the one inside your public_html folder): >AddType application/x-httpd-php .php .shtml Note that the last one is ".shtml", not just ".html" I tried pointing my browser to http://www.avantixgroup.com/ and the page showed up fine, with the exception of having the "create_output("index.shtml"); ?>" stuff in the bottom but if you add that line to .htaccess, it should work. Don't change anything else, just add the line I mentioned to the file "/public_html/.htaccess" and remember that it's ".shtml", not just ".html"
  5. George, let's pause for a little and look at the situation. Perhaps we've skiped an important step of the process somewhere along the way. Could you please describe exactly the steps you performed until now? Let's see if we can pinpoint the problem...
  6. No problem. Glad it worked
  7. Sarah, if you could post (or send it to me in a PM, whichever you prefer) the relevant code I could take a look at it and try to figure out what's wrong.
  8. Ian is right, the PHP files don't need their permissions set to 755. I just said that because it's what's on the script installation instructions and I guess I went with the flow
  9. Well, you do need to include the "deltata_" prefix before the database name but this shouldn't have anything to do with the other error... First, change the database name in your config.php: $dbname = "deltata_phpnuke"; The username doesn't need the "deltata" prefix so you can leave it as it is. Now, regarding the "undefined function" error... have you uploaded every single file needed by the script? What that error means is that PHP-Nuke wants to call a function (message_die())that should be somewhere it could find it but it doesn't. I'd guess this has something to do with include paths... What I mean is that PHP-Nuke probably has some configuration option to specify the directory on the server where it's working. Then it builds the paths to the rest of the files it needs based on that configuration option. If this option was not set correctly, then PHP-Nuke will not be able to load other files it needs, thus not finding the functions it wants to call. If you could post the rest of your configuration file (ommiting all the usernames, passwords and other sensitive data) we'd be able to see if this is the case. EDIT: Scratch that. I just downloaded PHP-Nuke and it has no paths to configure...
  10. No need to go away, I won't byte Just kidding, of course Seriously, two heads are always better than one, so keep your eyes on this thread, Jack. No matter how much one knows about something, one never knows when he/she will mess things up without realizing. That's why I always like others to look at my suggestions and correct me where I'm wrong, or suggest different approaches Let's see what George decides. One way or the other, the important thing is that he can do what he wants
  11. I'm not sure I understood the problem. If you upload a file named "index.php" to your /public_html folder, it will automatically be displayed on your browser when you visit www.asdf.com As for the Nuke stuff, you can simply upload the contents of the folder you want to upload, into /public_html. PHP-Nuke and Post-Nuke both have an index.php file that, as I said above, if placed in /public_html will be loaded automatically on the browser when you visit www.asdf.com If that's not the answer to your problem, could you please specify a bit more?
  12. I was about to visit the URLs you posted but none of them seems to resolve. Is this a problem with my connection or is anyone experiencing the same?
  13. Hi George. Sorry for taking so long to reply, I wasn't home (it's my sister's birthday, so we went out for dinner) About the AddType stuff, you can add it anywhere in the .htaccess file, it doesn't really matter, as long as you don't put it between two already existing tags. To be safe, just add it to the end of the file. And don't worry, it won't mess up your website. Edit Oops... I didn't notice Jack's reply. Jack is right about the .php extension. Well, half right, anyway The usual way is indeed to use .php extensions for PHP scripts. I just suggested that you used the .htaccess method because I was supposing you'd have other pages on your site and if you were to change the extensions from .shtml to .php, you'd have to change all the links on all the pages. If you are willing to do that (or if you don't have that many links after all), do it. It's the best way to go and you won't need to use the .htaccess stuff. If you don't want to go to the trouble of changing the links, try the .htaccess method. The problem here is that Apache (the web server) knows that files with .php extension should be processed by the PHP engine but treats files with .html (and .shtml) extensions as being plain HTML files with no scripts in them. So what we want to do by using the .htaccess method is to tell Apache that on the directory where the .htaccess file resides, every file with an .shtml extension should also be treated as containing PHP code. Which reminds me: you're using just .html in the AddType line when you should have .shtml. Use this instead: AddType application/x-httpd-php .php .shtml Let us know if this does the trick or if you prefer to change the .shtml extensions into .php Edit 2 I just visited the URL you posted but instead of a webpage, I got a dialog asking me what I wanted to do with the file I was trying to get. Is anyone else getting this? I saved the file to my computer and after looking at the code I might have a clue on why it's happening: Microsoft stuff everywhere! The code is so full of non-standard stuff that Mozilla and Opera don't know what to do with it Anyway, I looked at the PHP section and it's placed correctly. Now you just need to fix the .htaccess AddType thing and you should be ready to go
  14. If you want some files to be available under www.asdf.net you need to upload them to the public_html folder (anything below that level will not be available on the web, by the way). There's no way to upload a folder into /public_html/ and make it available on www.asdf.net because /public_html/ *is* www.asdf.net. Hope this clarifies it
  15. Well, if it says 755, it's better to use 755. I said 777 because I had just replied to another thread where George needed to use 777, so I guess I was in the modd
  16. Well, the permissions problem is something rather strange indeed. A CPanel bug? I haven't seen any problem such as that and I can't seem to be able to reproduce it. Let's try a different approach. Are you comfortable with using FTP clients? I hope so Using an FTP cliente (there are several available for free; I recommend SmartFTP), log in to your account. Navigate to the folder where you uploaded to script to and select the "pages" directory. This is where it may be a little different if you use another FTP client but generally you'll be able to right-click the folder and a right menu will appear where you will have something like "Permissions" or "Chmod". Select that option and then change the permissions to 777 (the interface is very similar to the one in CPanel's File Manager). If that doesn't work, then there's something wrong with your account and I suggest you drop a help desk ticket so someone can take a look at it. But it should work As for the HTML code, don't worry about what you see in the WYSIWYG editor. What matters is the code. If you inserted the PHP code in a place where you could write text to be displayed on your webpage, you should be fine.
  17. Hi Thomas. Using CPanel's File Manager, change the permissions of your "/public_html/whoops/links/" directory to 777. It seems that using the numbers sometimes messes things up, so if you end up with different permissions, use the check boxes instead. 777 is equivalent to checking all the boxes. This should do the trick
  18. WOW!!! 700 Mb of data? Now THAT'S a real database!! As to your question, the MySQL "LOAD DATA INFILE" documentation has this: I'm not sure if we have the FILE privilege. Also, are the permissions on the uploaded file set to be readable by all?
  19. Bohatir, you don't need to learn HTML to use a photo-gallery like the ones I mentioned. You can even keep frontpage to make the rest of your website, if you want. The only thing you need to do is change a couple of lines in the configuration file of the software to adjust database usernames and passwords (the instructions on how to do this come with the package) and then upload everything to your account - and you already know how to do that After that, the software has an installation script that takes care of everything for you! As to learning HTML, I guarantee you that it's not hard at all. And, just as turtle said, you have lots of online resources to learn from. I'll recommend a classic that comes back from the days when MS didn't even have Internet Explorer yet (those were the days ): The Bare Bones Guide to HTML (don't worry, it has been updated as time moves on and now it has settled on HTML 4.0, which is a good starting point to learn) Anyway, back to the gallery stuff, at least give it a try. You can't tell if you are able to do it until you try it, right? And if you need help, you know where to ask
  20. It doesn't let you change the permissions? Strange... Forgive me if it's too obvious but are you writing each number in it's own box? I mean, each 7 should go into one of the text boxes. Also, instead of writing the numbers, try checking the check-boxes. 777 is equivalent to checking all the boxes. As to inserting the PHP code in the HTML file, it's simple. Just insert it whereever you'd insert a number to act as a counter. You just have to copy the PHP code block into the place you want it to appear. I'm not sure what else I can say. In order to be more specific, I need to see the HTML code of the page where you'll be inserting the counter, so I can specify exactly where in the code you need to put it.
  21. I don't see anything wrong with the code so... I'd say the problem is that the browser isn't capable of hiding objects inside the DIVs. Why? Haven't got a clue... It's a problem I was never faced with before. Try keeping the text in the DIVs and add the Flash animations to both DIVs. If you see the text changing but the SWFs keep showing, you'll know it's not a problem with your code but a problem with the browser not being able to hide the Flash Objects.
  22. Another correction: You'll need to adjust the include_once "./acounter.php"; to reflect the directory where you placed the script. For example, if you uploaded the counter script into "/public_html/acounter/" and the page you're putting the counter in is "/public_html/index.html", you'll need to change the "include_once" line to this: include_once "acounter/acounter.php";
  23. Corrections, corrections... I downloaded the script and after looking at the directory structure, I have a correction to make to my instructions above: You do upload all the files to your account but you only change the permissions of the "pages" directory, the one that you upload along with the other script files, not the one where you store the script files. Let's say you upload everything into "/public_html/acounter/"; you just need to change the permissions of "/public_html/acounter/pages/", not "/public_html/acounter/". Other than that, I think what I wrote on the previous post is pretty much what you need to do.
  24. I've split the "Can I Use This?" topic and moved these posts under "Scripting & Programming -> PHP - Open Discussion", just as Jim noticed they should be. It's a new subject, so please start a new topic for it, Geroge. As for your question, you insert PHP code into an HTML page by using the opening "<?php" tag and the closing "?>" tag. Everything in between those two tags will be treated as PHP. As for the directions of the script you want to install, I don't know the script but I'll try to help you out. First of all, you probably need to upload all the files into one single directory, keeping the package's sub-directory structure intact (i.e. don't move any files around before uploading). Then you need to change the permissions ("chmod") for the files. You can do this with CPanel's file manager by cilcking on a filename and then by clicking the "Change permissions" on the right hand menu. For each of the script's PHP file, set it's permissions to 7 5 5 (use the three text boxes on the last line of the permissions' table, the one labeled "Permission", just below "Execute"). Now comes the part that I'm not sure about. It says to "give write permissions to the directory" - which directory? I'm supposing it refers to the script's directory, so, using CPanel's file manager once again, select the folder where you uploaded the script files and change it's permissions to 7 7 7. After this, you just have to add a little PHP script to the webpages where you want the counter to appear. For that, you just need to place the following piece of code wherever you want the counter to show up: ><?php include_once "./acounter.php"; $ani_counter = new acounter(); echo $ani_counter->create_output("page"); ?> You just need to make a little adjustment: replace "page" with the HTML file you want to track. You should also make sure that Apache will treat this file (the one you're changing) as a PHP file, or else it will ignore the PHP block. That's as simple as changing the extension of the file to .php or (if you have other pages that link to this one and don't want to fix all the links by hand) add a .htaccess file to the same directory with the following content: AddType application/x-httpd-php .php .html Phew! Long one but hope it helps
  25. dragon (as in Double Dragon, the game )
×
×
  • Create New...