Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
There are 0 guests and 1 members in the forums right now.
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
libby342
Joined: Jan 11, 2007
# Posts: 8
|
Posted: 01/11/2007 10:22 pm
HEllO,
This is my first post here so please bear with me while I try to explain what I am looking for so that hopefully someone here with alot more knowledge in this can assist me with this issue.
I have a jomoscript search engine fully upgraded. I was looking to start up a 2nd engine so I thought I would go with smartPPC there light version ( I am going with the light version first only becuase I am testing waters at the moment and dont want to invest into a 2nd engine if I cant use it.
My questions are this, I installed the smartppc light version but some of there upgraded php pages and cgi pages I already have on my jomoscript, so I was wanting to know if anyone here is familair with these 2 scripts? And if so is it possible to use some of my PHP files and HTMl files from my jomoscripts over into this smartPPC light version scripts?
They seem to somewhat be similiar but I am not sure if the 2 will work together, say for example the SmartPPC light version script does NOT have IP country Blocker with the light version right? But I have the PHP file for that certain PHP file in my Jomoscripts along with a few others, but the smartPPC has a VARS to edit which I can follow along with that, but again I have had some tell me the 2 scripts wont work together because my jomo is written in PHP and the smartPPC light version is written in CGI but yet both seem to have PHP files in them and both seem to have CGI files in them but again I dont have the upgraded version with smartPPC but if I already have the files from my jomoscript if someone here can please advise me the right way to work the 2 scripts together I would sure appreciate it if its doable that is.
ALSO I need to mention that when I looked over the demo for smartppc PRO online version they referred to all the template files being in a directory but on the light version there that I installed with them there doesnt seem to be the same path to these files or even a directory in it? So would I be safe to maybe then just use some files again off of my jomofiles into that smartppc light version and would this work? And if so how please?
thanks so very much for anyone who can assist me with this complicated questions here and I do so hope I explained it enough so that hopefully someone here can shed some light on this for me. I have spent the last week trying to compare the 2 but I havent moved any of the jomofiles into the smartppc script yet as I am a bit stumped as well as to what files to name .html extentions too and what to name .php extentions too if that makes any sense to all this? I hope so.????
But if the above isnt by some chance workable then would the smartsearch scripts work with my jomoscipts? Again I am not to clever when it comes to things like this, I can install scripts and ftp things over and I can read some code and move it around abit, but just need some real guidance so I dont end up breaking my jomoscripts in the process of trying to use there files into these other 2 new scripts I have mentioned here, but I do so want to be able to get a 2 nd engine going with a new type of script other then jomo the 2nd time around as they are a real pain to work with when it comes to xml feeds etc and installs.
I look forward to all and any replies of help on this matter. soon I am hoping thanks everyone
libby342
[ Message was edited by: JimBot 01/11/2007 10:59 pm ]
|
 |
JimBot
Administrator
Joined: Jul 20, 2003
# Posts: 234
|
Posted: 01/11/2007 11:00 pm
NEED SOME HELP WITH PHP AND CGI SCRIPTS PLEASE
Please don't SHOUT here. It's not necessary.
|
 |
libby342
Joined: Jan 11, 2007
# Posts: 8
|
Posted: 01/11/2007 11:10 pm
HEllo,
I am so sorry I didnt mean to shout at all,I didnt even realize that I had put the title in all CAP letters, thanks for editing it for me, dont want to offend anyone, especially not with my first post here to this forum and all. Just looking for some help.
libby342
|
 |
Prowler
Moderator
Joined: Aug 14, 2000
# Posts: 1721
|
Posted: 01/12/2007 12:45 am
Welcome to the Forum - libby342. At the outset, unless one is familar with the actual scripts involved, we can't offer much help. You will be well advised to seek the help of a professional PHP/CGI programmer to make the required modifications.
PHP codes are more "friendly" than the cryptic Perl codes in CGI. However, most scripts are written as blocks of code which call others as per the requirement, thus making a casual analysis of the code difficult unless you wade through hundreds of lines of codes.
|
 |
libby342
Joined: Jan 11, 2007
# Posts: 8
|
Posted: 01/12/2007 01:31 pm
Hello Prowler
thank you for taking the time to reply back to me on this matter appreciate it. Let me ask you this if I may, can PHP and CGI run together then on the same scripts?
Also if I am running a complete CGI script do I need a database still or is it not necessary when running CGI scripts?
I have tried to ask programers these same questions but they dont seem to give the whole answer if you know what I mean?
SO I thought I would try to ask some member here who have worked with code for there advice or tips even I am open to all suggestions.
thanks again for the reply hope more will follow and offer some more advice or tips I could try with these 2 scripts
libby342
|
 |
Prowler
Moderator
Joined: Aug 14, 2000
# Posts: 1721
|
Posted: 01/13/2007 01:03 am
>> can PHP and CGI run together then on the same scripts?
PHP and CGI are independant of each other, but they can work together. PHP generally does the frontend whilst CGI can take care of the heavy duty backend although it depends on the programmer eventually.
>> if I am running a complete CGI script do I need a database still or is it not necessary when running CGI scripts?
CGI scripts or for that matter any server side script need to store the information somewhere. They do that in a relational database most of the time, though they can simply write out the information in a text file if the volume is low enough.
|
 |
libby342
Joined: Jan 11, 2007
# Posts: 8
|
Posted: 01/13/2007 03:29 pm
HI Again,
Thank you very much Prowler once again for these tips. SO it is safe to say that I should have a database set up even though I would be using then a CGI script? I thought as much but wanted to make double sure with that part of it thank you.
Now you said that even though PHP files and CGI files are independant of each other they can work then together in the same scripts. SO then it would be possible then to use some of the jomoscripts with the smartppc script?
or could I even blend them in with say a smartscript CGI script as long as I was to create a database? But then I would need some help as to what I am asking the database to pull from. would it be pulling info from the PHP files or the CGI Files? OR pulling the info from both these Files?
I know how to do databases as I do have one for the jomoscripts already, so I just wanted to make sure that you could use PHP files and cgi files within the same script and then again what do I ask the database to pull info from if that part makes any sense?
Now I am once again stumped however as far as directories and subfiles go and what files need to actually go into say each folder and where. But given that I have 3 scripts to follow along with it should just be a matter of duplicating there setup or is not that easy?
Please if you or anyone can further clarify this for me I would once again appreciate the feedback with this.
I should mention that the smartscripts dont seem to come with a database as it is what you said they seem to write out the information in a text file.
I found a useful site that explains the in's and outs of CGI files and perl. The way I understood this part was that PERL is actually CGI or am I getting that confused?
I know that I ask alot of questions but that is the only way I can learn, so I once again will be very greatful if you or anyone of the members here can enlighten me as to the answers with these questions I have posted here and will once again await a reply to this thread and post
thank you everyone who will assist with this post and questions
libby342
|
 |
Prowler
Moderator
Joined: Aug 14, 2000
# Posts: 1721
|
Posted: 01/15/2007 09:58 pm
I am sorry about the delay in answering.
>> could I even blend them in with say a smartscript CGI script as long as I was to create a database? But then I would need some help as to what I am asking the database to pull from. would it be pulling info from the PHP files or the CGI Files? OR pulling the info from both these Files?
PHP files can work from anywhere from the document root while CGI scripts ( actually for most part it is written in Perl) require that they are deployed from a specific directory - usually cgi-bin. PHP files can work with default file permission whilst CGI scripts need to be set at execute mode - 755.
Databases are entirely different entities so they can be queried from PHP or CGI.
As you appear to be going on your own, you will doubtless have plenty of doubts and this is one of the top places where you will find answers. You will need tons of patience and possibly a development server with similar OS/ server setup like that of your production server.
If this seems daunting, you can start off with a designated directory in your production server itself. So if anything breaks, only you will know that and you can rollback to the previous version. Take a backup before you start.
|
 |
libby342
Joined: Jan 11, 2007
# Posts: 8
|
Posted: 01/16/2007 09:39 pm
hello,
thank you for getting back to me on these questions once again, I really appreicate the help thus far, yes I am going to go this alone, and hope I can blend these scripts together as into one. As most programers say confusing things as to this or that cant be done and I still believe after looking through the coding's that they can be blended.
I have patients so wading through tons of coding doesnt worry me to much. I have HTML tool kit and PHP designer on my pc that I would be using to work with but... I will explain this part of it down below to help all that read this to better understand my questions with these methods.
I am glad that I found this forum to help me along the way with this project. As I am sure I will be having tons of quetions and needing help along the way for sure.
So yes I do have more questions as again thats the only way that I learn things as I said so here goes.
1)The part on where the php files can work from anywhere and that the cgi files must then go into cgi bin, makes a bit more sense to me now then it did before, however this smartppc light version does seem to have files in these directories or folders (as I am working with Cpanel and that is how these are all set up),but If you could tell me or explain to me how I could get a screen shot here into the forum maybe that would help you to better understand what I am talking on with this script if that is possible to do?
but I can say that yes the files are in the CGI bin, and then some in the main section of the script, and then they also have HTML files which I can only assume then that those are for editing, there coding also seems to have TOCTOC files in there coding so I did a search for that term and found out how to edit that part of them I think still learning that one but they also seem to have what is called ENCRYPT KEYS? Would those keys be able to be changed say into my own password ENCRYPT keys or should I leave those as they are?
They also seem to have what is called a Thumbs.db---File Type: Microsoft Office Document but that seems to be ENCRYPTED AS WELL,or at least it didnt have a option to edit it in the cpanel SO I am not sure exactly how to get this file open or even to read it if you have any insight to this part of it I again would appreciate the much needed help along the way with this.
They also have this file here:timetoptable.dat so I am assuming once again that that file goes into the dat base section of the msql. But then they also have this file in a database folder: mysql.lib.php, so it seems that some of these files even though they are in different files all then pull together in the VARS file and these 3 files as well:
config.lib.php
message.lib.php
text.lib.php
Again still working through which file to actually start with to start to edit, as I am also needing about 40 extra files that I will have to create as they are not in there so that was why I said which ones to call HTML and which ones to call .php files a few post's back but hopefully ( or am I wrong to say that I could use the coding from say a file that is already in the script that is a php file or a html file for example and then just edit the name and the action to show as a new file for within this script of what I need to name it to and thus also add it into the database to pull like the rest of the script is thus doing?
but.... then I saw your part on this and you lost me once again when you said this part:
"development server with similar OS/ server setup like that of your production server.
If this seems daunting, you can start off with a designated directory in your production server itself. So if anything breaks, only you will know that and you can rollback to the previous version. Take a backup before you start.
Like I mentioned earlyer in this post here that I have the HTML tool kit and the PHP designer software on my pc would these 2 do the job for this ?
Because you said Development Server with OS as similar to my already server? IS this meaning my hosting Server? And if so what I did was I put a complete copy of this script right into a subdomain name folder and I created a database for it as well and installed a 2nd script per say there to work with? IS that what you was referring to by the above of the OS of the server?
Again I need to ask before I begin? If this is not what you meant by the above , then how would I go about to set me up a developement server? Is that complicated to do? As I have read alot these last few weeks about everyone testing on the server etc but never tried this or even new how to set this all up? IF its not to complicated would that be easyer to do and work with then working through the cpanel as it does seem to take me forever to pull one file up into HTML tool kit and then I have to close that down to pull up PHP editor copy the code in there and find the page then FTP over to the site and then hope it doenst break along the way. SO if there is a faster way to do it then again I am all open for the steps to set it up for a faster way to work this thru while trying to edit the coding etc.
Also on the HTML tool Kit there seems to be a complete section oh PHP but when ever I tried to open up one of the commands all it seemed to do was give me a help tip and added the piece of coding into the document so I am not sure I am even using that section right??
Thank you very much PROWLER or anyone else here that would be so kind as to contribute to this post and help with the questions I have presented here in this thread to help me to get things sorted before I begin the editing side of these scripts I soooo very much appreciate any and all feed back that everyone here can give me to make this work.
I look forward to the replies back into this requested post
and no worries Prowler on taking a few days to get back to me on this the fact that you actually came back to help me once again is again very much appreciated it by me
ALOT.(that one word here yes this time I did mean to shout as I really am so glad that I found this forum to help me with this topic and issues at hand.
libby342
|
 |
Prowler
Moderator
Joined: Aug 14, 2000
# Posts: 1721
|
Posted: 01/19/2007 06:57 am
Welcome libby342 !
I must say it is a long post.
>> but If you could tell me or explain to me how I could get a screen shot here into the forum ...
The easy way to show the screenshot is put it up in your server and point the url here.
As far as Thumbs.db is concerned, it is a file created by Windows XP to show a thumbnail of the images from a particular folder. It need not be uploaded into the server, in the first place.
To know the logical structure of your scripts, you need to go through them one by one. I know it sounds convoluted and time consuming. But then there is no short cut. If you have to make modification to any code, you must be armed with adequate knowledge of knowing what each part does. The best place to start is not through the Cpanel. You download all scripts to your local machine. Put them in the same directories as you find them in the server.
Open the script in a simple text editor, ( though notepad will do for a while, you will be better off with a better text editor like Editplus or a countless others out there) and read them to know the logical flow of the scripts.
I am sure you will be back here with more questions after that.
|
 |
libby342
Joined: Jan 11, 2007
# Posts: 8
|
Posted: 01/19/2007 08:06 pm
Hello Prowler,
Yes that was a long post there, I hope that was alright to post that long?
Ok now as far as the download all the script files etc goes right, I do have them already on my pc as I had to download the script and then FTP it over to my hosted site so I do have the files all on my pc already here.
I am not sure I follow as far as point the url here? Can you better explain that part please as to how to do it?
I thought as much that I would have to edit the files and add in the extra files I am needing all off line on my PC, but then I don't have anyplace to test them to make sure they all work except to FTP them all back over to my hosting Panel each time I add a file to the script, which is why I asked how could I get a testing developement server site somehow to try these files in first without having to go through FTP each time to test if it works or not. I have a working version that hasn't been altered yet so again can you further explain to me how I could get one set up please?
I am using windows XP home addition here at the moment.
I am using Mozilla FireFox by the way as my browser.
You mentioned this"logical structure of your scripts"
Are you referring to the folders they are located in? Don't mean to sound again dumb here but again have to ask?
thank you and I will await your next reply back to this post.
And yes I am sure I will be posting here on this topic for a few days as I begin the editing side to these scripts, so I do hope no one gets tired of me to soon
libby342
|
 |
Prowler
Moderator
Joined: Aug 14, 2000
# Posts: 1721
|
Posted: 01/19/2007 11:32 pm
>> I hope that was alright to post that long?
Sure is.
>> I am not sure I follow as far as point the url here? Can you better explain that part please as to how to do it?
Assuming that you have saved the screenshot file in the root of your server, give us a link to it like so:
http://your-server/screenshot1.jpg
Please remember that this can be seen by the entire world and hence avoid showing sensitive information.
So you need a development server. Your Windows XP machine can act like one. At the minimum you will need Apache ( World's No.1 http server) and Mysql server. You will also need Perl to run your CGI scripts. Ideally they work best in Linux (any distro) or Unix. But working with a linux server is not for the faint hearted. So they have ported these software in Windows. They are free and require no payment.
There are many versions available. Try this:
[link]
You will have to download the XAMPP which contains a complete Apache server with Mysql, PHP and Perl integrated. This would save you hours of labor setting up each component.
When you are done, point your browser to http://localhost/ and you should see some congratulation message.
|
 |
libby342
Joined: Jan 11, 2007
# Posts: 8
|
Posted: 01/20/2007 08:40 pm
HI Again,
Thank you very much for these steps, I will first want to try out this Apache Friends site that you pointed me to, but of course before I do I have a few questions on the download part please?
You said that I could use my windows XP version as a development server??? How please in detail would I do that part then?
2) On the apache site right it said it had versions for windows and there was one for LINUX as well??
SO which one can I use as you said that CGI scripts would run better with the LINUX version but at the same time I didn't want to mess up my windows XP home addition here with that download if my PC isnt equipped to handle such a download version or are both the downloads the same except one is for the windows version then and one for a linux computer system???
Also they said on that site that there was a updated version for the Linux system, but I didnt see one for the windows version. I went to this link to get there: [link]
Again sorry I have to ask these questions or I wont no how to proceed here
Glad to here that I can do long posts as well here as sometimes I do go into great details with my post's to hopefully explain what I am after as far as the helping side of things go
(3)You said point my browser? IS that meaning just to type in the "http://localhost" So I just type that into say the mozilla browser and then it would show a developing site for me to test in then is that correct?
Ok now onto this part here if I may as well please?
"Assuming that you have saved the screenshot file in the root of your server"
I have not saved a screenshot file in the root of my server? So again can you please be so kind as to tell me the exact steps on how to do that and I will also give that a go to get a copy of then my files here for future help with this project please?
thank you so very much Prowler thus far with all this help it is once again very very much appreciated by me and has helped me get much further with this project at hand.
I look forward once again to your next reply back into this post to proceed further onwards thank you again
Libby342
|
 |
excell
Moderator
Joined: Mar 19, 2001
# Posts: 14502
|
Posted: 01/21/2007 07:57 am
*cough* ummm...I seriously do not wish to be rude - BUT...from a person that has very little technical savvy here, I would like to say - that while it is good to:
"try to ask some member here who have worked with code for there advice"
In my experience unless the coder is already up to their armpits in the code they will not know all the answers, so instead of trying to do it yourself with free directional advice, why don't you engage a programmer and simply tell them what it is you want to achieve, they then will be able to implement the solutions for you.
I liken this to going into a mechanics forum and asking advise from anyone that has worked on cars how to fix your Porsche's computer integration system for your cruise control system that just happens to be custom configured by a Japanese electronics expert but installed in Britain and recently worked on by your brother in law.
Well at least that is how it seems but then, what would I know - I am techno phobic!
|
 |
excell
Moderator
Joined: Mar 19, 2001
# Posts: 14502
|
Posted: 01/21/2007 08:13 am
What I do know is how to save a screen shot...
Go to the place on your computer that you want to show and get it visible on your screen. then click the "Print Screen" button on your computer. then open your graphics program (such as PhotoShop) and open a new file and click "paste". then save that as a .jpg and upload it to your webspace (server) and then copy the URL (web address) of where you have placed it. then post the URL here so people can see what it is you want them to see.
|
 |
Prowler
Moderator
Joined: Aug 14, 2000
# Posts: 1721
|
Posted: 01/21/2007 08:28 pm
>> what would I know - I am techno phobic!
That would be extremely modest. Our learned colleague excell excells in technology.
To quote her automobile example, I had decided to illuminate my path better with a High Intensity Discharge lighting for my SUV. In short I looked for ways to retrofit a HID headlamp. My dealer simply refused on the ground that HID headlamps required major modifications to the housing assembly and wiring harness. But I found information on the Net to go ahead with my own modifications. I am no automobile expert. But I am comfortable working with electronics and electric circuits. I digress here.
The bottomline is if you are <i> equipped with the right information and the right skill</i> you can do anything.
Follow excel's suggestion to save your screenshot file to your server root.
Download the apache server of the Windows version only. Once it is downloaded, it has a self installation routine and will install the combined software with a typical default installation. Upon completion, you can check out your http server by typing http://localhost in your browser's address bar.
|
 |
libby342
Joined: Jan 11, 2007
# Posts: 8
|
Posted: 01/21/2007 09:03 pm
Hello,
Thank you for the steps at least excell on the screen shot I will do those and post the files then here once I do the other steps that Prowler has also been kind enough to post here on getting a server set up.
I hope that I didn't offend anyone here with my questions on this topic I was simply looking for some answers to my first post on this topic and thanks to Prowlers steps here thus far I have managed to get much further then I would have done say with a programer as I do want to be able to do this myself. And most programers have given me different stories up till the time I found this forum that is.
I do know some coding a bit and thus wanted to make sure that what I was after to do with these scripts was indeed workable, which was why I posted and asked so many questions how else does one learn if not to ask questions along the way.
Again I didn't mean to offend anyone here. I will try these steps that you have given me Prowler and hopefully I will be able to come back here should I have yet more questions and in need of the help?.
And like you said Prowler:
The bottomline is if you are <i> equipped with the right information and the right skill</i> you can do anything.
I agree very much with that quote which again is why I posted here in the first place to help me to get better equipped with the right information and the right skills needed to put this into motion.Thank you for staying with me on it Prowler.
thank you all
libby342
|
 |
Prowler
Moderator
Joined: Aug 14, 2000
# Posts: 1721
|
Posted: 01/21/2007 11:00 pm
>>Again I didn't mean to offend anyone here
No offense is meant or taken.
We are glad to be of help. Ask all you want and we will try and help you libby342.
|
 |
excell
Moderator
Joined: Mar 19, 2001
# Posts: 14502
|
Posted: 01/22/2007 01:39 am
libby - it's all fine - we have experts in many fields around here.
hehehe I was trying to follow what you are doing and well... - way over my head, good luck!
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|