Re: [PHP] print url of refering domain
> I would like to be able to display the refering domain name on the page > along with a small text message (under construction) etc, to save me having > to create sites for each domain. Under Apache and with an HTTP/1.1 client, $HTTP_SERVER_VARS["HTTP_HOST"] contains the value you're looking for, I believe (i.e. the contents of the HTTP/1.1 Host header sent by the browser) - Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] preprocessing
There's a public domain function kicking around called "post_to_host" or something like that which will do exactly what you wish. If you search the list archives I'm sure there will be several pointers to where you can find it. - Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] preprocessing
You'll actually want to do a little more than that, i.e. read the socket and dump it to the browser so that the output from the page you're posting to gets displayed. There is another version of that function around that handles that too. I can post it later today if nobody else finds it first. :) - Tim - Original Message - From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 17, 2001 2:31 PM Subject: RE: [PHP] preprocessing > Thanks, Tim! > > http://marc.theaimsgroup.com/?l=php-general&m=98582357009336&w=2 > > Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Parse error..help!
It should be something like: function AccessHit() { ... } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Template Engine
Which reminds me, while the mailing list was down, I released the Dreamtime template engine for people to play with. More components of the system to come later this week. http://www.phptemplates.org - Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHPDOC 2.3.5 released
I can't say enough good things about the latest version of PHPDOC...great stuff!! The ability to have multiple classes in a file is a big leap forward. You can see it in action at: http://www.phptemplates.org/old/classref/index.html - Tim - Original Message - From: "Christian Calloway" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 7:15 AM Subject: [PHP] PHPDOC 2.3.5 released > Hi everyone, > > I released a new version of PHPDoc, 2.3.5, ... You can get it at > http://www.callowayprints.com/phpdoc > > Thanks everyone, > > Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Another Template Engine (code)
You may want to take a look at Dreamtime's template engine. I've had pretty good feedback on it so far. The template language supports things like loops, if-then, pre-compiling templates, etc., which makes assembling complex pages pretty easy. We replaced a whole heap of Cold Fusion code with a few Dreamtime templates and a little PHP code during a big conversion job (CF -> PHP) late last year. For example, if you've got a few arrays of values and want to output an HTML table, your PHP code looks like: $names = array("Tim", "Alice", "Dilbert"); $ages = array(34, 36, 37); $t = new DTTemplate("table.html"); $t->set("names", $names); $t->set("ages", $ages); $t->send(); and your template (table.html) could look like: {:each:names} {names}{ages+} {:end} The layer above this, the Page Manager, supports the lists of variable hashes you talked about, so that you can give it a big associative array instead of doing a series of set() calls for each variable. - Tim http://www.phptemplates.org - Original Message - From: "scott [gts]" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 5:29 PM Subject: [PHP] Another Template Engine (code) > i wrote a simple classified and hash-enabled template engine > as a sort-of proof of concept -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] protect source code
APC is a script cache engine, like the Zend Cache, it doesn't protect your source code. - Tim http://www.phptemplates.org - Original Message - From: "Reuben D Budiardja" <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 9:58 AM Subject: Re: [PHP] protect source code Someone told me that there is another php compiler, called APC. Check it out here: http://apc.communityconnect.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Apache config + PHP include paths
Yes, in httpd.conf, just add the appropriate line, i.e. php_value include_path "blah" in the section for each virtual host. - Tim http://www.phptemplates.org > is there a way to set up a different include path per virtual host in the > apache config or in the php.ini ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php as cron
If you're partial to the approach of using a web-based program to do this (often a bad idea, for security reasons) then look at 'curl' or 'wget' instead of 'lynx'. (you can find them on Freshmeat.net) Much better is to build the CGI version of PHP, and use PHP as a script processor just like Perl, Korn, BASH, etc., i.e. #!/path/to/php.cgi -q ...script goes here... - Tim http://www.phptemplates.org - Original Message - From: "AJDIN BRANDIC" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 22, 2001 4:28 AM Subject: RE: [PHP] php as cron > Hi again, > > this is what I have done, as adviced by you guys (thanks) > > created a file called pop which contains > #! /bin/sh > lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3 > /dev/null > clear > > If I execute this from the shell ./pop it works OK. > But as a cron job I get an error message sent to my mail box > "Your terminal lacks the ability to clear the screen or position the > cursor.", > hence this 'clear' bit in my script to try to sort the problem but no joy. > > Any ideas? > > Ajdin > > > > On Thu, 21 Jun 2001, Joseph Tate wrote: > > > Have you tried 'php '? Now, I don't know how you would pass > > parameters to it... > > > > > -Original Message- > > > From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, June 21, 2001 8:09 AM > > > To: AJDIN BRANDIC > > > Cc: [EMAIL PROTECTED] > > > Subject: RE: [PHP] php as cron > > > > > > > > > try etc. > > > > > > 00,30 * * * * lynx -dump http://path.to.php.script > /dev/null > > > > > > Regards > > > > > > Johan > > > > > > > > > > > Hi > > > > > > > > I have PHP installed as Apache module but I want to run a cron job. I > > > > have .php script that works OK when executed through browser > > > but is there > > > > any way I could execute it through a cron job. > > > > > > > > Ajdin > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] damn $REQUEST_URI
$HTTP_HOST Run a page with on your server & you'll see all sorts of goodies in there. - Tim http://www.phptemplates.org - Original Message - From: "Peter Van Dijck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 7:10 AM Subject: [PHP] damn $REQUEST_URI > $REQUEST_URI gets me home/dir/index.php > but I need to get the domain name. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] date -> day
Use mktime() and then date(). http://www.php.net/manual/en/function.mktime.php http://www.php.net/manual/en/function.date.php - Tim http://www.phptemplates.org - Original Message - From: "Tyler Longren" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 10:58 AM Subject: [PHP] date -> day > Hello, > > I have something like this: > $Month = "6"; > $Year = "2001"; > $Date = "1"; > > Is there any relatively simple way to get the day out of that? For example, > the day for 6-1-2001 would be Friday. > > Thanks, > Tyler > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help with PHP/Oracle and serializing data
If the data will be less than ~4K, use 'varchar2', otherwise use 'long'. - Tim http://www.phptemplates.org - Original Message - From: "Michael Champagne" <[EMAIL PROTECTED]> To: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 2:42 PM Subject: [PHP] Help with PHP/Oracle and serializing data > I'm developing a web application and would like to be able to store the state > of the application in an Oracle table by serializing a bunch of variables and > storing them in the database. Has anyone done this? What datatype would be > best to use here? I'm not serializing too much data now, but other > applications that we do in the future may. Would this be a place to use a > CLOB or should I stick with varchar2? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help with PHP/Oracle and serializing data
In Oracle, 'long' is a variable-length character data column up to 2GB in size. Roughly equivalent to 'text' in mysql, I think. You can also use 'blob', 'clob' and/or 'nclob' instead, but I think access to those types is less straightforward than the 'long' type. - Tim http://www.phptemplates.org > Thanks for the response. I'm kind of confused though. You can use a 'long' > type for a string of characters greater than 4k? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Uptime error
It sounds like it might be the permissions on /proc itself. What does 'ls -ld /proc' say? - Tim http://www.phptemplates.org - Original Message - From: "Peter Phillips" <[EMAIL PROTECTED]> Subject: Re: [PHP] PHP Uptime error > Thanks for your help, this is what I get when I try a uptime while logged in > as nobody. > > These are the permissions is /proc: > -r--r--r-- 1 root root0 Jun 26 02:39 loadavg > -r--r--r-- 1 root root0 Jun 26 02:33 uptime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help with PHP/Oracle and serializing data
I used them all over on a large PHP3 (and later PHP4) site for several years until we migrated to PostgreSQL in January, with no problems. What's the correct alternative...CLOB's? - Tim http://www.phptemplates.org - Original Message - From: "Thies C. Arntzen" <[EMAIL PROTECTED]> > > If the data will be less than ~4K, use 'varchar2', otherwise use 'long'. > > do not use long as long are not fully supported in oracle > (and never were). > > tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What does this error mean?
The user the web server runs as (often 'nobody') does not have write access to the logs directory. - Tim http://www.phptemplates.org - Original Message - From: "Jimi Malcolm" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 28, 2001 3:17 PM Subject: [PHP] What does this error mean? > I'm trying to from a file in a directory called 'logs'. I've never seen > this error before. What does it mean? > > <<>> > Warning: fopen("logs/993700800.log","w+") - Permission denied in > /home/sites/site20/users/guide/web/counter.php on line 28 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
We regularly use PHP to send messages to a 100,000+ member mailing list. No problem. I did insert some periodic pauses to give the mail server some breathing room. :) - Tim http://www.phptemplates.org >From: "Matthew Delmarter" <[EMAIL PROTECTED]> > I at looking at using PHP to send a monthly newsletter to 5000+ users who > have subscribed via our site. The newsletter will be in HTML format for > those who have selected this option - otherwise plain text. > > Can PHP handle something like this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
We use mail(). I have on my list to re-write it to use SMTP sometime to see if it works any faster, but it also goes into the "if it ain't broke, don't fix it" category. If all the messages were identical, we might be able to get some efficiency by sorting the list by domain name and batching them up with SMTP, but usually they're customized for each person. This gets run on a fairly beefy Sun E420 with an excellent network connection (Digital Island @ http://www.digitalisland.net) which may help things a bit. :) - Tim http://www.phptemplates.org >Are you using the mail() function for this? Or talking direct to an smtp >server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sending 5000+ emails - use PHP?
Can't say that I agree. Once you get through to the SMTP port you can tell it that the following message is supposed to go to a list of people and you only connect once, vs. connecting once for each recipient. More efficient all the way around, I would think. Mind you, I haven't tried this on a large scale yet, so YMMV. - Tim > > If all the messages were identical, we might be able to get some efficiency > > by sorting the list by domain name and batching them up with SMTP > > That's a very BAD idea. If you sort the mail by domain, you will flood > the mail queue because normally, mail sent to hotmail or yahoo will need > a repeated attempts before getting through. Better leave the email > address randomized as they are. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sessions and redundant servers
The load-balanced cluster implementations I've worked with define a PHP session handler that uses a database to store session data, and so it doesn't matter which web server a particular session comes from, the data is stored in a centralized place. - Tim http://www.phptemplates.org > How do you "keep" your variables across redundant servers? Or, > isn't anybody out there hosting PHP-based services on grouped > servers? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Storing serialized classes in database
The way we do commonly this in Dreamtime is to have a container object (essentially an associative array with a wrapper (http://www.phptemplates.org/old/classref/dot_Container.html) that allows you to get/set the profile data elements by name. That whole object is then serialized as the (single) session data element. However, in a pinch I think that unserialize() could probably tolerate some deviation in the class definition. You could probably add/delete methods without any problem, since methods aren't serialized. I haven't tried to see what would happen if the list of variables of the serialized object didn't match the subsequent class, but I'm guessing that PHP is pretty forgiving. It would only take a few moments to try this out. - Tim http://www.phptemplates.org - Original Message - From: "Michael Champagne" <[EMAIL PROTECTED]> To: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 10:58 AM Subject: [PHP] Storing serialized classes in database > We are writing a series of applications which will store a user 'profile' > between sessions as a serialized object in our Oracle database. We're storing > data like the output format a user prefers file downloads in and things like > that. If have to add certain things to this class, I'm assuming the > serialized objects in the database become unusable. Does anyone have a good > solution for this? I suppose we could go through the database and somehow > convert these serialized 'profiles' to meet the new class spec. How much of a > hassle is that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HTML/PHP's static state problem.
If it's not prohibitive, you can pre-load all the possibilities into javascript arrays via PHP, and decide which to subset to display using javascript. I did this on a large on-line kid's encyclopedia, where the page could display different lists of links using javascript depending on where they clicked. As an alternative, if your user interface is done in Flash, then it's a simple matter to query the server for the list of cities to display whenever the first has a new selection. - Tim http://www.phptemplates.org > The first one contains names of countries, the second names of cities within those countries. When I select "Belgium" in the first one, I only want to see all Belgian cities. > Now with JavaScript this wouldn't really be a problem, I guess, but I need PHP for going into my database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Not sure how to describe this problem..
I agreee that it sounds like you're running into concurrency issues with mySQL. I would just adopt a statistical approach, and pick a banner at random each time...if the random number generator works properly, then you'll get an even distribution over the universe of available banners. If you need up update the banner view count, you'll probably still have concurrency issues unless you lock the table or use transaction support during the UPDATE command. - Tim http://www.phptemplates.org > I have a chunk of code in a webpage that works like this, to rotate some > ads.. : > ... > So I guess what is happening is that when 2 people hit the page at the exact > same time, it's getting updated values out of the DB for some of the ads > before they are all updated.. how can I go about controlling this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Average of column...
You can name the pseudo-column by doing "select AVG(age) as avgage from ..." and then accessing it as "avgage". - Tim http://www.phptemplates.org - Original Message - From: "Jeff Lewis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 10, 2001 11:27 AM Subject: [PHP] Average of column... > I am trying to obtain the average age for a few teams in my database. > $age_result = mysql_query("select AVG(age) FROM bat_rost WHERE ownerID = > '$teamID'"); > while(($row = mysql_fetch_object($age_result))){ > $age=$row->age; > echo "Average age - ".$teamID.$age;} > > How can I get the average age from this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Speed of loding PHP pages
Netscape is notoriously slug-like when it comes to loading large tables (i.e. the output of phpinfo()). - Tim > As an experiment, I have a page that issues a phpinfo(). WIth I.E. 5.5, > it takes about 3 seconds. With Netscape 4.77, it takes almost 20 > seconds. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how do i get url: response codes?
Here's some code I've been using for that. YMMV. :) - Tim http://www.phptemplates.org // // checks $url, returns true/false and sets the response code in $response // function dt_checklink($url, &$response) { $ua = parse_url($url); $host = $ua[host]; $port = ($ua[port] != 0) ? $ua[port] : 80; $path = ($ua[path] != "") ? $ua[path] : "/"; $http_req = "HEAD $path HTTP/1.1\r\nHOST: $host\r\nConnection: close\r\n\r\n"; $http_resp = ""; $response = "999"; $fp = @fsockopen($host, 80); if ($fp) { socket_set_timeout($fp, 20); $start = time(); fputs($fp, $http_req); while (!feof($fp) && ((time()-$start)<20)) { $http_resp .= fgets($fp, 256); } fclose($fp); if (ereg("HTTP/[0-9]\.[0-9] ([0-9][0-9][0-9]) ", $http_resp, $regs)) { $rcode = $regs[1]; $response = $rcode; if ($rcode == 200) return true; // OK if ($rcode == 301) return true; // document moved if ($rcode == 302) return true; // document moved return false; } return false; } return false; } - Original Message - From: "Patrick Sibenaler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 12, 2001 6:28 AM Subject: [PHP] how do i get url: response codes? > I've tried for a while now to figure out how to test from within php > if a url (http://xxx/file.html) is present and what error code is > returned (200,201,202,404, etc...) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Upcoming wrox php/flash book?
Yep, the Flash 4/5 LoadVariables function will let you call a PHP script that sends the data back as URL encoded variables. Works great! - Tim http://www.phptemplates.org - Original Message - From: "Andrew Chase" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 13, 2001 11:43 AM Subject: RE: [PHP] Upcoming wrox php/flash book? > Also, PHP's .SWF generating capabilities aside, PHP could also be used to > generate included text on the fly - I forget the exact command, but I know > you can define the contents of a variable from an external file in Flash. > This would lend itself to updating a newsfeed or "What's New" blurb within a > Flash file without having to recompile it from its .FLA source. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Web application?
I do this on several large high-traffic sites, as part of a content-management system, and it works fine. If you also use a script cache product (Zend Cache or APC) and a cacheing template engine (cough, cough) together in this kind of environment, you should see excellent results, with the database engine being your largest bottleneck. - Tim http://www.phptemplates.org > The question is this: Say I have a large main script that handles most > of the request if not all, I wonder what are the effect of this approach > on performance in a situation where we have a fair number of concurrent > users? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] CAN'T connect to db when running PHP as Cron
I would gather the output from phpinfo() for each case (web server & cron job) and compare them. Often a path or environment variable will be different. This is especially true of Oracle which is somewhat fussy about having it's environment set properly in order to connect. - Tim http://www.phptemplates.org >I have a php script that connect to database and retrieve something, or do >something with the db. >I can run the script from the command line, it works just fine. >But when I run it as cron, it gives error cannot connect to the database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Apache + Oracle + PHP on HPUX
>I've got an HP-UX 10.20 and I would like to install >Apache + Oracle + PHP. You have my deepest sympathies. :) I installed and maintained PHP3 & PHP4 + Oracle + OpenSSL + Apache on a system like that for 2 years before we were finally able to retire it and move to a Solaris environment. The hardest part is getting things successfully compiled and linked against the various extra libraries (Oracle, GD, etc.) with the correct flags. I'll look around to see if I still have the various makefiles & config files that I used, but I suspect they're away on a backup tape somewhere. Searching the archives of this list and groups.google.com will be your best source of help. - Tim http://www.phptemplates.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]