Jump to content
xisto Community

vistal

Members
  • Content Count

    17
  • Joined

  • Last visited

Everything posted by vistal

  1. Thanx!Now the problem is corrected & files are working correctly.But I still can't understand why the same script with same coding was working on another server without any warning/error.Anyways, thanks to both of you.
  2. Thnx! a lot. I actually wanted to share my problem to get different opinions about what others say.'calkid' wrote a lot about my issue & yes after reading all this, I'm in a better position to handle the situation I'm currently facing. To remain busy in other works won't give me too much time to think about her. And may be, one day I'll just forget all the past events and start considering her only one of my best fellows.Thanx again for providing me with your impacting suggestions. Hope I overcome all of my problems.
  3. I'm doing telecommunication engg. in Pakistan. I'm fallen in love with a girl. She's my class fellow. I was and still very uncomfortable talking to her because I always get nervous in front of her. I can't tell u how I managed to tell her abt I love her, but it gave me a real tough time doin' all this and of course! it took a long time.But now when I've discussed all this with her, and even she also unhided the thing that she's also involved in me, the problem is that we two can't be together due to some reasons in both of our familys' religious background. So when we both know the fact that our Love won't be able to reach its final destination, we've decided to remain as just sincere friends, BUT I can't forget that I loved her too much more than anybody else. She means to me a lot.I wanna know your opinion what should I do now to erase my memory in which she's got too much space. I feel like I'm destroying my life for what I can't get. Can you sort my problem out...?
  4. I, on my website, have employed a page to upload files on my website.But I'm having problems using it. When the file is uploaded to the 'temp' directory of my account, and when I use the function 'move_uploaded_file()' to move this file into the actual directory, it returns the errormove_uploaded_file(ABD.jpg): failed to open stream: Permission deniedmove_uploaded_file(): Unable to move '/tmp/phpF5SqzC' to 'ABD.jpg'please help me what should now I do with this..I also tried changing the mode of the 'temp' directory to 755, but it still didn't work. This problem really needs to be fixed. Please sort out this problem or give me an alternative to this function 'move_uploaded_file()'An additional information regarding this issue is that the same file works with no error (using the same function as mentioned above) on another php supported server. So in my opinion (if i am right) there is a need to set the php configuration file on your Xisto.com server to allow this function to be used.
  5. I m from Pakistan & connect through a Dial-up through 56K modem..really pooor speed... I m always connected at 50.6 Kbps..The downloading rate is usually 4.0 to 5.3 or 5.4 and same is for uploading.
  6. Hey! reading out all of the whole discussions, I conclude that rather scripting by your own, you should use a software which offers more flexibility in your Login Script. I suggest you to use Macromedia Dreamweaver 8 to create a login page. What you are required to do is to just create a Database in MySQL, then all other things can be easily done in this professional software from connections making to protect your pages from unauthorized use. Your database would contain a table having at least 2 columns, one for username & the other for password. It's just that much simple. Use phpMyAdmin to create a database if you can't do it throught the command line. Then create a table and name it member & put two fields at minimum, the username & password. Now open your Macromedia Dreamweaver software & create a php page and put a login form there. Now just go to the Behaviours Panel & click on the 'plus' button & select Login User. Now if you haven't made connections to the Database, it will guide you for all of the styeps you have to do with an easy to use GUI. Hope my wordings help you people. If you don't have this software, you may download a Free 30-day Trial version from their website Macromedia.Com. And if you like the software, do purchase it to support their nice work.
  7. Well, if you know designing in photoshop then creativity is not always necessary to build a good designed website. Take my advice. Just go to Template Monster & pick up a nice design there. Now you should just trace that design by your own. What I've done is that I picked up a Flash Website Template from there, copied its swf file from Temporary Internet Folder & extracted the images from that file to re-generate a customized template in photoshop. Although the animation is lost but the design is still in your hand. Do whatever you can with that design. Now, when you're finished with the design, just export it as html by creating slices & then opening the psd file in Adobe ImageReady & then Preview in Browser. Save that page from there. Anyways its up to you how you do it. But then the only thing you need is some editing by Dreamweaver (I recommend this Software).
  8. A year ago I had a free website about music releases & interviews of varius artists. I signed up for a google account & succefuly had the account set up. After 3 months I recieved a check for my earnings & the next month my acount was suspended due to invalid clicks.Now, when I signed up for hosting here at Xisto with a totally different domain name, I again tried to get Google Ads but this time I was rejected.While signing up for that Google AdSense account, I gave them the same info as my previous account had but with a totally different domain name. Could someone please tell me why I couldn't get the account.And do me a favour too, tell me how shud the signup procedure when the next time I try for Google AdSense account.
  9. I've joined clicksor and did all the steps as required during signup.Then I placed the code in to my website's page. But now when I open the page, then in place of the ad, I see an error there mentioning that there is some error on line this this & this...I think this advertising company needs to improve a lot.Well, I suggest you people not to join these time wasting websites for generating revenue, but to join Google AdSense program for true earnings. I myself had an account there but was deleted due to invalid clicks. But I tell u, if you are sincere with your account, you are never unrewarded.
  10. When I joined this advertising program, it seemed to me good revenue generator.But then after a few days when I looked at my account, my earnings didn't increase a bit for almost 15 days.Then I thought to <- snipped -> by myself, & then I noticed that, nothing is taken into account, i.e. when I clicked the ad, no increment in my earnings was shown there even after a day.I think, they are displaying ads on your sites without paying you out the money you deserver. The trick they are doing is that when you signup, the first initial clicks on your ads (if any), are rewarded, and then after a few days of your signup, no additional revenue is generated which indirectly means to a publisher is that no body is <- snipped -> whereas, the truth is that, despite of clicks, you are not rewarded.I suggest you people to switch to Google AdSense as mentioned by Opaque, because this is the only original good advertising service provider.}}}
  11. Macromedia Dreamweaver is a superb software for professional web designing whereas Microsoft Frontpage seems as it's made for kids.Dreamweaver might look complex in its layout but believe me once you become familiar with it just a bit, you'll love working in it & will never look back at Frontpage. I started my work in Frontpage but was faced many problems, and when I switched to Dreamweaver, everything's going perfect.Dreamweaver is the winner in professionals!
  12. When you change your Domain Name Servers to point to a new webhosting server, the process is quite steady. It usually take up 2-48 hours. I remember when I changed the DNS, the new point changed almost after 2 days.I have a suggestion for you people. Try using some proxy webservers or websites which offer anonymous browsing. Browse your website cpanel through these websites & I'm sure if your website exists, it will show up from there. Type "Anonymous Browsing" in Google search box & the first result will be the page, that will be useful to you.
  13. I would suggest you to use CuteFTP as your file manager. It's best in the sense it resumes uploading from the broken connections & then it simultaneously can have too many connections uploading many a files at the same time, saving your precious time. I myself use it & never got any problem other than from the server's side.It also has an easy to use interface, just click the New connection button and put the ftp info ther & you're done. CuteFTP is simply the best.
  14. Yahoo! must be doing some thing competitive to Google Ads.I would like to signup for Yahoo! Ads services, but I can't find the link to this service page.Could anyone please help me out in finding that link. Or if you know the exact address, you're requested to please post that link here.. So that many other people looking towards easy earning would also be benefited.
  15. Yup, you're absolutely right in saying that beacause it's really easy for Google to track for every click. I my self had an account with Google AdSense, and I earned almost $300 there but then I got banned due to invalid clicks. And I accept, I tried to make them fool by <- snipped -> on my own website, but I myself was made fool in reply. Well, many AdSense account holders are banned because they unknowingly give Google the food to track their abuse. What they usually do is that they <- snipped -> with the same IP address each time & most of the time there is not much difference in the click time, i.e. the clicks are generated at the same time. And then they add another weak point, that they go and check their AdSense account to see the update in their earnings. And, then the most important point, if your website doesn't have much page impressions, then how come the clicks are generated with a few visitors to your website. Just use common sense and you'll see it yourself that you are abusing there services & then you accept your indulgence yourself. So your account must have to be suspended in this case. To generate a great revenue, just keep all these things in mind that you don't provide them with these clues & get safe and enjoy...}
  16. I'm not a professional web developer but I've learned a lot since I used Macromedia Dreamweaver. The latest version 8 supports PHP 5. If you select PHP as your working language, you can use this software to automatically add dynamic content to your website with MySQL as a requisite. If you have a MySQL database containing records like a songs information database, then you might probably not be able to add a good search page to your website which will search records in the database. I faced the same problem, but now I'm able to create one sophisticated database search. I would like to share my knowledge with you. But it's not possible for me to start with a certain point here. I would like you people (interested in creating a search page) to post your problems here & I'll definitely help you. You can see the search which I created on my past website as a sample of what I'm talking about. Click here to visit that. One thing I used to look for was a search script which could also bold the search terms in the search results, but couldn't find that. Now you can see on my past website that it also bolds the search terms in the search results. As a demo, put the keyword The in the search box & you'll find out how cool search results page you'll experience there. I would welcome any queries & suggestions regarding this discussion. I think nobody's getting time to initiate. Ok then! I start it my self. Well! of course the search will be implemented on an existing database, so the first thing you need is a database. It may contain any sort of data, but lemme make it a music database. You must be familiar with MySQL & its implementation to understand what I am going to say below. And if you aren't, then it's better to jump to any other topic. (You may ask any question as well...) Designing database is not any task. It would become easy if you mess up all the data in a single table, but of course, it would heavily increase the size of your database. Try to divide your data in different tables for optimum performance. For instance, if you are creating a database which would be used for displaying songs available to be downloaded, you need at least 5 tables in my point of view; artists, album, genre, songs, links. The tables must be related to each other by ID keys, like albums table would contain a column of artistID whose value will be the value in the ID column of artists table, which will show that a particular album belongs to a particular artist.. And same applies to other tables likewise. Uptil this point, it was an overview of how the database should be sorted out. Now the records should be created. In the next reply to this post, I'll post a sample code to let you understand how the things should go. Below is a sample MySQL querying performed in PHP to a pre-defined MySQL database. Just look at the code below to get an idea for fetching the results independently from the tables. [font=Courier] // SQL Query // ***Songs*** // Any keyword Songs (Songs) using $originquery mysql_select_db($database_connMembers, $connMembers); $query_rsSongs = sprintf("SELECT * FROM songs WHERE title LIKE '%%%s%%' ORDER BY title", $titlevalue); $rsSongs = mysql_query($query_rsSongs, $connMembers) or die(mysql_error()); $row_rsSongs = mysql_fetch_assoc($rsSongs); $totalRows_rsSongs = mysql_num_rows($rsSongs); // ***Artists*** // Any keyword Artists (Artists) using $originquery mysql_select_db($database_connMembers, $connMembers); $query_rsArtists = sprintf("SELECT * FROM artists WHERE name LIKE '%%%s%%' ORDER BY name", $titlevalue); $rsArtists = mysql_query($query_rsArtists, $connMembers) or die(mysql_error()); $row_rsArtists = mysql_fetch_assoc($rsArtists); $totalRows_rsArtists = mysql_num_rows($rsArtists); // ***Albums*** // Any keyword Albums (Albums) using $originquery mysql_select_db($database_connMembers, $connMembers); $query_rsAlbums = sprintf("SELECT * FROM albums WHERE title LIKE '%%%s%%' ORDER BY title", $titlevalue); $rsAlbums = mysql_query($query_rsAlbums, $connMembers) or die(mysql_error()); $row_rsAlbums = mysql_fetch_assoc($rsAlbums); $totalRows_rsAlbums = mysql_num_rows($rsAlbums); $totalResults = $totalRows_rsSongs + $totalRows_rsArtists + $totalRows_rsAlbums; $m = 0;?>[/font]Now, the art goes with you, i mean how you place your code in your page to look good is totally upto you. I've left almost every thing after that code in this discussion which would have to be used to display the search results, because it depends on how you want it to look like. Finally below is the code to BOLD the search keywords in the search results. You have to somehow integrate this code in to your page, so that each result is processed through this code. If you are comfortable with PHP, you will surely understand the simple logic which I myself created using a bit of built-in PHP functions. The if-else statements ensures that all the matches in the record whether they be in capital letters or small letter must be processed for Bold. The variable $keywords below in the code is for that search terms which user entered in the search box. The rest will be explained by the code itself. [font=Courier]<?php // Bold $cnt = substr_count($keywords, " "); // $cnt is the number of words in the query $val = explode(" ", $keywords); // $val is an array to store all the words separately for($j=0; $j<=$cnt; $j++) { if(substr_count($resultvalue, $val[$j]) > 0) { $search[$j] = $val[$j]; $replace[$j] = "<b>".$val[$j]."</b>"; } else if(substr_count($resultvalue, ucfirst($val[$j])) > 0) { $search[$j] = ucfirst($val[$j]); $replace[$j] = "<b>". ucfirst($val[$j]) ."</b>"; } else if(substr_count($resultvalue, strtoupper($val[$j])) > 0) { $search[$j] = strtoupper($val[$j]); $replace[$j] = "<b>". strtoupper($val[$j]) ."</b>"; } else if(substr_count($resultvalue, strtolower($val[$j])) > 0) { $search[$j] = strtolower($val[$j]); $replace[$j] = "<b>". strtolower($val[$j]) ."</b>"; } } $search = implode(" ", $search); $replace = implode(" ", $replace); str_replace($search, $replace, $subject); // $search is the text to be replaced // $replace is the text which replaces the $search text. // $subject is the text which contains $search text. }?>[/font]I hope it helped you a lot. But if you feel uncomfortable with any statement, feel free to post your problem. I'll try my best to answer you. That's it for this reply to my own topic. Well, you should keep this thing in mind that your user is going to enter any value in the search terms & your code should be able to process or handle all such requests. For example when you are querying the MySQL server, and if you use the values in the MySQL command from a variable, so you must ensure that the variable doesn't contain any apostrophies in it, else the result could be very unexpected & the next results page will seriously show off that you're a poor programmer. Then your search form should not make a user get in to trouble, like there's a lot of options like, search in artists or search in albums or search in song titles or like that.. Rather if the user enter any keywords, your code should automatically search for all the possible matches in artists tables & in albums table & in songs tables & then display the results separably without effecting the look of your page. Another best method by which your website visitor will be able to save time is that if he/she founds some pre-defined searches in a corner, and if the keywords are the same he/she was going to enter in the search box, then a direct click to that keywords link will surely solve the problem. Keep track of the entered keywords by adding some code to your page & then display them on the main page of your website as a separate source. Now, the point raises which form method to be used. Of course, you must use GET method, because this is how you'll be able to provide the direct search links for the most used keywords. And, I think, all these things would perfectly make up a complex & effective database search system. I used songs information database as an example here, but the tips n tricks may be followed for any type of database. Hope, you get my point. Notice from wassie: Plz put all posts you made about 1 thing in 1 post. and code the queries
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.