473,594 Members | 2,770 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.
 
8
12,675
thread by: Steve Fitzgerald | last post Jul 16 '05 by: Cl1mh4224rd
The below login script does work. The form does not seem to be submitting. I keep getting the username and password fields. The only errors I get are notices that email and password and undefined indexes. Here's the login script: <?php session_start(); // includes
3
2,188
thread by: lawrence | last post Jul 16 '05 by: Wes Bailey
Do I understand correctly that in PHP 5.0 objects will be passed by reference (by handle, they say) automatically, not as a copy, as happens with most PHP variables?
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...
1
2,213
thread by: michael newport | last post Jul 16 '05 by: michael newport
I have installed php-4.3.3RC1 on Suse 8.2, and everything went fine even the make install, but I do not see the new version in yast2 software packages, it still has the old version 4.3.1 any ideas ? is there another step I need to take, how do I check what is really installed ? ps apache is 2.0.46 and mysql is 4.1.0
2
2,379
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; }
2
2,035
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?
2
6,211
thread by: andreas kirschner | last post Jul 16 '05 by: andreas kirschner
Hello developers! I'm sticking in a problem. I want to read the folder hierarchy of the webserver and store the information in a tree, built like a linked list - you know 'a tree'. you see in function readsubtree() i'm storing the object child in the array of the actualfoldernode. but this doesn't work out. it never arrives there.
4
2,476
thread by: Zachary Antolak | last post Jul 16 '05 by: Zachary Antolak
I implemented a timer in my PHP page to see how long it takes to run. Here's the code: $this->start_time = microtime(); /* All the code */ $this->end_time = microtime(); $this->calc_time = ($this->end_time - $this->start_time); print "<tr><td colspan=\"5\">Calculated in: <b>"; printf("%." . $this->time_precision . "f", $this->calc_time);...
0
2,785
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...
0
4,917
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
5,682
thread by: Shawn Wilson | last post Jul 16 '05 by: sam
Hi, I've got a site which Google is indexing 3 different ways: glassgiant.com host5.veoweb.net/~glassgia veodns.com/glassgia I only want people accessing it the first way. If they access it any way but through the domain, I would like to send a moved permanently code, or at least use a header("Location: blah blah blah").
1
3,993
thread by: Derek Fountain | last post Jul 16 '05 by: sam
I need to create a data file from my PHP for the user to load into their word processor as a mail merge data source. Organising the data into rows of comma separated values isn't too difficult; what puzzles me is how to get that data into a .txt file somewhere on the user's PC. How, in general terms, should I go about doing that? Presumably...
6
3,503
thread by: Chris Krasnichuk | last post Jul 16 '05 by: Ian.H [dS]
Hello every one, Does anyone know how to make php work on your computer? please reply I need help Chris
4
2,737
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
4
2,502
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...
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.
3
6,493
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...
2
4,240
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.
4
3,710
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);
3
10,834
thread by: Dux | last post Jul 16 '05 by: Sebestyén Dénes
I have used some example code to create a database in MySQL and using php I can add binary files to the database. I was under the impression that I would be able to download the files with the source code provided, but am having trouble doing that. <?php if ($id_files) { include "./include/open_db.inc"; $sql = "SELECT bin_data, filetype,...
3
25,085
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...
1
6,256
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...
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>'
2
4,365
thread by: dk_sz | last post Jul 16 '05 by: CC Zona
<? // Test example: echo '<pre>'; $aInput = ' abtgh kdghg 9867 jkuhkh ^ { ooijj 438764 - 56_ 67 '; $aInput = ereg_replace('', ',' , $aInput); echo $aInput;
1
3,143
thread by: Kevin Thorpe | last post Jul 16 '05 by: sam
I have a slight problem with sessions. I use a session var to store a user's details and also a set of permissions to various parts of my application. This involves several SQL queries which is why I do it once and cache the result in a session var. My problem occurs when I change a user's permissions. At this point I need to invalidate...

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.