PHP

Advertisement
  • PERL problems using a search string

    OK...first of all, the very little PERL I know was self-taught so bare with me. :) Basically, I have a PERL script that runs on the hour using my task scheduler which searches weather data from my home weather station. It's simply a test file. What t

    October 12

  • Apache protected dir and php

    I have some protected dirs on Apache. When people try to access these dirs, it will pop-up a window prompting for usr name and passwd. I'd like to write a script with on an HTML page (forms) to enter usr name and passwd instead of a pop-up window. Ho

    October 12

  • Including functions that may or may not be used

    Hy peeps. Having fun? :) My problem is not in php code, but in using the same code. Site i'm working on uses $_GET to move through pages, and on one page i have a contact form. Few days i thought of how to use the contact.php that lays in my includes

    September 3

  • checkboxes (checked or not) and MySql - update multiple rows

    I am having problems with checkboxes (checked or not) and MySql - update multiple rows. My aim is to have a user update multiple records based on the status of the checkbox. The story so far... I am using a do-while loop to generate a list of 'items'

    September 3

  • sum column

    I would like to add(+) a column and sort by date. Everything on particular date = so much. when entering it manually at the mysql prompt it works but not the php code. Looks as follows : -snip- $conn = mysql_connect("myhost", "username"

    September 3

  • Blocking Proxies From You Website?

    I am curious if I can block people from using any proxy on my website. I have a forum and even IP banning just doesn't work. I do not want to have to ban some trouble maker and then them just come back 10 minutes later and them give me trouble. I hav

    September 3

  • Why does die() stop HTML output?

    I've been wondering (and searching) for a while now, why does die() stop HTML output? I thought it could only control the rest of the PHP script, not the rest of the page. For example: <html> <head> <title>PHP Die() Example</title>

    September 2

  • Checking to see if a site is updated

    I am using sha1_file() to see if a website has been updated. I have a bunch of website URLs stored in a mySQL db. I have never done this before.. I thought if I ran a crontab every 24 hours and checked to see if the sha1_file($siteURL) encryption has

    September 2

  • Need to Pipe incoming email to PHP script

    I'm using cPanel 11 on my website. I'm trying to create one forwarding email account ([email protected]) to pipe into a php script but the pipe isn't calling the script. Here is my forwarding/piping syntax: [email protected] to |/home/websitename/pub

    September 2

  • SQL Duplicate entry

    Error: (1062) Duplicate entry '' for key 2 I get this error alot, how to I make it so it allows duplicate entrys?

    September 2

  • Storing Dates and Times in MySql?

    Basically, i coded my blog from scratch, and i am doing a redesign and back end redesign to it. Normally, i store all my dates and times in loads of different VarChar Fields in mysql like a different field for each of thease... 11th April 2008 23:35:

    September 2

  • storing values from a URL into a string

    I'm passing a specified URL to my script, something along the lines of: http://SOME_URL.php?model=45+&os=xp My script then parses the url and stores the values into an array. Here's my dilemma: I've got 4 types of models I want to pass in the URL and

    September 2

  • Help needed to tweak finished script...

    everyone, this is my first post here! I have this script: <?PHP //CURRENT IMG NAME; DESIRED IMG NAME (OPTIONAL); RESIZE WIDTH (OPTIONAL); RESIZE HEIGHT (OPTIONAL); DESIRED IMG FORMAT (jpg, png, etc.; OPTIONAL); CROP (yes; OPTIONAL) //IF CROPPING IS N

    September 2

  • Problem in file attachment with php form - Please help

    I am trying to send pictures as email attachments but getting problems. Picture with correct file name & extension goes in the email but when I try to download or view, I just see a broken icon of image. That means picture is not uploading properly.

    September 2

  • csv instead of mysql

    i'm writing a simple script for a menu using csv instead of mysql. Where I'm stuck is on getting a WHERE statement working. Here is what I have. CSV: //setup as id,name,sort 1,name,1 2,name2,3 3,name3,2 Code to get line: $line=file("menu.csv", F

    September 1

  • Browser Check and Country Check with redirects

    ok im working on this flash website iv stored it into a directory called p what i need is if there using safari as Their browser I need it to be redirected to another directory lets just say s. also they can only be redirected to one of those directo

    September 1

  • Image URL mod rewrite

    I've made an image upload/view script that works nicely but now I'm trying to have the view script generate nice URL's. i.e: instead of view.php?id=some_id have something like /images/some_id.file_extension (/images/23.gif). The files are stored in a

    September 1

  • put values from mysql into array

    Hello How can i put some values from mysql database into an array? instead of $items = array(a, b, c, d); I wanted somethig like $items = array($row_Recordset1['titulo']); $row_Recordset1['titulo']; should loop on every fields on the mysql query $que

    August 31

  • saving fields in database using php

    The code below saves top portion of the order form. What I need is to save 240 other fields, they are named and shown as: each row is textbox_r1_c1, textbox_r1_c2, textbox_r1_c3, textbox_r1_c4, textbox_r1_c5, textbox_r1_c6, textbox_r1_c7, textbox_r1_

    August 31

  • count the quantity of each product

    hye.. i've an assigment to do that i need to count the quantity of each product if user click it more than 1 time..so i need to know the coding to complete this task. Below is my existing coding..can anyone help me where and what coding that must i a

    August 31

« Prev 1 2 3 4 5 6 ... 10 Next »