473,538 Members | 2,690 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
1,957
thread by: Nick H. | last post Jul 16 '05 by: Nick H.
Hi all. Before I get flamed, I really have searched for hours on this, promise. I must be phrasing it wrong, but I have wearied ... I need to set up PHP on a PC running Windows 98/PWS so that PHP will parse (e.g.) "index.html", instead of having to name my file "index.php". Windows 2000? Easy. Windows 98? No info that I can find at all....
3
2,186
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
4,053
thread by: fartsniff | last post Jul 16 '05 by: Jason Dumler
i found this code out in the ng, and its seems long and clunky, i am still experimenting with preg_match and _replace, but the syntax is a bit confusing. it seems i always misplace or mistype something. this is the code that i am trying to replace with better, optimized code. i would like to make a preg_match and then preg_replace for this,...
0
2,525
thread by: eric | last post Jul 16 '05 by: eric
Greetings! I've installed Apache 2.0.xx and PHP 4.3.2. I want to use Ming as a module to PHP. The instructions that came with Ming say to: as a php module (unix) download php_ming.so.gz uncompress it and copy it to your php modules directory (you can find your php module directory by running php-config --extension-dir)
2
5,272
thread by: JW | last post Jul 16 '05 by: JW
I wanted have this as part of a flood control script: <? echo ("Flood control in place - please wait " . $floodinterval . " seconds between postings."); sleep(5); // go back two pages echo "<script>window.history.go(-2);</script>"; exit; ?>
1
3,992
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...
1
10,739
thread by: ratlhead | last post Jul 16 '05 by: Mike Blamires
Hi all, Because of a chroot jail a web site that I'm working on is in (I don't know much about the jail stuff), I can't use sendmail to send email through a PHP script. The sys admin said he's put a copy of the basic unix mail into the jail that I can use. Now I assume I can use this by just doing a shell_exec, but for some reason, I...
3
2,206
thread by: Edward Principe | last post Jul 16 '05 by: DjDrakk
I'm working on an OpenSource project, and I'm looking for a web designer to write and administer the web site associated with the project. The project is a free (no money involved) project, and there's no money involved, but it will be a great experience if anybody is interested in being the web master of the project. The project is a...
0
2,017
thread by: Susanne Klemm | last post Jul 16 '05 by: Susanne Klemm
Hello! I am working with the XML-DOM-Extension. I want to change the content of a variable in a XSL-Document. The following testscript works well. $dom = domxml_open_file(getcwd()."/einzelnes_item.xsl") $elements = $dom->get_elements_by_tagname("table") echo count($elements)." Elements<br/>"; for ($i=0;$i<count($elements);$i++)
4
2,473
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);...
2
5,618
thread by: Joca | last post Jul 16 '05 by: Cl1mh4224rd
Hi. I have a problem with a dirname. I can´t read a file if i write this code: <?php $user = $_REQUEST; $filename = dirname(_FILE_).'/../revadv/$user'; $lines = file($filename); ?>
0
2,470
thread by: Rutger Claes | last post Jul 16 '05 by: Rutger Claes
I'm starting a new project, and I was wondering what is considered best practise in the following cases: * Connecting to multiple databases using the PEAR library. * Triggering your archive script from within the project without cron on the server It doesn't looks right to start archiving each time a user visits a page. * ...
2
4,364
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;
3
10,822
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,...
1
2,209
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
1
3,142
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...
10
3,820
thread by: Lukas | last post Jul 16 '05 by: Ian.H [dS]
I want to send an email directly to a directory on my server what script do I need to do this? Maybe I should add a line to my aliases file like this: emailaddress: "|/usr/bin/email2directory" ? Thanks for some suggestions
6
3,502
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
2
3,328
thread by: Frans Schmidt | last post Jul 16 '05 by: Korthrun McBloodlust
I want to make a new database with several tables, so I did the following: <?php CREATE DATABASE bedrijf; CREATE TABLE werknemers (voornaam varchar(15), achternaam varchar(20), leeftijd tinyint(3), adres varchar(30), woonplaats varchar(20),
20
11,637
thread by: Chris Krasnichuk | last post Jul 16 '05 by: Geoff Berrow
hello, Does anyone know how I make php work on "my" computer? I made a mistake in my last post so I fixed it here. Chris
2
51,380
thread by: sky2070 | last post Jul 16 '05 by: Korthrun McBloodlust
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ')' in c:\inetpub\wwwroot\session.php on line 19 can anyone tell me what is wrong with this code??? <? // Define the Session class class Session { // Define the properties:
0
2,226
thread by: zelnaga | last post Jul 16 '05 by: zelnaga
i'm connecting to the internet via a proxy, and am having problems filling out forms... below is the code i have, and below that is the http request i am trying to make it look like. they look the same to me, but it isn't working, so i guess they aren't... $proxy = fsockopen("tcp://someaddresshere", 80, $errno, $errstr); $temp =...
3
3,342
thread by: Barrie Tingle | last post Dec 12 '05 by: nsales
Does anyone know of shopping cart software which will be suitable for custom PC buying (E.g. Alienware) where by there is a set price for an item and then the price changes depending on options selected by people E.g. Different sized hard drives, monitors etc. Cheap is good but of course free is better.
0
1,785
thread by: dmassie | last post Jul 16 '05 by: dmassie
is there anyway to increase the maximum size of the data part of: xml_set_character_data_handler(parser,data) since I've been told that it is set to 1024. Thanks Daniel
2
6,209
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.

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.