| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| PHP Support Topic | |
|---|---|
| Tweet Topic Started: Apr 5 2005, 05:42 PM (2,072 Views) | |
| Jeremy | Apr 5 2005, 05:42 PM Post #1 |
![]()
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I'm feeling nice, today. Until otherwise noted, I will be willing to provide answers to any of your PHP questions, in this topic. I'm sure I'll be assisted by plenty brilliant PHP Programmers, such as Seth, but just know that this topic is here if you want to ask something. ![]() Everyone please keep in mind that you cannot use PHP on your InvisionFree Boards. So, don't post here asking for codes for your Forum. As a matter of fact, don't post here asking for codes, at all. ![]() Other than that, ask away. ![]() :jeremy: |
![]() |
|
| solinent | Apr 5 2005, 05:56 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Ok, well i've heard of a php text grabber, and I could easily get my hands on one(for my site, you know) but my server doesn't have php, and I have to use asp. Asp will cost me, but that's OK. I'm just wondering how these text-grabbers work, and if I could grab a php script, with asp. All this will do is get some info from the game site, runescape.com(with their permission), and help me run calculators for skills, and other things where a dynamic script would give me an edge on my site. Thanks for your help Jeremy! And Seth if your there lol !
|
![]() |
|
| Jeremy | Apr 5 2005, 06:16 PM Post #3 |
![]()
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
If you're still here, could you edit the site link out of your post? I'm pretty sure that's against the rules... Also, I don't know anything about ASP, so I don't know how it would work there. What exactly do you mean by text grabber? Like grabbing text off of other web pages, or grabbing data out of text files? |
![]() |
|
| solinent | Apr 5 2005, 06:28 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Well I edited the thing out Anyways, I mean like taking content (skills in paticular, it gets their experience in a skill if they type their name in, at least that's what it should do) and putting it on my page.I could give you a link to a webpage that does this with Php if you like
|
![]() |
|
| dbzlotrfan | Apr 5 2005, 11:20 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
what does this mean? Fatal error: Cannot instantiate non-existent class: skin_tutorials in /home/compjus6/public_html/tsfa/sources/functions.php on line 601 Does that mean the "class skin_tutorials ()" doens't exist? or what? |
![]() |
|
| Seth | Apr 5 2005, 11:48 PM Post #6 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yes. It's like saying when you haven't defined the thing yet. |
![]() |
|
| solinent | Apr 8 2005, 04:00 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Ok, since I figured out that you can't retrieve a php script with asp, I am trying to download php onto my server. But because the person who does things like installation and things like that onto the server im using is away, for now i'll have to download onto the comp that i'm using. I've done everything to set up php on an apache server, exept the one, the last code bit you have to update to the httpd file(I'm using windows). The thing I have to do, is place the following code into it:
I know what it does, but can someone tell me where it goes? If you could that would be great! :w00t: |
![]() |
|
| Seth | Apr 8 2005, 04:36 PM Post #8 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
If you're on windows: Control Panel > System > Advanced > Environment Variable > Add "C:\PHP" to the list. |
![]() |
|
| solinent | Apr 9 2005, 08:30 PM Post #9 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
ok ty, It was being problematic, so I just installed it as a module. I've almost made the program now, (to get someones skills from a page) Actually, I could use it, exept for one problem. Look at the code, and then i'll tell you the problem.
Ok, the lines might be a bit screwd up, but I think you should be able to figure it out. Ok, what the program does, is set an array to $lines for each line in the file on hiscores.runescape.com/blahblahblah...(i forgot the entire filename, look at code to seee it) so if i wrote echo $lines[9] it would echo line number 10 in the source code of hiscores.runescape.com/blahblahblah...(because of makeing it to complicated i'll still refer to line #10 as #9) Now, I need to check if line #13 (or $lines[13]) is equal to $lines[13], because in some cases it won't. (If I was doing defence instead of attack, it would be the following code...
and defence might not be on the line where it would normally be if attack was not on the highscores(e.g. their attack is too low). I hope you are still following me. Now the problem is, I need a value for $defence and the function that I use to retrieve data is file() and I don't know what the EXACT value of lines[13] is. (subsitutie 13 for anything.) Can someone tell me how to find the EXACT value without actually displaying the html code, or could someone run the program and test it? It works if it tells you your attack. If you need to, use my username, solinent, on the part where I need a user name, and replace the action="/contents.php" with whatever you named your file. All I need to know, is the EXACT value of lines[13] and I could figure out the rest by myself. Thank you very much! All help is very much appreciated! |
![]() |
|
| solinent | Apr 10 2005, 09:54 AM Post #10 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
Well..I got it to work by myself(Wow php sure has alot of usefull functions!) Here's the code for one of the calculators just incase you want to know :):
(Ps. I solved the problem by instead of finding the entire string, just finding a w, and replacing all the ws in their name(when checking) to questions marks(so that the count is still equal) Test it out with the name "Solinent"! |
![]() |
|
| Jeremy | Apr 10 2005, 08:16 PM Post #11 |
![]()
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Glad you figured it out... Sorry I wasn't more help, I've been busy all weekend. I'm back now, if anyone else has any questions.
|
![]() |
|
| Das | Apr 10 2005, 11:05 PM Post #12 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I have a really basic question. Do you have to know any language other that PHP to be able to use it? I have heard alot about Myslq and PHP and I wondered if you had to know both to do PHP? I want to learn PHP, but Idon't want to get half way through learning it just to find out you must know something else. |
![]() |
|
| Seth | Apr 10 2005, 11:13 PM Post #13 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You should know HTML to do PHP. MySQL is not required but is very handy. |
![]() |
|
| Das | Apr 11 2005, 12:08 AM Post #14 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I know HTML. How handy is MySlq? Is MySlq hard to learn? Can you use Javascript in php? |
![]() |
|
| Seth | Apr 11 2005, 01:07 AM Post #15 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Good. Very. No. No. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
6:24 AM Jul 11
|




![]](../../../../0/1/0/p601690/pipright.png)
Until otherwise noted, I will be willing to provide answers to any of your PHP questions, in this topic. I'm sure I'll be assisted by plenty brilliant PHP Programmers, such as 




!
I'm back now, if anyone else has any questions.

6:24 AM Jul 11