473,543 Members | 1,925 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.
 
7
35,596
thread by: Phil Powell | last post Jul 16 '05 by: Gary Petersen
I have a PHP script that would read in a binary file and display it as if it were <img src>, how would you do that w/o changing the header's MIME type? The entire file does not need to be changed. Thanks Phil
2
2,160
thread by: Ralph Freshour | last post Jul 16 '05 by: Adam i Agnieszka Gasiorowski FNORD
I looked in the manual and searched the web but did not see a file find function that takes a wild card - I need to look for all files such as: $Array = FileFind('name_*.jpg'); And then I need to delete all such files. Is there such a function?
0
2,153
thread by: Terence | last post Jul 16 '05 by: Terence
The XML (expat) extension to PHP contains specific functions for accessing detailed error information when an error occurs parsing an XML packet. All be it convoluted, even the XSLT (Sablotron) extension will provide access to detailed error information. I can't seem to figure out how to access this information in DOMXML Does anyone have...
0
1,580
thread by: Tvrtko Ursulin | last post Jul 16 '05 by: Tvrtko Ursulin
Hello! Has someone created a patch that enables usage of disable_functions directive per directory (eg. per apache VirtualHost) ? Thanks!
2
9,454
thread by: Phil Powell | last post Jul 16 '05 by: Bart Van der Donck
I have a mySQL database table with a column field datatype of datetime that I set up in the original create table statement like this: create table nnet_usermetadata ( .... nnet_record_entered datetime default 'now()' ) However, upon execution, each time a record is entered into nnet_usermetadata the results are:
1
4,026
thread by: JDJones | last post Jul 16 '05 by: Randell D.
I have a form I'm putting together. The processing will be on a PHP script that will take all the field names and print them out on the email it sends to me. No problem there. But what I'd like to do is have it exclude printing the field name and value when there are any blank values in the field. The processing part of the script is this:...
0
1,689
thread by: Geoff Soper | last post Jul 16 '05 by: Geoff Soper
I'm looking to use ImageMagick via PHP to manipulate images extracted from a MySQL database before serving them. I can see plenty of ways to work with files, i.e. read them from disk, manipulate them, save them and serve them but not to do it straight from the database and to the browser. I don't really want to put it on disk as it's all for...
2
3,806
thread by: lawrence | last post Jul 16 '05 by: lawrence
I'm playing around with the code that runs my site. Suddenly I started getting this error: <b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted (tried to allocate 311020 bytes) in <b>/home/www/krubner/atp/mcIncludes/mcDatabase.php</b> on line <b>72</b><br /> This shows up at the bottom of the page, after everything else...
1
1,937
thread by: TNG | last post Jul 16 '05 by: Jochen Daum
Hi, Can anyone point me how to create a php connection from scrath with a MS SQL Database Server Thx TNG
15
11,976
thread by: lawrence | last post Jul 16 '05 by: Matty
I've been using the following function (yes, it is inelegant, what can I say, I wrote it a long time ago) to upload images. Haven't had a problem with it for at least a year, and I don't recall changing it anytime recently. Nevertheless, the script is suddenly dying on this line: if (copy($uploadedFile, $pathToImageFolder)){ This is...
2
2,757
thread by: point | last post Jul 16 '05 by: point
Hello there... I have a little issue here.... Which one is better(I think object) but would like to hear from someone more experienced.... class Persons { var $name;
1
3,664
thread by: entoone | last post Jul 16 '05 by: entoone
I have the following line that prints out a record with a link, when you click the link you get more column information in the record. I want to add another field (State) so that I can narrow down the results. How can I pass both the hcounty as I'm doing now, along with state? to the state7.php file? print "\t\t<td><bgcolor=#000000><font...
4
3,314
thread by: davidshook | last post Jul 16 '05 by: Nikolai Chuvakhin
I am a begginer with not too much time on my hand. I do some html pages with Dreamweaver and with some minor Flash actionscript and I have a minor ability (with the help of lots of tutorials) to do some PHP. I love Dreamweaver MX since it realy simplifies the visual part of the process of making a page and also help with code typos since it...
6
3,664
thread by: jerrygarciuh | last post Jul 16 '05 by: jerrygarciuh
Hi all, I am iterating through a result set to generate a second set of queries but no matter what I do I get the error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource even though if I echo the query to the browser and cut and paste it into the command line I get valid results.
2
13,270
thread by: Bill Petrol | last post Jul 16 '05 by: MegaZone
I'm trying to send a link with a querystring as the body of an email message. My HTML syntax looks something like this: <a href="mailto:xxx@yyy.com?Subject=<? print $subject ?>&Body=<? print urlencode($url) ?>">Send an Email</a> (I've had to URLENCODE the variables first, and it works. If I don't do so, then it doesn't work.) The...
3
9,439
thread by: Timo-Pekka Oikarinen | last post Jul 16 '05 by: MegaZone
Is there PHP chat script *without* MySQL? Demands: absolutely FREE (no adware, shareware etc.), No MySQL needed, one permanent public chat, can make your own channels (public/private) like IRC, several admins (one superadmin, me ;-D ), bad word filter, user nick ban/ip ban/kick (temporary/permanent), small file sharing and @time script (...
1
1,657
thread by: Stijn Goris | last post Jul 16 '05 by: Matty
hi all, I cannot pass the of(move_uploaded_file($_FILES, $uploaddir . $_FILES)) statemet and need some more clear errorhandling besides the TRUE FALSE story. Can PHP telll me more in detail why he returns a FALSE? kind regards Stijn
1
3,183
thread by: Rainer Erismann | last post Jul 16 '05 by: Tom Thackrey
Hi, i have a variable (well, an Object) which is needed in beneath every Script. it's not needed to be changed during the whole script, so i like to access it easyli without passing by or declare it as global in every function. afaik it isnt possible to set a variable to superglobal. Is there any reason why i shouldn't add it to the _SERVER...
2
10,160
thread by: Bob | last post Jul 16 '05 by: Bob
Hi, I'm trying to build a PHP page which launches another php script to be run in the background. The web page should return immediately, while the background script may run for 10 minutes or something. Unfortunately I'm getting all kinds of weird behaviour.. In my main script I'm using exec() (also tried the other options) to start a...
1
1,568
thread by: george | last post Jul 16 '05 by: Jon Kraft
I don't get it. can anyone help me with this ? It's a simple preceding checkbox, either yes or no - if yes, add the details to a $db and if no, then don't. But I get the original variable being switched from yes to no, or from no to yes, and either way, the database gets accessed. (code page1) (snip) <SELECT NAME="radiobutton"...
2
4,243
thread by: 11abacus | last post Jul 16 '05 by: Andres Viikmaa
Hi all, I wonder if this is possible: I have a script that does things that take time. In the first part of the script it does data checking and other verifications, then comes the long part. I wish to be able to send the result of the first part to the client, disconnect the HTTP (so the client can do whatever they want), the script should...
0
1,463
thread by: Patrick H. E. Foubet | last post Jul 16 '05 by: Patrick H. E. Foubet
Hi all, I would like to suggest you some refelxion about this : I run this simple code : .... $res = mysql_query ($requete, $connexion) or die(mysql_error()); while (is_object($elt = mysql_fetch_object($res) ) ) {
3
1,125
thread by: Steve Robbins | last post Jul 16 '05 by: Steve Robbins
I need to create some reports for printing from my database. From everything I can find using Google, there doesn't seem to be any ways to override the default header and footer. Is this still true? Any good workarounds out there? Thanks for any help.
17
2,493
thread by: Andrew Clark | last post Jul 16 '05 by: KAH
i have a simple test form and a php script that handles it. the form is not passing the data to the script, so i end up with an empty html file on submit. the form's setup is like this - <FORM ACTION="HandleForm.php" METHOD=POST> <TABLE> <TR> <TD>First Name:</TD>
1
1,604
thread by: george | last post Jul 16 '05 by: Randell D.
(code) $mail = ""; $mail=$radio; if ($mail == "yes") { // stick into database //then the database login and update $result = mysql_query($sql);

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.