I have a loop which goes through the files I'm trying to upload and checks that they meet the format I need (allowed filetype and filesize). The script also checks that the upload was successful using this: if($_FILES[$fl]['error']!=UPLOAD_ERR_OK) { array_push($errorA...
In PDO, is there any equivalent to mysql_data_seek ?
2169 byte By
Eric_B at 2007-11-20 5:33:09
I have a simple page that allows a user to select a year from a drop down and based on their selection it connect to a db and creates a chart. My problem is that the drop dwon does not keep the selected value after submit. Anyone know how th have the drop down keep the selected value after submit. H...
254 byte By
attilio at 2007-11-20 5:37:54
Hey, I know that \ cancels any quotations after it. But how do I search for that character in a string.<br/>At the moment I have:<br/>$n = str_replace ('\'', '', $msg);<br/>but it doesnt seem to work,<br/>thanks<br/>til
113 byte By
Thread1 at 2007-11-20 5:38:10
:eek: <br/>i came accross this link while surfing the internet http://www.securityfocus.com/columnists/432/3
324 byte By
smoluk at 2007-11-20 5:38:16
Is there any1 who can help me with this? I have to write a script that compares the files in different folders that are in different drives and then generates a report for those files that are not in the other folder but the problem is that i don't know how to go about doing that...plz help......
I've created a script to print out an image in a sub-window. It's nice and simple and works really well. But I've realised that I'll be storing all of my uploaded files from users outside of the root to keep them out of the reach of the general public. How do I display an image w...
I have a folder which contains the xml files with the word CICM in the filename (can also contain some other files) I need to search for all these xml files and create a single zip file for all these xml's.Currently i tried searching using the $File::Find. Please correct me in my code here or e...
I have written a thumbnail creator but cannot get PNGs with opacity to remain semi-transparent. Why does the PNG not retain opacity.<?php $im = @$_GET['img']; header("Content-type: image/png"); $fullres = imagecreatefrompng($im); list($width, $height, $type, $attr) = getimagesize($i...
418 byte By
einnor at 2007-11-20 5:44:14
hello huys..can anyone here helpme how to submit data to other server. here is the situationi have my script here for adding informatio records.this script must past first on the other server.then once it is past the submitted data will be processed. iam using ajax. but it seems that ajax is not cap...
441 byte By
venAdder at 2007-11-20 5:45:12
Hi,Is there way to pass a javascript custom object as get, post, session variable to php?If yes how will one access the properties of such and object.e.g. say function MyClass( ){ this.propr1 = 0; this.prop2 = 'str';}var obj = new MyClass( );Does anyone know if passing this object is e...
1623 byte By
Bbro at 2007-11-20 5:46:39
EDITED from - UPDATE failsSorry for previous confusion.The problem lies within my foreach loop.foreach($orders as $order){ print_r($orders); //Set the processed field in MySql table $sqlprocessed = "UPDATE `orders_table` SET `processed` = TRUE WHERE `...
I am facing a problem running this script on windows. This script basically deals in calculating the compressed file size before writing it to a disk. I am making use of devnull() function here to point to a null device which is causing a problem. i am not able to calculate compressed size properly...
I'm trying to get a string of filetypes and make a regular expression replacement on it using preg_replace. The string looks like this:.doc,.xls, jpeg, jpg, gif, png, .pdfI'm then trying to change it to doc|xls|jpeg|jpg|gif|png|pdfThis is what I have so far:$all_fts=preg_replace("^[[:alnum...
$req = "SELECT * FROM table1";$res = mysql_query($req);if(!$res) return;while($line = mysql_fetch_array($res)){ .......... ..........}$req = "SELECT * FROM table2";$res = mysql_query($req);if(!$res) return;while($line = mysql_fetch_array($res)){ .......... ..........}...
306 byte By
Ipsens at 2007-11-20 5:54:09
I've made test.phpThen I encoded it using Zend Guard an uploaded it to the server.In a meantime I've lost original unencoded test.phpNow I would like to download from server encoded test.php and decode it so I could see code once again...How do I do that?:sick:...
351 byte By
Dankdogg at 2007-11-20 5:54:46
You have all been to the web site MySpace i'm sure. My question here is how does myspace and other sites like it make subdomains like MySpace.com/Felbdogg422? I have been trying to find a web site that gives examples of how this is done, but I havnt found anything that helps! Closest I came was...
I've just been told that I've got to do online payment for our awards this year. This wasn't originally planned but I've now got to build it in somehow. There are so many packages out there for doing this, plus Paypal and I really have no idea where to start. Could someone please...
191 byte By
code? at 2007-11-20 6:00:45
I'm creating an auto-indexing page so that it will have a list of the files and folders on runtime and generate links and filesizes and etc. How would you go about getting a folder size?
656 byte By
Ipsens at 2007-11-20 6:00:53
1 - I need to use Socks4a in Curl - I've found only Socks5 - and am using it currently.How to use Socks4a - is it possible?2 - I would like to connect to web yahoo, hotmail, gmail mail servers, using PHP to get emails from my accounts.Can I do it with PHP imap and pop fetures?I know that they w...
96 byte By
code? at 2007-11-20 6:04:10
can you host just through an ip adress?<br/>if you can, try my link<br/> http://127.16.1.35/
1230 byte By
Bbro at 2007-11-20 6:05:47
I am confused over the use of the ampersand in error suppression. I understand it suppresses php generated errors but what about mysql generated errors? I collect all mysql generated errors into a string within an error class.If I use the ampersand as such with a failing database connectionclass cMy...
66 byte By
code? at 2007-11-20 6:06:08
Can you run a program from a php script? I'm using PHP 5.2.1.
I have a website and i want to insert a tell a friend form where user can enter their name and e-mail address along with 10 friends e-mail address to which he can send this page as it is and its title will act as a recievers email subject.I have tried many script but that only forwards url to friend...
293 byte By
Ipsens at 2007-11-20 6:08:02
On my site is a link to other site which enables users to cast opinion.<br/>Now, on that site I would like that users that use my link on my site to come to that site, have already best option set as default instead medium.<br/>It is 4 radio buttons.<br/>How do I do that? :confused:
1361 byte By
bobo at 2007-11-20 6:09:29
Hello PeopleWhen I got to work this morning I found that my PHP/Oracle application, more precisely the Room booking application was off by 23 seconds. I've been searching hard for a solution on how to fix this. I looked on the net and they have a patch that was supposed to fix this and nothing...
Is there a way to read from a url such as www.whatever.com/index.php?id=91472. I know I could get the index.php but not with the changes brought about by the id.
403 byte By
fahmo at 2007-11-20 6:12:56
Hi,Im trying to design an online cheap airfare finder for a school project. Basically the page should search other airline webpages and display the cheapest fare result to the user.I have a small idea of how to go about it and am thinking of using php and cURL? any idea's as to weather this wil...
I'm creating a table which dynamically adds rows to a form. So for example, the form starts off with a number (1), name, email and phone number on row 1, clicking add will give you another row with a number (2) and name email phone etc. This all works but I'm using arrays for form elements...
I need to know the MySQL port programatically from PHP. Is there a way to do this?. I don't want the default port that can be obtained from environmental variables.
You provide me best solutions but i dont posses any php skills hence i use following script to intigrate in my tell a friend php form-<?php $to="Recipient Name <somebody@example.com>"; $from="Sender Name <jdoe@example.com>"; $subject="My first HTML E-mail"; $message="<h1>...
89 byte By
lontana at 2007-11-20 6:20:12
How is the efficiency of a PHP (or any other server-side) script estimated?<br/>Thank you
I'm developing a forum on my site and I got some phpbb code that I want to modify. I thought in Dreamweaver you could view the codes output link in html or am I wrong? Is there a php patch I need for Dreamweaver?All I wan to do is have a program where I can change test quickly without having to...
Here is my PHP script;<?php$connect = mysql_connect("localhost","root","password") or die ("Error");echo ("connected to MySQL");?>When I run the script i get a blank browser page and the 'or die' string isn't even displayed. I dont have problems running a simple PHP script with...
1091 byte By
bubu at 2007-11-20 6:26:37
This code retrives some binary from database and sends to the browser as a download. It works in firefox and internet explorer if you choose to save the file instead of opening it. When you choose to open the file instead of saving it will only work in firefox and not on IE. In IE it says file not f...
Hi guyswant to make a form with 2 actions, means by 1 click 2 actions performs and I do not want to use PHP_SELF, because the first action address is the main target and the second one is to store dataits my code but it doesn't store data in "test.txt" just posts to " http://mysite.com/11.php"&l...
658 byte By
rossi143 at 2007-11-20 6:31:51
Hello! I am writing a program in shell script that reads some words from a file. I need to determine whether the word that has been just read is a string or a number. So far I have tried to use expr command, i.e by adding a number to the word. If the word is a string, expr command would finish unsuc...
I've configured Apache/PHP/Mysql many times and I've always been able to get it working, but not this time. What's happening is that my document root is c:\webpages and this is set in both the php.ini and apache's httpd.c onf configuration file. I also wondering whether the scrip...
777 byte By
bubu at 2007-11-20 6:32:53
Hi, I'm not found of IIS. But my job enforced me using IIS + PHP5 (yes I know it is not a good idea) under Windows 2000 server. For stability reasons I chose to run PHP as CGi sacrificing some performance.I am having trouble with uploading large files (20mb+) with IIS and PHP5. When I send smal...
I am trying to encrypt a password entered by user and store it in database.the code is as follows$Membership_Query="insert into membershipdetails(USER_id,USER_name,Password,Emailid)values('$userid','$username',des_encrypt('$password','welcome'),'$mailid...
I've been trying to figure out a way to take information from a huge MySQL database and place it in fields on a PDF. The things Ive been trying at php pdflib, and a few other ways. But they are all over my head, as I am still somewhat new to php. Has anyone done this before? I need a hand!thank...
320 byte By
xiah at 2007-11-20 6:33:33
I enjoyed reading this thread and learned alot from it to. But I have a small question , what if I would like to make the grid 7x 7 squares and then be able to navigate the entire map in all different directions?I'm pretty much a newbie at php. (I've included a example .jpg of what i mean)...
alright im having bit of trouble here...i have 2 files english.lang and grab-template.phpI want to load english.lang and create an array out of it in get-template.php so I can then do a replace.english.lang'UPLOAD' => 'Upload Files','MANAGE' => 'Manage Files&...
Hi there,i got a problem again. this time with the apache and perl.i want to start a programm out of my cgi script but with the user context of the client. this isn't that hard i thought. username and password i got from the client authenticated on my server (had to build an own authentication...
I am new to PHP.I am trying to create users using HTML controls and the validation is done in PHP as follows.I have used a templatemy form is as follows.....Createnewuser.php is the name of the file<form method="post" action="Createnewuser.php" onSubmit="fun()"> <input type="text" name...
1168 byte By
mcmcom at 2007-11-20 6:39:54
hi allim an asp.net developer but totally new to php. i have setup a php server and verified its working by using the phpadmin folder and a simple hello world script. However i have a html page i have to edit that uses php include files to build part of it. the page has two include statements that...
1815 byte By
wilz04 at 2007-11-20 6:42:31
Hello friends,I have problems with this:MenuItem.class.php:<?php class MenuItem { var $label; var $href; var $target; function MenuItem($label="", $href="", $target="") { $this->label = $label; $this->href = $href; $this->target = $target; } function isEmpty() { retur...
My page structure is like this:--main_includes--header.phpfooter.php--public_html--entrants_area.phpindex.php*php...etcEach page in public contains the following:1) includes header.php (if login required to view page, redirects to loginform.php)2) runs its own code3) includes footer.phpI have a page...
1887 byte By
bobo at 2007-11-20 6:44:20
this post is the complicated oracle ORA-01008 error, I made a search on this first and did get results but no one seemed abled to answer. the result were here:Visual Basic 6.0 Programming http://www.dev-archive.com/forum/showthread.php?t=365806&highlight=ORA-01008 http://www.dev-archive.com/forum/show...
hi, I'm just learning php and have a quick question.I want to make a sort of "check order status" page on my website, but I need a more efficient way to do it than I have now. Currently, I have to go and edit this page every time I need to update someone's order status, and the code is ge...