Jump to content

JonnoTheDev

Staff Alumni
  • Posts

    3,584
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by JonnoTheDev

  1. $_GET <?php $email = $_POST['email']; header('Location:http://www.example.com/?email='.urlencode($email)); exit(); ?> <?php // http://www.example.com/index.php $email = urldecode($_GET['email']); ?>
  2. Read through the documentation. The API supports many languages including php. This is the document I used when first using Sphinx. http://www.ibm.com/developerworks/library/os-php-sphinxsearch/
  3. You can using the GD library of funtions as mentioned above. Check out the examples on the php manual. http://uk.php.net/manual/en/ref.image.php I would still always prefer to use Imagemagick though.
  4. Thats because you are using LIKE with the parenthesis on each end of the variable. // this will match: sand, band, hand, and..... WHERE field LIKE '%and' // this will match: andover, andes, and..... WHERE field LIKE 'and%' // this will match bands, sandcastle, and.... WHERE field LIKE '%and%' Using LIKE results in a really poor search function in my opinion. Using MATCH AGAINST on a fulltext field also has its drawbacks. In fact using SQL for search is never the best option in my opinion. If you can live will the speed and accuracy of searching the database through SQL then that's fine, however if you want a proper search index then take a look at either Sphinx or Lucene. Not the easiest things to setup and will take a bit of getting used to but for the speed and accuracy of the results, well worth it. http://sphinxsearch.com/docs/manual-0.9.9.html http://framework.zend.com/manual/en/zend.search.lucene.html
  5. Do you have imagemagick on your server? It is 100 times better than using php libraries to manipulate images. just send the commands to the system i.e <?php // resize my uploaded image exec("convert -geometry 150x150 -quality 100 /myfolder/myimage.jpg /myfolder/thumbnails/myimage.jpg"); ?> A lot of shared hosting companies do allow the use of it.
  6. SEO is something you definately want to be looking at. If you want to be making websites for clients then they are going to be asking why their website is not listed in the search engine results. You cannot build a website and then expect the client to go elsewhere for SEO, as it is more than likely that an SEO pro will tell them that their website needs re-designing. You should offer this as a service and it is what usually gets you work. Any tom, dick, or harry can build a website but they cannot make it rank and it ends up on the scrap heap. You must build your websites around SEO, that is imperitive.
  7. I already suggested this, and AJAX is only required if you need access to server side scripts to pull data from your database, etc, but it is such a two-bit solution I would never build a website in this way for 2 massive reasons: 1. Users will not be able to bookmark pages on your website. If you use the DOM to change the layout the url will not change. This also has a massive impact on search engine ranking. 2. If users do not run Javascript then your site is inaccessible.
  8. Then I would definately spend the time working on the SEO of your website to get it ranked for keyphrases for your area. I don't know where you live but lets say you live in Florida. You want to get your website ranked for terms such as: Florida Web Design Web Design in Florida Freelance Programmer in Florida etc.... It may also be worth while just taking the hit and do a few jobs for a cut price just so you can build up a portfollio. I personally wouldn't get into this bidding war thing, there are some projects on the freelance board here. I would stick to small projects. Why not try emailing small companies in your local area to offer your services i.e if they need web design etc. You should be able to get contact details from business directory listings, etc
  9. For that type of work we would have quoted an hourly rate as opposed to a set price. Project prices are literaly for new projects, not fixes or modifications to existing systems (for us anyway). It is purely guesswork on the number of hours it will take so we quote an estimated number of hours and warn the client that it could take longer if there are any unforseen issues. So we may quote the client an estimated 4 hours with the potential of it being upto 7 hours. If you quote for 1 hour and it ends up taking you 3 hours then the client will not like you charging for the extra work if you have not warned them in advance and you will probably end up taking the hit. On another note, always agree a spec before you start any work whether it be a new project or modifications. Get the client to sign it so they know exactly what you are doing. Always keep any email correspondence that you have with clients. It is often the case that you will do what they ask for and they turn round and say they asked for something different. If they change their mind after agreeing a spec then you should charge for additional work. Make sure it is in your contract that this is the way you operate.
  10. Ajax is javascript, however this gives you the ability to run server side scripts and receive a response usually in xml, json or plain text. If you need to change the layout without a refresh then this can only be achieved using the DOM and Javascript. I think what you are trying to acheive is highly unorthodox in terms of web development using server/client side scriping and HTML. I think most sites that have video running and animation with text content changing from users actions are built entirely in flash. However if you can provide any example sites that have achieved what you are after I would be happy to look at the method that they have used.
  11. As HTTP is static any url that is requested will result in a refresh of the browser window (after the webserver has received the request and sent the response). Therefore the answer lies within the client side, i.e the web browser. Javascript can use the DOM (document object model) to change the output of a page from an event, say a mouse click. Building a site around Javascript has massive drawbacks however it is the only method I can think of, except creating the site entirely in flash.
  12. It's real beginner orientated so just a warning.
  13. It's simply down to whoever sold them their IT infrastructure. They are probably Microsoft partners and have made a nice profit from it. I used to be a certified Novell administrator but the company I worked for started replacing all client servers using Netware with Windows 2000 Server just for this reason. Netware 5.1 was the better system and its NDS was superior to Active Directory on the Microsoft platform. But hey, that's just the way it goes.
  14. One would have assumed that you have sent a detailed specification to your client for the complete functionality of their project.
  15. WTF. The original post is supposed to help, not start a bitching session. Stop please.
  16. There have been many posts on this forum in regards to beginners learning Object Oriented Programming in PHP. It is a difficult concept to grasp when you are new to the principles and benefits of this style of programming and can be quite hard to understand from some of the responses you may receive on this forum from more advanced members. So, I stumbled across this website today which has video tutorials that explain the core principles very well. If you are a beginner then you should definately take a look and it should make the subject a lot clearer. http://www.killerphp.com/tutorials/object-oriented-php/
  17. Why not look for freelancing sites where you can place a listing. Having your own web site that you can link to would be a good idea.
  18. Wow, that sounds like a quote from Star Wars. Corporations use MS software because it has support, not because it is the best choice for the job.
  19. Is that because you don't have teenage girls wanting to drop their pants when they see you? LOL
  20. That doesn't look very appetising!
  21. The advertiser is paying you for the space so firstly you need a price model. You also need a payment gateway i.e Paypal to take payment. Paypal also supports subscription payments so if I pay for a 6 month initial adspace, after the 6 months is up there is an automated subscription reminder sent to the advertiser to make another payment. If the payment is or is not made then the website is notified automatically and will either continue the ad period or remove it from the website. The payment model that you are relating to is a PPC like Google Adsense. If you are going to charge per click then this is more complex as you will need an auction system like Google so users can bid for click price. If you were to charge a set price for an ad on a certain page in a certain position then this is more simple. You really need to sit down and think about your advertising pricing model and how to build a system around it. The most important part is providing statistics for the advertisers, invoicing and payments. When I say modify the ads, lets say I am advertising Nike trainers and I have paid for a banner space on your website for 6 months. I may not just want the same banner showing for 6 months as I may have a new product come out every month, so being able to login to my ad account and uploading a different banner that will link to a different product page on my website is essential. Also, if you are providing text ads then I may want to change the text at some point.
  22. OK, yes but as security is the general topic you should factor in preventative measures for both. If the form processing code also sends emails then your form could be used for spam. If the processing code saves information to a database then you are open to SQL injection. Also, you often see CAPTCHA used on submission forms where the data is saved to your database and posted on your website such as social bookmarking or article submission. This is a measure to prevent automated programs submitting spam to your website to gain backlinks.
  23. It is known as cross site scripting (XSS). Basically injecting paramaters or code into forms / urls to alter the functionality of a website. XSS attacks can also include SQL injection that may give the attacker data from your tables including user passwords or the ability to delete records or bypass login forms to protected areas.
  24. If I was to purchase ad space on your site I would want the following: 1. Daily reports on the number of clicks from each particular ad (unique clicks i.e. not the same user clicking it 100 times, click fraud). 2. Automated billing, i.e a subscription payment. You do not want users to be having to manually pay from your website. 3. The ability to modify the banners, flash ads. 4. Possibly use more than one ad in the same space and set the time period for each to be used 5. Access to the traffic stats for the website. Nobody is going to rent ad space if your site gets little traffic.
  25. Hi Lee Welcome to the community.
×
×
  • 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.