473,538 Members | 7,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Latest Bytes Forum

Support forums for various IT topics. Programming languages, databases, systems, applications and more. Subscribe to a community, participate, ask, share your expertise and network.
 
4
3,709
thread by: fartsniff | last post Jul 16 '05 by: Tom Thackrey
hello all, this is some code that i am using that "loops" through all of the variables that paypal ships back to me via ipn. for ($x=0; $x < count($postvars); $x++) { $y=$x+1; $postkey = $postvars; $postval = $$postvars; $postipn.= "&" . $postkey . "=" . urlencode($postval);
1
1,923
thread by: Madhusudan Singh | last post Jul 16 '05 by: Randell D.
Hi I am in the process of "beautifying" a web site based on PHP + XTemplate. I wish to include a fixed left navigation bar on almost all the pages. I have a xtpl file that defines the header of each HTML document. If I use FRAMESET etc. directives in this, how do I make sure that the main page is shown in as a window.frame kind of object...
2
2,033
thread by: Derek Fountain | last post Jul 16 '05 by: Jason Dumler
I asked this a couple of days ago, but got no response. Surely it's not difficult? I have a file, which my PHP has created, called say, /tmp/fred.txt. I want to send that file to the user so a dialog pops up and they get to save 'fred.txt' (or whatever they name it) on their local disk. How do I do that?
4
2,735
thread by: Steven | last post Jul 16 '05 by: Steven
Try to create a MySQL tables and don't know how to decide the type of some fields: Key: SSN - use int/bigint/char ? PhoneNumber - int/bigint/char ...? The reason I asked is that I got a space used exceed the limit with just one row... Thanks in advance
2
2,373
thread by: fartsniff | last post Jul 16 '05 by: fartsniff
I swear, these loops and for each's are going to kill me (if regex doesn't first ;) anyways, this is what i have: if ($_POST != "") { @$item_name1 = $_POST; @$item_number1 = $_POST; }
5
16,141
thread by: lawrence | last post Jul 16 '05 by: lawrence
I've waited 6 weeks for an answer to my other question and still no luck, so let me rephrase the question. I know I can do this: <form method="post" action="$self"> <input type="text" name="filesToDelete"> <input type="text" name="filesToDelete"> <input type="text" name="filesToDelete"> </form>
0
2,777
thread by: PeopleIhavefeeling | last post Jul 16 '05 by: PeopleIhavefeeling
Real conspiracy theory's script: leaving the key Assalam u'Alekum :), The second night , before the two women came in, Mahmud Kurchu left a key with me, he told me I have to give this key to the women to got o hospital during the day, the day came and the women came asked for the key etc, I gave them this key but they had told me, they can't...
5
2,911
thread by: lawrence | last post Jul 16 '05 by: Gary Petersen
I've this function, which is the method of a class. I'm posting the constructor of the class down below. For some reason, when I fill out a form and hit submit, I'm not getting any values. Can someone tell me why? function getVar($var="password") { // 05-08-03 - the important thing about this function is it reverses
0
4,905
thread by: Ben Eisenberg | last post Jul 16 '05 by: Ben Eisenberg
I'm trying to run a php script setuid. I've tried POSIX_setuid but you have to be root to run this. The files are located on a public access unix system and have me as the owner and nobody as the group. Rather than make them group writable where in anybody could make a script and write to my files i would like to make them setuid. I tried...
2
1,930
thread by: fartsniff | last post Jul 16 '05 by: James Sleeman
It has to be something with the characters, right ? $search = array(".", "\", "+", "-", "*", "/", "!", "%", ">", "<", "^", "(", ")", "", "{", "}", "\\", "=", "$", "#", "?", "~", ":", "_", "&amp", "&copy", "&nbsp", "&quot", "&uuml", "&", ";", "\n"); $line = str_replace($search, " ", $line);
3
25,080
thread by: Daniel Hansen | last post Jul 16 '05 by: Daniel Hansen
I'm sure I saw this somewhere but can't remember where and can't find it now... Is there a PHP function or global variable that will return name of the calling function? I want to do this for error reporting purposes without having to hardcode the function name into my scripts. Say the function is named getFunctionName(). I want to do...
5
2,722
thread by: Blaine HIlton | last post Jul 16 '05 by: uws
I've been trying for 2 days now to solve this problem, which should be pretty simple, but it is turning off to not be as simple. I am trying to pull data out from a form that was POSTed on a previous page. The code that I have that works is below: <?php for ($i = 2; $i <= $stoped; $i++) { echo '<tr>' .'<td>Step '."$i".'</td>'
4
2,495
thread by: Ralph Freshour | last post Jul 16 '05 by: Ralph Freshour
I bought the PHP and MySQL For Dummies book and I'm having trouble understanding how I use PHP to verify and check forms input text data - the book shows snippets of code so I know how to do the actual check but I don't understand what web page the php checking code should go into? For example, I have a simple login web page (username and...
3
6,488
thread by: Cowfisher | last post Jul 16 '05 by: Steven
I can write simple MySQL stuff in PHP but I'm having problems putting in WHERE clauses. Everytime I do I get errors like this: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in c:\program files\apache group\apache\htdocs\vod\mineral_action.php on line 10 The code that...
0
833
thread by: Eye Jam Multimedia | last post Jul 16 '05 by: Eye Jam Multimedia
Where are the best ready made PHP and MySQL templates for things like shopping carts, searchable databases etc.
2
4,235
thread by: fartsniff | last post Jul 16 '05 by: fartsniff
hello all, here is a preg_match routine that i am using. basically, $image is set in some code above, and it can be either st-1.gif or sb-1.gif (actually it randomly picks them from about 100 gifs). then it processes them based off of which image type it selected, either the st- 's or the sb- 's.
1
6,250
thread by: grant | last post Jul 16 '05 by: Billy Harvey
hi folks: Does anyone know how to calculate the shipping rate on Fedex? There was a web module to handle the web query for rate at http://grd.fedex.com/cgi-bin/rrr2010.exe?func=Rate Currently it is not available, I wonder if there still has a similar module like that. I did some search on the Fedex sites and find out they have several...
1
3,672
thread by: farzad | last post Jul 16 '05 by: Fazer
Hi I try to install php_ming.so in my php . I am using Redhat 8.0 php 4.2.2 apache 2.0.4. I am doing as the howto install file want me to do. as follow. http://ming.sourceforge.net/install.html ------------------ download php_ming.so.gz uncompress it and copy it to your php modules directory
1
2,333
thread by: Bob Trautman | last post Jul 16 '05 by: sam
I have installed MySql on a Windows 98 workstation. I start the service with the command: mysqld I can connect to the database and see tables, etc. I have installed Apache Ver 1.X with PHP ver 5.0.0b1 Simple PHP scripts work fine. When I try to connect to the Mysql database I get this error from PHP in my
0
2,101
thread by: Paul Rogers | last post Jul 16 '05 by: Paul Rogers
Wanted in Brisbane, Australia. Interesting project, experience required in community site development. Enquiries by return mail. Thanks, Paul
1
3,479
thread by: Alex | last post Jul 16 '05 by: Jochen Daum
Hi i want to install php (4.1.2 4.2.1 4.3.1 whatever) on solaris 8 i gave up instaling curl 7.9 so i managed to install curl 7.8.1 from sunfreeware and then tried to install php ,i had to install a couple of packages like gd ,gdbm and etc and then i could pass the configure phase! but during make i got this error: curl.c: In function...
3
5,372
thread by: Dell Sala | last post Jul 16 '05 by: Wes Bailey
I have recently enabled the PHP 4.2.1 that comes pre-installed on OS X. After making all the prescribed changes to the httpd.conf file php seems to work fine. I would like to make some changes to the php.ini file, but I can't find it. phpinfo() tells me that it is in /usr/lib but don't see the file there (or anywhere else). Even after...
2
3,148
thread by: Adams-Blake Co. | last post Jul 16 '05 by: Adams-Blake Co.
Can this be done in PHP? I want to read a directory and for each file with a .sql extension that is older than 3 days, I want to delete it. I have a cron job that makes mysqldump files (xxx.sql) each night and only want to keep the last 2 or three of them around. This will also be a cron job (I know how to run a php script in cron.)
4
26,667
thread by: Wald | last post Jul 16 '05 by: Jeffrey Silverman
Hello group, I've got a script here that sends emails with an attachment to an email address that is retrieved from an html form. The email sending code is include below. The problem: when sending the email to certain email servers, the attachment section of the email gets removed and I end up with an attachment of zero kb. Other servers...
2
2,426
thread by: Ben | last post Jul 16 '05 by: Ben
Hi, I have a php appilcation that connect to an imap serveur. All is right except some message that are show in TEXT (HTML source) instead of HTML. I see that it tis the php function imap_fetchstructure what give me sometime a wrong answer : For example with the message below:

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.