Hello,
I am getting an unexpected errror when trying to create a new file using fwrite. I am creating an html page based from a list of words from a text file. Everything should work fine, but for some reason only the last file gets created successfully. all others put
Hello all,
Basically Id like to take an image and put some text in the bottom right corner of it. I know this has something to do with ImageMagick or GD (?) but Im really not sure which.
Ive Googl-ed about this a bit but I cant seem to find the right path.
If so
Parse error: parse error in /home/wizard/public_html/newstyle/Untitled-6.php on line 4
This is my first function.. Its for creating a tabbed menu.
The menu has selected, and not selected tabs. The selecteds are stated as class="navMenu2", and not selected m
hi,
I was wondering if there is a function that sees if a variable contains something.
If you know please tell me what the function is called so I can look it up at php.net
thank you.
Read more...
Hello friends,
I have a problem while submitting text from one page to next page.
Code:
<form ..... same page
<input type=text value="<?=$string?> ">
...
submit
</form>
When the string contains single q
Hi,
I have a java server running and listening for socket connections. My php script will send data to Java socekt and read acknowledgement from server. The problem is php script seems to timeout when it tries to read data back from the connection. If I send data and
Ok, so it sounds easy, and I thought I knew this, but I have searched and searched and realize my brain has taken holiday. Im basically an idiot.
So, heres what I am doing. . .
I have a table with several fields (id, company, city, and others). What I think I wa
Hello,
Im recieving the following warning:
Warning: socket_bind() unable to bind address [10048]: Only one usage of each socket address (protocol/network address/port) is normally permitted. in blablaindex.php on line 6
Could not bind to socket
when i run the foll
like i heard sessions can be faked. is it possible to define a plain variable like $Hello?
i dont think so. but wanna make sure. my password checking thingy needs to be sure =)
thank you
Read more...
How would you open and read a php file that is in your hard drive and use it inside a php script that is run on a server.
Example:
security.php - file located on the server would have something like this
PHP Code:
include (file://
How would I go about learning PHP, what tools will I need?
Read more...
Ive created a search function for my site, but there something weird happening. When I enter the character "*" in the search form, then I get a script error message. When I enter something else, then it appears to be working fine.
I wont post the whole code
I have an form that a user will fill in.
It is then sent to this page.
The user enters ther Date of Birth in a selection of drop down lists. One for Day,Month and Year.
On this page i want it to stop the user from registering if their age is under 13 or over 19...
that may be a ver dumb question, but the session objects that are created for the web page that I am working on dont ever delete, whcih means over time they would start to take up a lot of space.
They do "stop working" after the set expiry time, or so I th
Ive been looking through about a hundred different threads on timed out sessions but could not find any useful information. After searching through the entire site, I couldnt really find anything so this is my last ditch effort.
On my site I have a a place where custo
I am getting following parse error. I saw the same question posted back in Feb. but saw no reply. I know there is something wrong with my else statements.....I have worked for hours and cannot see the problem which is most likely obvious to someone with more experience.
Hello, im trying to create a file management tool online using php. Everytime i copy or create files or folders though it assigns ownership of the new files or folders to the apache id. i tried using backticks, exec, shell_exec and the php shell commands. php safe mode i
Hello all,
I just upgraded to Panther and now all my PHP pages are not working properly. Anybody know how to fix it? Thanks!!
Read more...
Here is what I am dealing with. Three pages that work in this sequence:
form --> results page -->content page
Each of the above pages needs to remember the selections made in the form on the first page.
What I am doing currently:
Passing a chunk of a
I just want to verify something.
there is a lot of talk on the most recent version of php having the global variables being turned off for security reasons.
So does having global variables turned on allow you to obtain variables by ex. $varName rather than $_POST[&
Hello everyone,
I cannot seem to get this working. I have this as my if followed by a get form:
PHP Code:
if (isset($HTTP_GET_VARS[addcomputer])):
and i am trying to get the variables into my insert
Greetings,
I am trying to create an online form, and use a mysql data base table to supply options in a drop box style form. I have eight entries in my database table to choose from. When I load my "optionbox.php" page, it has none of my options. The table t
OK, Im getting angry
Im using PHP to dynamically make a drop down box of users in a table. The first row is displayed with all the users. However, on the second row non of the users are listed in the drop down box. It only works on the first.
Richie Carnes
Hiya. Here is my question:
I have a database for a member listing. I have 1 table organized as follows:
id
name
sex
The "sex" field can either be Male or Female. In the table, it is defined as sex varchar(20). I want to calculate the total number of
Hi there,
Im writing a FTP wrapper class, and Im currently working on some functions which extract information from a ftp_rawlist() output.
PHP Code:
function message($message) {
echo $message . <br
Hi,
I hope someone can help me with this. Ive created a php script to POST files to a php page, which should receive them and save them.
So far, a basic form-urlcoded POST works and displays the sent message, but when I try to include a mime encoded stream with th
Look I found that if i put the cookie script that generates it, on top.. it works.. but the prob is that will never expire!! (you get why? i get why!, because it first generates it and then it checks if its there.. kinda dumb that way hehe) well. so i put the IF (cookie
<a href="read.php?id=<?php $row["id"] ?>"><?php $row["name"] ?></a><br>";
or
echo "<a href=" .$row["name"] . "> " .$row["name"]. "</a> <br&
Hi
Page1
<? setcookie("book_id", $book_id ); ?>
Page2
<? setcookie ("book_id", $book_id, time() - 3600); ?>
cant delete cookie at once but reload page 2 two times
how to delete $book_id cookie without reload?
thanks~
I want to do this:
mysql_query("SELECT * FROM inventory");
and then add the value of the value field from each row that was result of the query. How can I do this..thanks.
Read more...
is it possible to do this I keep getting errors
class myClass{
include_once(myfile.php);
}
Read more...
Im in need of a php script that makes a browser to play back mpeg videos on my website. I found a cool free image gallery script(free). Im looking for the same kind of thing for my mpeg clips. Any suggestions where I can download a free streaming video script or php file
it says added and when i check my database it has the created row but the name filed is blank, to see the script in action go to www.digitalaudience.net/bluegoblin/admin.htm
any ideas? my first thought is maybe the addcat function isnt getting the http posted variables,
Is it possible to pass an array through a link? I have an array that comes into a page through a form. but I want the user to be able to go back to the previous page with the array that he just passed in by clicking on a link. I tried
PHP Code:
I am trying to parse out <a href> having links to .html files. So for instance <a href="http://yadayada.com/whatever.html">, i can get http://yadayada.com/whatever.html from it . Now i am trying to use regexp to do this and this is what i have to pa
Hi;
I have a problem with multi-dimensional arrays in the url. On the main page I use this code:
$foi = serialize($foilist);
echo "<img src="showmap.php?cur_x=$cur_x&cur_y=$cur_y&foi=$foi">";
in showmap.php I use this code:
$cur_x =
I have tried everything in my php scripts, the only this i can think of is that he email address needs to be changed on my linux machine. Is there a way since i have my own web server and i dont have a domain name to change the apache users email address on linux. Whhen
Im writing some php command line scripts (Linux), and Id like to be able to change the font (color, bold, etc). For instance, if you run:
man php
You will see:
NAME
php PHP Command Line Interface CLI
Id like to emulate that, if I can.
Hi, Im having real problems trying to get this zip file to open. When it arrives in the inbox I get this message when trying to unzip it with Stuffit:
Unknown zip header format encountered. This operation cannot continue.
PHP Code:
//&nbs
I was wondering if anyone knows of a built in PHP function that will convert a string to all lowercase while ignoring other symbols that are not letters. I am trying to convert peoples email addres to all lowercase but I do not want it to change the @ symbol.
Does an
I am trying set up user authentication using PHP. My biggest goal is this: When a user enters in thier user name and pass they will be redirected to a specific page. The redirect page willl be different for every user. How do i do this redirect thing? Any body have an id
I need to round up a number in a variable.
But i need it always to round up apart form when it is a value like 6.0 or 21.0
Does any one know some code, to do this?
Read more...
Hopefully some one can help with the logic to my problem.
I have built my first e-commerce app using php/mysql, and I have a problem with concurrency and state when a user decides to purchase and then changes their mind and either closes browser or exit browser.
Th
hi,
i need to read the column headings (not the values in them) of a certain MySQL table into a recordset using PHP, does anyone know how/if i can do it?
vauneen
Read more...
hi,
I was wondering how to send a mail without the mail client popping up to the user.
I want to send a mail to myself, when a user pushes a button on my homepage. Any ideas?
obscurr
Read more...
Hi,
This is boggling my brain here, what im trying to do is create a function to sort infinite sub categories. At least i would like to achieve it. Heres what i got.
PHP Code:
$hash = array();
&nb
Hi all
Im using the php flock function to lock a file. The file locks fine cause the function returns true. What i would like to know is it possible to lock the same file using perls flock function in a perl script. The php or perl scipt need to lock the same file at
I am quite new to php, but im picking it up pretty fast, and i know this is really simple, but ive been playing around with it for ages and i cant get it to work.
I am trying to forward my user to the customer support section of my website after logging into it, using
|