Re: [PHP] Anybody using Miva or hosted at Hosting4All?
what do you need to know about Miva? Its got a GUI front end to allow you to construct your store, it has support for many ecoms (like authorizenet, etc), decent scripting language through mivascript, etc. -- Daniel Baldoni wrote: > > G'day folks, > > We've got a web-application ready to install and everything looks okay except > that the client has chosen Hosting4all as their web-hoster. They > (Hosting4all) don't have a version of PHP linked with cURL and we need to > process credit card information. Again, the client has chosen a payment > processor and, as expected, secure-HTTP is required. > > All fair enough - the payment script has been written and works on our > servers. Of course, it'll fail dismally on Hosting4All's servers. > > My question is... > > Is anybody on this list hosting an e-commerce site with Hosting4All? > Or, has anybody had any experience with the "Miva Engine" which > Hosting4All provide "free of charge" (i.e. as part of the > subscription fee)? > > Any help would be much appreciated. Thanks in advance. > > Ciao. > > -- > ---+- > Daniel Baldoni BAppSc, PGradDipCompSci | Technical Director > require 'std/disclaimer.pl'| LcdS Pty. Ltd. > ---+ 856B Canning Hwy > Phone/FAX: +61-8-9364-8171| Applecross > Mobile: 041-888-9794 | WA 6153 > URL:http://www.lcds.com.au/| Australia > ---+- > "Any time there's something so ridiculous that no rational systems programmer > would even consider trying it, they send for me."; paraphrased from "King Of > The Murgos" by David Eddings. (I'm not good, just crazy) > > -- > 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] -- Michael B. Weiner, Linux+, Linux+ SME Systems Administrator/Partner The UserFriendly Network (UFN) -- Linux Registered User #94900Have you been counted? http://counter.li.org PGP: 30 1D CC BA 30 30 63 35 CD 58 E0 89 A9 17 CC C0 8C 55 F7 72 .Escape the 'Gates' of Hell `:::' ... .. ::: * `::.::' ::: .:: .:.::. .:: .:: `::. :' ::: :: :: :: :: :::::. ::: .::. .:: ::. `. .:' ::. ...:::.::' ... -- S/MIME Cryptographic Signature
Re: [PHP] phpMyAdmin No Error No Output
make sure you have mysql support built into your php, mysql up and running with the appropriate mysql and test database, and make sure the config.inc.php3 is set properly -- Prachait Saxena wrote: > > HI, > > I had downloaded a new version 2.2 of phpMyAdmin from the site. and placed > it on my site on the Internet. > > but i am getting no error and no output > > can any one tell me why this is happning .??? > bye > > -- > > Prachait Saxena > Offical ( [EMAIL PROTECTED] ) > Personal ( [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] -- Michael B. Weiner, Linux+, Linux+ SME Systems Administrator/Partner The UserFriendly Network (UFN) -- Linux Registered User #94900Have you been counted? http://counter.li.org PGP: 30 1D CC BA 30 30 63 35 CD 58 E0 89 A9 17 CC C0 8C 55 F7 72 .Escape the 'Gates' of Hell `:::' ... .. ::: * `::.::' ::: .:: .:.::. .:: .:: `::. :' ::: :: :: :: :: :::::. ::: .::. .:: ::. `. .:' ::. ...:::.::' ... -- S/MIME Cryptographic Signature
Re: [PHP] Message from hunter Problems
yes it was signedand outlook doesnt handle that well ReDucTor wrote: > > hey, > That message sent here, by hunter the "Re: [PHP] Anybody using Miva or hosted at >...", i open it in outlook, and my outlook frezzes...any one know why? :) > - James "ReDucTor" Mitchell -- Michael B. Weiner, Linux+, Linux+ SME Systems Administrator/Partner The UserFriendly Network (UFN) -- Linux Registered User #94900Have you been counted? http://counter.li.org PGP: 30 1D CC BA 30 30 63 35 CD 58 E0 89 A9 17 CC C0 8C 55 F7 72 .Escape the 'Gates' of Hell `:::' ... .. ::: * `::.::' ::: .:: .:.::. .:: .:: `::. :' ::: :: :: :: :: :::::. ::: .::. .:: ::. `. .:' ::. ...:::.::' ... -- -- 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] Re: php-4.0.6 on RH-7.1
I am trying to compile and install php-4.0.6 on a redhat-7.1 linux-2.4.3 server using the following for configure: ./configure --prefix=/usr --with-apxs=/usr/sbin/ apxs --enable-versioning --with-mysql --enable-track-vars --with-xml --disable- debug --enable-pic --enable-shared --enable-inline-optimization --with-regex=sy stem --with-gettext --with-gd --with-png --with-ttf --with-zlib --with-db2 --wi th-db3 --with-gdbm --with-openssl --with-layout=GNU --enable-debugger --enable- magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysv shm --enable-yp --enable-ftp --enable-wddx --without-oracle --without-oci8 and when i make i receive the following error: /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DLINUX=22 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c ./zend_execute.c ./zend_execute.c: In function `execute': ./zend_execute.c:2360: Internal compiler error in ggc_recalculate_in_use_p, at ggc-page.c:880 Please submit a full bug report. See http://bugzilla.redhat.com/bugzilla/> for instructions. make[1]: *** [zend_execute.lo] Error 1 make[1]: Leaving directory `/root/temp/php-4.0.6/Zend' make: *** [all-recursive] Error 1 this is after i patched php with redhat's patches...funny thing is that without the --with-apxs option, it makes just fine, but i wanted to build a DSO so that i could drop it in to apache-1.3.20 as a loadable module, so i added that option and did a make clean and reconfigured, and thats when i received the error. I didnt see the error without the --with-apxs option Has anyone got any ideas on how to correct this? Any assistance would be appreciated. -- Michael B. Weiner, Linux+, Linux+ SME Systems Administrator/Partner The UserFriendly Network (UFN) -- Linux Registered User #94900Have you been counted? http://counter.li.org PGP: 30 1D CC BA 30 30 63 35 CD 58 E0 89 A9 17 CC C0 8C 55 F7 72 .Escape the 'Gates' of Hell `:::' ... .. ::: * `::.::' ::: .:: .:.::. .:: .:: `::. :' ::: :: :: :: :: :::::. ::: .::. .:: ::. `. .:' ::. ...:::.::' ... -- S/MIME Cryptographic Signature
[PHP] Re: php-4.0.6 compile errors
I have been trying to complete this compile on a redhat-7.1 linux-2.4.3 server running apache-1.3.20 and when i compile in --with-imap i get the following trying to restart apache: ~/temp/php-4.0.6# /etc/rc.d/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: Syntax error on line 257 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /etc/httpd/modules/libphp4.so: undefined symbol: mxdriver [FAILED] I look and sure enough its an imap issue as in the following: ~/temp/php-4.0.6# grep -r mxdriver * ext/imap/php_imap.c:mail_link(&mxdriver); /* link in the mx driver */ ext/imap/php_imap.c.orig: mail_link(&mxdriver); /* link in the mx driver */ Binary file ext/imap/php_imap.lo matches Binary file ext/imap/.libs/libimap.al matches Binary file libs/libphp4.so matches Has any got any ideas or possible solutions? -- Michael B. Weiner, Linux+, Linux+ SME Systems Administrator/Partner The UserFriendly Network (UFN) -- Linux Registered User #94900Have you been counted? http://counter.li.org PGP: 30 1D CC BA 30 30 63 35 CD 58 E0 89 A9 17 CC C0 8C 55 F7 72 .Escape the 'Gates' of Hell `:::' ... .. ::: * `::.::' ::: .:: .:.::. .:: .:: `::. :' ::: :: :: :: :: :::::. ::: .::. .:: ::. `. .:' ::. ...:::.::' ... -- S/MIME Cryptographic Signature
Re: [PHP] MySQL trubs
sounds like you need to make sure the password in phpMyAdmin and the MySQL for the user running the app are the same. You can reset the users password with mysqladmin -u username password new-password and then edit the phpMyAdmin config and make sure everything matchesalso, one small suggestion, you should run a DB admin app for anything production or accessible that uses root, you should create or select a user and grant them the appropriate privileges to run phpMyAdmin. This could lead to a potential security breach on a machine thats accessible. just my $ 0.02 -- Michael O'Neal wrote: > > Hi. I've recently set up phpMyAdmin on an OS X 10.1 server. Everything was > fine, and it set up great. I then restarted the Apache server and am > getting this message: > > Warning: Access denied for user: 'root@localhost' (Using password: YES) in > /Library/WebServer/Documents/Mangotest/phpMyAdmin/lib.inc.php on line 351 > > Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' > (Using password: YES) in > /Library/WebServer/Documents/Mangotest/phpMyAdmin/lib.inc.php on line 351 > Error > > MySQL said: Access denied for user: 'root@localhost' (Using password: YES) > > I've been mucking around the command line for a while, but can't figure out > how to reset my root password. It *was* setup with a root password, but it > won't let me in now. Anyone have any suggestions? > > Please respond to [EMAIL PROTECTED], as I am on the digest. Thanks. > > mto > > -- > > Michael O'Neal > Web Producer/ Autocrosser > ST 28 '89 Civic Si > - > M A N G O > B O U L D E R > - > http://www.thinkmango.com > e- [EMAIL PROTECTED] > p- 303.442.1821 > f- 303.938.8507 > > -- > 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] -- Michael B. Weiner, Linux+, Linux+ SME Systems Administrator/Partner The UserFriendly Network (UFN) -- Linux Registered User #94900Have you been counted? http://counter.li.org PGP: 30 1D CC BA 30 30 63 35 CD 58 E0 89 A9 17 CC C0 8C 55 F7 72 .Escape the 'Gates' of Hell `:::' ... .. ::: * `::.::' ::: .:: .:.::. .:: .:: `::. :' ::: :: :: :: :: :::::. ::: .::. .:: ::. `. .:' ::. ...:::.::' ... -- -- 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] PHP + Java
Does anyone have PHP 4.2.3 and Java running together? I need to see how you have the php.ini file set up... Here is mine and it just hangs... [Java] java.class.path=/usr/local/lib/php/php_java.jar java.home=/usr/local/java java.library=/usr/local/java/jre/lib/i386/hotspot/libjvm.so extensions_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20020429 extension=java.so Thanks, -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sigh :)
Which version of mysql are you using? -- Ray On Wed, 2002-12-04 at 10:33, John Taylor-Johnston wrote: > Hi, > > Can someone take a look at this again, please? > > http://news.php.net/article.php?group=php.general&article=126934 > > Your posts so far have proven fruitless. Thanks for trying. :) I do appreciate it. > > I will try to answer everyone at the same time. > > Someone mentionned it might be a problem with magic_quotes, but I didn't really >follow. > > http://news.php.net/article.php?group=php.general&article=126990 > > I did test what he suggested: > > >From John Holmes > > try this > > Doesn't work. :) Thanks. I did try: > > $sql = "SELECT id,AU,ST,BT,AT FROM $table WHERE MATCH >(TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST ('".$search."' IN >BOOLEAN MODE) ORDER BY id asc"; > > It echos: > > ('\"ready maria\"' IN BOOLEAN MODE) > > It should echo: > > ('"ready maria"' IN BOOLEAN MODE) > > for it to work. But even if I add slashquotes, it won't do it. > > >-- > >could you get the error message with mysql_error() and post it here? > > There is no error. I wish there was :) Thanks for trying. > > >Doesn't work - Resembles +ready +maria > >hmm - how do you get your string "ready maria"? > > > > >why '.$table.' and not '".$table."' > >with what you've got now, I believe you are looking for table name. > > Good idea. Done that. Doesn't change . :) Thanks. > > >also, use double quotes for start and end of variables as in: > >$sql="select * from '".$table."' where var='some > >value other than a number' "; > > Doesn't work. :) Thanks. > > John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Detecing a Number
If you are getting a number from a user via a form you can use javascript to verify that the user inputed a number... search google -> validating forms that should give you some info. You could also verify that the data is a number by is_numeric or is_int... I think that when the data is POSTed that it will be a string so you can use is_numberic to verify if it is... http://www.php.net/manual/en/function.is-numeric.php On Wed, 2002-12-04 at 14:01, Stephen wrote: > I have a repeating function to add. The user enters the number of how many > numbers they want to add, then it repeats a form field. What I want to do is > detect to make sure that the value they enter is a number. If not, don't do > the do while loop and if it is, then go ahead and do it. How can I do this? > > Thanks, > Stephen Craton > http://www.melchior.us > > "What is a dreamer that cannot persevere?" -- http://www.melchior.us > > > __ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Looping Addition
What type is $_POST['vars']? I think that it is a string...you might have to convert it to an integer... if( is_numeric( $_POST['vars'] ) ) { $vars = (int)$_POST['vars']; } else { echo "Error: \$_POST['vars'] is not an integer."; } On Wed, 2002-12-04 at 14:26, Stephen wrote: > Sorry for the uncontrolable emaling to the list but I'm in rather a stump. > You may be hearing a lot from me over the next few days too. > > Anyway, I mentioned before my form with the addition that loops to the > number of numbers the user wants to add. Now to the part of the actual > addition, how could I loop that out also? > > Here's what I'm trying to do right now but naturally, it doesn't work: > > $output = 0; > $current = 1; > do > { > $output .= $num.$current + > $current++; > } while($current <= $_POST['vars']); > > Any help would be great! Thanks! > > Thanks, > Stephen Craton > http://www.melchior.us > > "What is a dreamer that cannot persevere?" -- http://www.melchior.us > > > __ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] # of lines in a file
Might not be the most secure way, but very fast... $lines = `cat file.txt | wc -l` That will give you the number of lines...but again not the best method... On Mon, 2002-12-09 at 09:58, [EMAIL PROTECTED] wrote: > Hey guys, I've been searching the manual for a way to grab the number of > lines in a file and read a particular line from it, however I found no > solution to my problem so I'm wondering if any of you out there could help me > :-) > > - CS -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Linux and Graphics
What functions do you want to use? You can review the functions in the manual and it will tell you how to configure php with them... On Mon, 2002-12-09 at 13:31, Todd Cary wrote: > I am running PHP in a RedHat 7.3 environment and I notice that the > graphic functions are not present. Since I am quite new to Linux, I > would appreciate it if someone could explain to me what I need to do > to have graphic functions. > > Many thanks. > > Todd > -- > Ariste Software, Petaluma, CA 94952 -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] a simple test script for testing gd
There are some test scripts in the tests directory of the src. However, i do not know if there are any script for the testing of gd functions... On Mon, 2002-12-09 at 13:12, [EMAIL PROTECTED] wrote: > Hello list, > > Anybody here who knows a simple php-script for the puspose of testing gd-related >tasks eg like > dynamic construction of buttons??? > > Oliver Etzel -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fractions
Just like math...find the greatest common denominator of the numerator and denominator and then divide each (numerator and denominator) by that number... ie: numerator = 8 and denominator = 12 so we have 8/12 then greatest common denominator is 4... so 8/4 = 2 and 12/4 = 3 thus, 8/12 => 2/3 On Mon, 2002-12-09 at 15:55, Stephen wrote: > I know for a fact that you're all going to think, "What the heck does > he want fractions for!?" I have a reason...I just won't tell you. :-P > > My problem is this. I want to simplify a fraction to simplest form but > if I divide, I'll get a decimal which I can't use. How could I put it > in simplest form without displaying a decimal to the user and if one > does come up, a mixed number? > Thanks, > Stephen Craton > http://www.melchior.us > > "What is a dreamer that cannot persevere?" -- http://www.melchior.us > > __ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fractions
If there are none in the math functions then you need to create your own or do a search at google to see if anyone has created some functions like that... On Mon, 2002-12-09 at 16:20, Stephen wrote: > But how do you find it in PHP? > > > - Original Message - > From: "Ray Hunter" <[EMAIL PROTECTED]> > To: "Stephen" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday, December 09, 2002 6:12 PM > Subject: Re: [PHP] Fractions > > > > Just like math...find the greatest common denominator of the numerator > > and denominator and then divide each (numerator and denominator) by that > > number... > > > > ie: numerator = 8 and denominator = 12 > > > > so we have 8/12 > > > > then greatest common denominator is 4... > > > > so 8/4 = 2 and 12/4 = 3 > > > > thus, 8/12 => 2/3 > > > > > > On Mon, 2002-12-09 at 15:55, Stephen wrote: > > > I know for a fact that you're all going to think, "What the heck does > > > he want fractions for!?" I have a reason...I just won't tell you. :-P > > > > > > My problem is this. I want to simplify a fraction to simplest form but > > > if I divide, I'll get a decimal which I can't use. How could I put it > > > in simplest form without displaying a decimal to the user and if one > > > does come up, a mixed number? > > > Thanks, > > > Stephen Craton > > > http://www.melchior.us > > > > > > "What is a dreamer that cannot persevere?" -- http://www.melchior.us > > > > > > __ > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > > > > Ray Hunter > > email: [EMAIL PROTECTED] > > www: http://venticon.com > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Format a currency values
Look at this function in the manual: number_format() HTH, Ray On Mon, 2002-12-09 at 17:38, Adriano Santos wrote: > What should I do in order to view a currency format field? > For example: I have a double-type field in my table that receives values in > currenct, > and I want to show the user the following message: > > print "Your monthly fee is R$50,00" ? > > thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Know the path
Check out the filesystem functions: http://www.php.net/manual/en/ref.filesystem.php On Tue, 2002-12-10 at 12:05, Christian Ista wrote: > Hello, > > I have a web site with several directories or subdorectories, I'd like to > know when I call (include) php page, the path where I'm. Is it possible? > > Christian, -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] command line output
try using -q Here is the usage: Usage: php [-q] [-h] [-s [-v] [-i] [-f ] | { [args...]} -q Quiet-mode. Suppress HTTP Header output. -s Display colour syntax highlighted source. -w Display source with stripped comments and whitespace. -f Parse . Implies `-q' -v Version number -C Do not chdir to the script's directory -c Look for php.ini file in this directory -a Run interactively -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -z Load Zend extension . -l Syntax check only (lint) -m Show compiled in modules -i PHP information -h This help On Tue, 2002-12-10 at 12:30, Bryan Koschmann - GKT wrote: > Hello, > > I'm trying out a little script run from the command line. It simply > outputs a number to send to Cacti. Is there any way to get it to NOT send > all the stuff like this: > > X-Powered-By: PHP/4.2.3 > Set-Cookie: PHPSESSID=ec0e2c10c8bd9e0a0ad02cfcc182dbfb; path=/ > Expires: Thu, 19 Nov 1981 08:52:00 GMT > Cache-Control: no-store, no-cache, must-revalidate, post-check=0, > pre-check=0 > Pragma: no-cache > Content-type: text/html > > 168 > > > (the 168 is my outputted number) > > Thanks, > > Bryan -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML Data push
You want the receiving page to be php that makes an xml page that is then pushed to be a processing page back to the user? I think some more detail might be needed... On Tue, 2002-12-10 at 12:35, Chris Boget wrote: > I'm looking into doing something like the following: > > [best viewed w/fixed width font] > User Request User Interface > | ^ > \/ | > Receiving Page --> XML Data push --> Processing Page > > where the "Receiving page" is a controller and pushes data > (as XML) to a processing page. What I'm not sure of is how > I can push the data. I'd rather not use sessions and the data > would be too large to pass as a get. I've looked at CURL but > unless I'm missing something, I'm not sure that's what I need. > I'm curious if someone can point me in the right direction? I > don't need to know _exactly_ how to do this. In fact, I'd rather > figure it out on my own. But as I'm not even sure where to > start looking, coming up with that answer is much more difficult. > So if any of you know where I can start looking to learn how I > can do this, I'd be ever so appreciative! > > thnx, > Chris -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML Data push
Why do you want to "push" it to another file...why not do all the processing in one php file that calls many functions then passes that data back to the user. if you still want to pass data then you can do this... controller.php push xml data to a table that has id and xml fields...then redirect the user to process_news.php with the id like process_news.php?id=123 then in process_news.php you use the id to pull the xml data out of the database. However, this is still going to eat up resources on the server... Another alternative that i have been looking into for this is like so: have php file create, process and save xml filethen you can use cocoon to allow the user to view the xml file... (check phpbuilder on this one)... On Tue, 2002-12-10 at 12:58, Chris Boget wrote: > > You want the receiving page to be php that makes an xml page that is > > then pushed to be a processing page back to the user? > > I think some more detail might be needed... > > No, sorry if I wasn't clear. The processing page is a PHP script on the back > end as well. The XML data being pushed to it would include specification as > to what action(s) the processing page would take. A crude example would be > something like the following. > > User clicks on a link for "Current News". The URL for which is: > www.domain.com/controller.php?request=CurrentNews > > controller.php would then push the following XML to process_news.php > > (yes, I know it's not well formed. just trying to show a quick example) > > display > -7 days > 0 days > Current > > > process_news.php would take that information, process it and spit out the > relevant data to the user. > > Another possibility would be when an administrator wants to add a new News > item. The form script would push something like the following to > process_news.php: > > > insert > Extra! > NewsBody > Today > > > and it would take that information, process it and add the new record to the > DB. > > That's basically what I'm trying to do. > > Chris -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?
Jean-Christian If you are only doing an insert then you do not need the transactions "BEGIN" and "COMMIT" because that is already done for you on a single insert. PGSQL is transaction based so if it does not go then it will not work. -Ray On Thu, 2003-01-09 at 22:23, Jean-Christian Imbeault wrote: > Jason Sheets wrote: > > > > Manual Excerpt: " If a second call is made to pg_connect() with the same > > connection_string, no new connection will be established, but instead, > > the connection resource of the already opened connection will be > > returned. You can have multiple connections to the same database if you > > use different connection string." > > You're right! I did some more testing and the problem is with my testing > code. I don't know why but the following code times out *but*, PHP > throws an error saying the code has timed out *but* calling > connection_status() says the code did *not* time out! > > Any idea why connection_status() returns 0 when it should return 2?? > > My code: > > set_time_limit(2); > echo "set execution limit to 2 seconds "; > register_shutdown_function("timed_out"); > require_once("db_functions/sql_query.inc"); > > $sql = "BEGIN;"; > $res = sql_query($sql); > $sql = "insert into test(test) values('testing 4');"; > $res = sql_query($sql); > > //This will cause the script to time out > $i = 0; > while(true) {$i++;} > > $sql = "COMMIT;"; > $res = sql_query($sql); > > function timed_out() { >$status = connection_status(); >if ($status == 2) { > echo "the script timed out "; >} >else echo "no time out. Connection status is $status "; > } > > The OUPUT: > > set execution limit to 2 seconds > > Fatal error: Maximum execution time of 2 seconds exceeded in > /www/htdocs/jc/shut.php on line 16 > no time out. Connection status is 0 > > Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?
You could try leaving off the ";"... Try $sql = "BEGIN" Try $sql = "COMMIT" That should work... On Thu, 2003-01-09 at 22:23, Jean-Christian Imbeault wrote: > Jason Sheets wrote: > > > > Manual Excerpt: " If a second call is made to pg_connect() with the same > > connection_string, no new connection will be established, but instead, > > the connection resource of the already opened connection will be > > returned. You can have multiple connections to the same database if you > > use different connection string." > > You're right! I did some more testing and the problem is with my testing > code. I don't know why but the following code times out *but*, PHP > throws an error saying the code has timed out *but* calling > connection_status() says the code did *not* time out! > > Any idea why connection_status() returns 0 when it should return 2?? > > My code: > > set_time_limit(2); > echo "set execution limit to 2 seconds "; > register_shutdown_function("timed_out"); > require_once("db_functions/sql_query.inc"); > > $sql = "BEGIN;"; > $res = sql_query($sql); > $sql = "insert into test(test) values('testing 4');"; > $res = sql_query($sql); > > //This will cause the script to time out > $i = 0; > while(true) {$i++;} > > $sql = "COMMIT;"; > $res = sql_query($sql); > > function timed_out() { >$status = connection_status(); >if ($status == 2) { > echo "the script timed out "; >} >else echo "no time out. Connection status is $status "; > } > > The OUPUT: > > set execution limit to 2 seconds > > Fatal error: Maximum execution time of 2 seconds exceeded in > /www/htdocs/jc/shut.php on line 16 > no time out. Connection status is 0 > > Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] DSO or static Module?
phpinfo() You can review the configuration command and in there view the command for apache... static = --with-apache=../apache_1.3.27 dso = --with-apxs=/path/to/apxs that should help you out or get you started...you can also verify in apache which module are built-in... On Wed, 2003-01-15 at 11:08, Lic. Carlos A. Triana Torres wrote: > Hi all, >Here is a question that might be too simple to be asked, but I need to know the >answer: Is there a way to find out if PHP is compiled as a DSO or as a static module? > > Thanx -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] please help
On Sun, 2003-01-19 at 12:57, JamsterJAM wrote: > Hi, > I have a problem. I have created a guestbook for my server and i have php installed. >You enter deatils and the guestbook stores it in guestbook.dat.php file. The >guestbook itself is also a php file. I have tryed it on other hosts and it has >worked. When i run it on my server it doesnt store the data i have inputted and show >it on the guestbook. This might be a bit confusing but if you could help me or >forward it to someone who can help me i would be much abliged. > > JAM We probably need more info to get to the real problem. However, you are probably having a problem with the the webserver (php) writing to the file. Make sure that the webserver has permission to write to the file. -- Ray Hunter email: [EMAIL PROTECTED] www:http://venticon.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Job Opportunity
I apologize everyone...evolution is going crazy... Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] AD authentication
Yes, I have used php-ldap to connect to exchange for authentication... -- Ray On Thu, 2003-01-23 at 17:52, Michael Hall wrote: > -- > > I was wondering if anyone had any experience, suggestions, advice or pointers > regarding the use of Win 2000 Active Directory servers to authenticate users in > PHP scripts hosted on Linux. Are PHP's LDAP functions of use here? > > TIA > Mick > > > > MICHAEL HALL Web Development Officer > Batchelor Institute of Indigenous Tertiary Education > W: [EMAIL PROTECTED](08) 8951 8352 > H: [EMAIL PROTECTED](08) 8953 1442 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP vs. Perl/Mason
Everyone, I was wondering if there are any perl/php programmers that have used mason. I am trying to get the advantages/disadvantages of each? I am pro PHP, but my does is pro perl. What does everyone think about the benefits of one over the other? Thanks, Ray signature.asc Description: This is a digitally signed message part
Re: [PHP] Found a PHP bug!!!!!!!!!
U might want to do a type cast to integer from string... http://www.php.net/manual/en/language.types.type-juggling.php On Mon, 2003-01-27 at 13:47, Scott Fletcher wrote: > I would need to use intval() to solve this problem > > "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'm referring to '08' and '09' that don't work > > > > "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > > > Found a PHP bug > > > ... > > > > if ($month == 01) > > > > > > I guess you mean: > > > > > > if ($month == '01') > > > > > > If so, this is not a bug. Otherwise, please explain what > > > you think is wrong. > > > > > > Chris > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-cli
you will want to issue a "cls" command to the shell with the exec command for using the back ticks... That should do it for you... example: exec( "cls" ); That should do it for you... Ray On Mon, 2003-02-10 at 21:20, Michael P. Carel wrote: > Hi to all, > > Is there anyone who could help me regarding php-cli in windows. What should > be the syntax to make the screen clear before echoing something? > Is there a good reference in php-cli? > > Thanks in advance for the replies. > > > > mike > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help me
make sure that the php3_xml.dll is in your system path and it can be found. Ray On Tue, 2003-02-11 at 07:38, Cavallaro, Vito wrote: > how i do work php with xml? > > In php3.ini add extension = php3_xml.dll but not work. is runnig on winnt > workstation > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] help me
The system needs to be able to find the dll so you might need to add C:\PHP3 to your system path... On Tue, 2003-02-11 at 11:05, Cavallaro, Vito wrote: > all *.dll are C:\PHP3 but internet explorer make unload the file.xml > > -Mensaje original- > De: Ray Hunter [mailto:[EMAIL PROTECTED]] > Enviado el: martes 11 de febrero de 2003 15:06 > Para: Cavallaro, Vito > Cc: [EMAIL PROTECTED] > Asunto: Re: [PHP] help me > > > make sure that the php3_xml.dll is in your system path and it can be > found. > > Ray > > On Tue, 2003-02-11 at 07:38, Cavallaro, Vito wrote: > > how i do work php with xml? > > > > In php3.ini add extension = php3_xml.dll but not work. is runnig on winnt > > workstation > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing PostgreSQL resource
This is how i handle this concept: 1. Determine the number of rows from the query. 2. Set up limits on how many rows to display per page. 3. Then do multiple queries with those limits. Postgresql allows for queries with limits. That should get you started... Ray On Wed, 2003-02-12 at 09:58, Lucas Lain wrote: > Hi.. i'm new at this mailing list and you can say that i'm a newbie in > Php programming :) > i dont know how to pass a connection to a database between pages. I want > to show the results in multiple pages with a unique connection. > can anyone help me? > Thanks in advance. > Lucas > > -- > Lucas Lain > [EMAIL PROTECTED] > Argentina > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] processing status page
Are you using a form to get the input from the user... One way that I do it is with Javascript...that will be the easiest bet for you... On Sat, 2003-02-15 at 15:15, Brendon wrote: > Hello, > > How can I create a page that notifies the user their request is being > processed after they click a submit button? > > For example, they type in some information, the page then says "Your > request is processing..." > > Maybe a few animated ... 's for eyecandy, and then once the process is > completed, they get directed to a desired page. > > Regards, > Brendon > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] processing status page
I can't remember the timer or sleeper function in javascript, but there is one... When you submit the form to the processing script (defined in your form tag) then you can have a javascript that displays a graphic or text for a few seconds that states "Processing data..." Then use the onload function in the body tag of the processing page to display the information from the submitted data... -- Ray On Sat, 2003-02-15 at 18:02, Brendon wrote: > Yes, I'm using a form. > > How do you do it with Javascript? Do you have an example you can give? > > Brendon > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Forms Help (continued)
Do you have globals turned on or off? Ray On Sat, 2003-02-15 at 21:19, Beauford.2002 wrote: > Has anyone seen or used this script? It looks fairly straight forward, but I > can't get it to work. It is however, exactly what I need. Any help is > appreciated. > > http://codewalkers.com/tutorials.php?show=28&page=1 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Protecting files
Try putting your files config files in a directory outside of the root web directory and access the files via the include_path directive in the php.ini file. If you dont have access you can add create a .htaccess file or set the configuration in a php script that is run before your other scripts. http://www.php.net/manual/en/configuration.changes.php http://www.php.net/manual/en/function.ini-set.php That should help you out. Ray On Mon, 2003-02-17 at 14:17, PR wrote: > Hello, > > How can I protect my php files among other files like templates > (.inc) and mysql config (config.inc) files being copied/read/imported (front > page)/used by other applications other than my > site... > > can this be done by htaccess? is so , could anyone point me into right > direction? > > -- > Thank you, > Paul > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP form help
Please provide more information...ie source code so we can find the problem. Ray On Wed, 2003-02-19 at 13:14, Steven M wrote: > Hi, > > I have created a form that passes details to the next page so the user can > see the details they have submitted before clicking confirm to submit to the > database. The problem is that the details dont seem to get passed to the > script after they have appeared on the confirmation page. I know the script > works because i submitted info to is successfully before i changed the form > action to point at the confirmation page. > > I think it has something to do with PHP sessions but am not sure how to make > it work. Thanks for any help. > > Steven M > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] get insert_id in odbc
Looks like there is not a function for it built in but you should be able to query the sequence and get the number from there by writing your own function... -- Ray On Wed, 2003-02-19 at 13:28, Jonathan Villa wrote: > Using MySQL, one can use mysql_insert_id to get the value of an > auto_increment column. > > How would I do this using ODBC and Access? > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cron Job help Needed
Do a search at google for "cron jobs tutorial"... http://www.google.com/search?q=cron+job+tutorials That should give you lots to read... :) -- Ray On Wed, 2003-02-19 at 13:36, Pushpinder Singh Garcha wrote: > Hello All, > > I need to ask you about some resources for "cron" jobs. Please suggest > some online help > > Thanks > Pushpinder Singh Garcha > _ > Web Architect -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Undefined offset notices
Try using a for loop instead of a while loop... example: for( $i = 0, $tot = count($tmpparts); $i < $tot; $i++ ) { $content = "?>".$tmpparts[$i]; eval($content); foreach($command as $name => $cmds) { if($tmpcmds[$i] == $name) { $docmd = $cmds; eval($docmd); } } } NOT TESTED...check and see if it works.. -- Ray On Wed, 2003-02-19 at 22:54, Shawn McKenzie wrote: > While debugging my code, that seems to work fine, I see hundreds of these > notices, many different ones with different offset numbers same line number. > > (I know I can turn notices off) > > Notice: Undefined offset: 2 in > D:\apps\www\test\themes\Family\includes\autotheme.inc.php on line 275 > > I would like to know what the notice pertains to (offset?) Here's the code: > > $commands is an associative array, $tmpparts and $tmpcmds are integer index > arrays. > > $i = 0; // Line 270 > while($i != count($tmpparts)) { > $content = "?>".$tmpparts[$i]; > eval($content); > foreach($command as $name => $cmds) { > if($tmpcmds[$i] == $name) { > $docmd = $cmds; > eval($docmd); > } > } > $i++; > } // Line 281 > > TIA, > Shawn > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Computer Authorization
domain name, wins, kerberos, nis, mac-address those might be what you need... if you are using dhcp then you can get the ip information from the dhcp number based on the mac address... but remember that these can be spoofed... On Thu, 2003-02-20 at 17:59, Chris Cook wrote: > Hello all, > > I am looking into an application that only specific computers can access. A > login does not work since we only want people to log in from certain > computers. IP numbers dont work since they are dynamic. Cookies work > temporarily, but are often deleted and are not the most secure route. Any > suggestions for accomplishing this? > > Thanks for any help, > Chris > > > > > _ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MAC address user recognition?
Remember that the mac address gets changed by devices on the network... -- Ray On Thu, 2003-02-20 at 20:29, Leo Spalteholz wrote: > I've been thinking about how to do authentication and user recognition > for my site without cookies. I had this idea but I don't really know > if its possible at all. > If I got the IP address from the request could I use ARP to get the > MAC address for that IP? If so I could compare that MAC address with > a (previously obtained) database of addresses and if it matches they > would automatically be logged in. So I could preauthorize my friends > and remember other users once they have signed up. > > It seemed like a cool idea but is this at all possible or am I just > insane? > > Thanks, > Leo > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Utah PHP User
I am thinking of starting a Utah PHP user group. If there are any Utah php user out there, please let me know if you would be interested in starting a user group for PHP. Thanks, Ray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Newbie look for some content specific tutorials
Greets all, First time poster here and a 1 week old PHP/Mysql programmer I have bought several books and scoured the net for any and all PHP/MySQL tutorials. Here is the problem I am running into: 1. The docs tell how to access MySql through the MySql monitor 2. any docs that tutor how to make PHP interact with MySql has you doing all the functions directly on the page 3. All the rest are written like VCR instructions (Mine still blinks "12:00") What I am looking for is a tutorial that talks specifically about the interaction of PHP forms with MySql I have figured out how to add records using PHP, and have even figured out a crude search function, but being able to update or delete records are eluding me. Does anyone know of a site that has this type of information with some extremely well commented samples? Thanks Jester -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't run PHP cli script from Cron
You might want to post some code so we can see why it is not running... What do you get when you run the code from the commandline? -- Ray On Thu, 2003-02-27 at 21:30, Justin Michael Couto wrote: > I am trying to run a PHP CLI script from cron using PHP 4.3 and FreeBSD > 5.0 > > This is what I have verified: > > My clock is set right > I can run bash scripts from cron > I have tried running the script as root and as other users > If I run the PHP CLI script by had it works fine > I set cron to run the script every minute just to make sure I am doing > my cron tab right > > Here is my crontab entry: > > * * * * * /path/to/file/file_name.php > > I also have > > * * * * * /path/to/file/bash_test_script > > which contains the following information > > ls -l >> /path/to/file/holder/file_results.txt > > With every passing minute the bash script gets run and file > file_results.txt get another ls appendied to it > > On the other hand, Nothing happens with the PHP script. Inside the php > script I have it emailing me using the php mail() funtction. If I run > this script by hand I get an email from the script. If I run the script > by cron everyminute I get nothing when I should be getting a email every > minute. > > I hope someone can help me with this. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Doing a Multiple Search
I know this must be an easy solution, just not seeing what it is. I have tried to add several options to the below code but can't seem to get it right. Here is the Base Line I am working with: $Query="SELECT * from $TableName WHERE lastname='$Array[lastname] AND firstname='$Array[firstname]' "; What I ant to be able to do is a search on both the lastname and the firstname so if someone just puts in the last name it will display all people with the queried last name regardless of the first name. So for the visual representation If I search for Bob Smith, it will give me: Smith Bob If I search by last name Smith, it will give me Smith Bob Smith John Smith Mike Any and all help would be greatly appreciated. Thanks in Advance Jess -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Calendar Controls
PHP does have some calendar functions: http://www.php.net/manual/en/ref.calendar.php However, these deal with converting between different calendar formats. There are the date and time functions that you will probably really would like to use. http://www.php.net/manual/en/ref.datetime.php Also, i would check out phpclasses or search on google for other php users that have created specific classes for what you are trying to accomplish. http://www.phpclasses.org -- Ray On Wed, 2003-03-05 at 05:23, shaun wrote: > http://calendar.msn.com/ has some great controls for veiwing dates > day/week/month view etc. Are these windows specific (ie ASP only) or ise > there a way to use these in my PHP? > > Thanks for your help > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two buffers??
Review the file functions and you will find what you need: http://www.php.net/manual/en/ref.filesystem.php Like the functions: 1) file_get_contents() and 2) file() -- Ray On Wed, 2003-03-05 at 07:40, Mattia wrote: > i need to put in a var all the processed contents of a .php file in my > directory. The filemust be processed, and its output put in a variable, > instead of output to the browser. The simple solution would be to use > > ob_start() > .. > .. > $var = ob_get_contents() > > or something like that with ob_ functions, the problem is that i'm already > using ob_ function, in particular i put in the beginning of my code a > ob_start("ob_gzhandler") , to compress the output. So if I use those funcs > twice i'll use the same buffer! Does anyone have solutions?? > > thanks > Mattia > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Newbie Problem with an IF Statement
I have a short bit of code that contains an if/else that is causing me some trouble, I am sure that the answer is staring me straight in the face, and I am not seeing it. Can someone take a look and see where I am coding wrong? if ("[status]='active'"){ print ("the active line\n"); } else { print ("inactive line\n"); } Thanks in advance Jess -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Still having a problem with IF/ELSE Statement
I want to tahnk those that responded to my previous post, seems I was doing this all the wrong way. I am still having an issue with the syntax: if("$status=='active'"){ echo("active line\n"); }else{ echo("inactive line\n"); }; When I display an employee record that has the employment status $Row[status] of active, then the "active line" displays no problem, when I display an employee record of an inactive employee, I still get the "active line". I have also tried to do it this way but to no avail: if("$Row[status]=='active'"){ echo("active line\n"); }else{ echo("inactive line\n"); }; Not to mention numerous ways of adding/removing/changing double quotes and single quotes around. Any and all help would be greatly appreciated Jess -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Still having a problem with IF/ELSE Statement
Maybe throw in the code where $status or $Row[status] get initialized. but i would do it like this: if( $status == 'active' ) { echo "active line\n"; } else { echo "inactive line\n"; } or if( $Row['status'] == 'active' ) { echo "active line\n"; } else { echo "inactive line\n"; } One of those should work based on the code. However, based on the variables $Row and $status that might not be the case. -- Ray On Thu, 2003-03-06 at 05:31, Hunter, Jess wrote: > I want to tahnk those that responded to my previous post, seems I was doing > this all the wrong way. I am still having an issue with the syntax: > > if("$status=='active'"){ > echo("active line\n"); > }else{ > echo("inactive line\n"); > }; > > When I display an employee record that has the employment status > $Row[status] of active, then the "active line" displays no problem, when I > display an employee record of an inactive employee, I still get the "active > line". > > I have also tried to do it this way but to no avail: > > if("$Row[status]=='active'"){ > echo("active line\n"); > }else{ > echo("inactive line\n"); > }; > > > Not to mention numerous ways of adding/removing/changing double quotes and > single quotes around. > > Any and all help would be greatly appreciated > > Jess > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PEAR problems
You might want to jump on the horde mailing list seeing that it is an issue with horde and not fully with PEAR. Horde uses PEAR for error and logging capabilities. And there are some really good people on the horde list. -- Ray On Thu, 2003-03-06 at 05:41, José Manuel Valente wrote: > Hi, > > I´ve compiled php-4.2.3 in my Red Hat 8 box and everything is fine. But > When I took a look at horde´s test page, It tells me PEAR is OK, Recent PEAR > is OK, mail is OK, BD is OK but Log is not OK. > And I need that log feature for my webmail (horde + imp). what can I do > to fix this? What´s wrong? > > Thanks, > José Manuel Valente > > [EMAIL PROTECTED] > Key ID = 0x4EB0F0BB > > +55 18 33228400 > SRI Tecnologia de Informação > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] stripslashes()
You could write a function like strippostslashes() that is called on everypage that access the $_POST or $_GET variables... -- Ray On Sat, 2003-03-08 at 23:29, John Taylor-Johnston wrote: > I need to stripslashes() practically every $value as I pass data from one submit to > another. > > L\'apprentissage d\'une langue ... > > Instead of doing it to every $value, someone showed me once something I could add > something to the beginning of my script. It was some type of code on a post_var that > turned off the addslashes on every $value. Anyone have an idea of what I'm talking > about? > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Is the problem a server setting?
You should contact the web hosting system administrator and verify that they upgraded php. From what i can tell it seems that they did upgrade php. -- Ray On Mon, 2003-03-10 at 10:58, Chad Henderson wrote: > I have a number of websites that are on a hosting company, that I have been > using for a year or so. Suddenly, this morning, all of the websites began to > have PHP script errors on scripts that have run without fail for a long > period of time. I think the server setup must have been altered this weekend > but do not know how to look for or prove this. Any ideas would be greatly > appreciated. > > Here is the error you get when you try to load http://www.afgaonline.com > > --paste-- > > Warning: file(http://www.afgaonline.com/templates/tem4.tem) [function.file]: > failed to create stream: HTTP request failed! ¿¯wT in > /home/afgaonli/public_html/includes/Template.php on line 15 > > --end paste -- > > The text that follows failed! above always changes. > > Here is the code that is failing: > > 12function Template ($template) > 13 { > 14 $this->template = $template; > 15 $this->html = implode ("",(file($this->template))); > 16 } > > What should I look for? > thanks! > > Chad > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Force refresh of graphic - how?
You can use the meta tags to do a refresh of the browser page... example: after content you add the seconds of delay before refresh... More info on the meta tag: http://www.xs4all.nl/~dimaroan/htl/index.html -- Ray On Wed, 2003-03-12 at 09:49, Mark Wilson wrote: > I have a PHP page which in turn calls an image-creating PHP program, > like so: > ...(calling page: mypage.php).. > > > > > > > > makepic.php does database lookups using the values of opt1 and opt2, > then creates a graphic (PNG) using that data and returns the graphic. > So far, so good... but the graphic is being cached, so the data is not > always up-to-date, unless I do a shift-reload of the calling page. > I tried adding a "pragma nocache" line to the HEAD of mypage.php, > but that had no effect. I don't want to tell my users to always do a > shift-reload - how can I force either mypage.php to not cache > the graphic, or get makepic.php's output to not be cached > Thanks... replies to [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Another questions about usning session.
But also note that session data can be stolen by other users too... -- Ray On Wed, 2003-03-12 at 10:10, Marek Kilimajer wrote: > Advantage of session is that you can trust the variables you keep in > your session. cookies can be spoofed > > André Cupini wrote: > > >* People, sorry my ugly English. I´m Brazilian... > > > >I am looking for learning more about sessions... I´m test this code below > >don´t work with me My php version is 4.1.2. > >Anybody have a complete example code of how use sessions? > >Another doubt: Sessions use cookies? What the advantage in use sessions > >instead of cookies? > > > >André Cupini > >Programador > >[EMAIL PROTECTED] > >NeoBiz - fábrica de internet > >http://www.neobiz.com.br > > > > > >Definitely. > > > >- enable cookies on your browser > >- make sure you're using PHP >= 4.1 > > > >1. Start with a blank text file. > > > >2. Copy and paste this in: > >--- > > >session_start(); > >if (!isset($_SESSION['count'])) { > >$_SESSION['count']; > >} > >else { > >$_SESSION['count']++; > >} > >?> > >Hello visitor, you have seen this page > >times. > >To continue, click here > >--- > > > >3. Open it up in your browser, and test that it works (the value of > >$_SESSION['count'] should increase with each click) > > > >4. If that much works, open up the URL in a second window, and try to run > >two separate sessions... (the first window might be on 10 clicks, and the > >new one will be starting from 1) > > > >5. If we're still cool, now try it without cookies maybe, by adding the SID > >to the URL that they click on. > > > > > >If all this works, then the problem is obviously in your code somewhere, not > >an issue with PHP/sessions/browsers/cookies/etc. > > > > > >Justin > > > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] really simple problem with GET
You form tag should be passing the get request to the php script. example: ... In test.php all should work now... -- Ray On Wed, 2003-03-12 at 11:04, Poon, Kelvin (Infomart) wrote: > Hi, > > I am sorry if the level of this question is too simple but I can't figure > out what's wrong. I want to pass a variable value through the URL using the > Get method. > > FOr example http://.../test.php?$test=0 > > and my test.php code are as follow: > > > > > if (!empty($_SERVER)) > extract($_SERVER); > > if (!empty($_GET)) { > extract($_GET); > } else if (!empty($HTTP_GET_VARS)) { > extract($HTTP_GET_VARS); > } > > if (!empty($_POST)) { > extract($_POST); > } else if (!empty($HTTP_POST_VARS)) { > extract($HTTP_POST_VARS); > } > > echo "hello $test"; > ?> > > > > > > > BUt my outcome is > > hello > > so therefore my $test variable isn't passing through, does anybody know what > I did wrong? > > Thanks > > Kelvin > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] authorization
The problem here is that most people work and do not have the time to "help" out. The best thing would to contract this portion out to the lowest bid. -- Ray On Wed, 2003-03-12 at 23:41, [EMAIL PROTECTED] wrote: > Hello, > > I'm wonding if someone can please assist me with the following addition I > would like to make to a music artists site using PHP. > > The site has a mailing list, guestbook, & videos - > when the user goes to access the guestbook and videos, I want to be able to > check if they're signed-up to the mailing list.. and if not, then they need > to join to view the content. > > I don't want a login area. > > When a user goes to sign the guestbook, they enter their name, email > address & post code, along with their guestbook message. When the message > is processed it also checks the mailing list to see if they're registed (& > adds them if they're not). > > Also, it would be neat to have a cookie stored on the users computer that > once they have verified themselves, if they access another feature that > wants their details first - the form is "austomatically" filled. > > Can someone please point me in the right direction with this - or if you > have done this before I would greatly appreciate you stepping me through > the process. > > This would be a great learning experience for - thank you for your interest > in helping me out. > > Thanks > Tim Burgan > > > mail2web - Check your email from the web at > http://mail2web.com/ . > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] install php
make sure you config line has the location of you mysql install.. example: /.configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.14 --enable-track-var -- Ray On Thu, 2003-03-13 at 00:14, sonjaya wrote: > dear milist > i want' instal php with mysql , itry > like this : > #./configure --with-mysql --with- > apache=../apache_1.3.14 --enable-track- > var > and get error message like this : > #ext/mysql/libmysql/my_tempnam.o: In > function `my_tempnam': > /usr/local/src/php- > 4.3.1/ext/mysql/libmysql/my_tempnam.c:1 > 03: the use of `tempnam' is dangerous, > better use `mkstemp' > collect2: ld returned 1 exit status > make: *** [sapi/cli/php] Error 1 > i have install mysq in : > /usr/local/msqyl . > any body can help me > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re user Identifying
Yes you can set up both in parallel...however, that is going to be tons of work for your system to manage. You can set up both that allows either sessions or cookies. -- Ray On Thu, 2003-03-13 at 01:55, Peter Goggin wrote: > My site uses shopping baskets to record what the user wants to but. These > records are stored in a database against the user. This requires the user > to register and log onto the site. Is it possible to avoid this by the use > of cookies or some other method? > > Is it possible to use both methods in parallel. so that the user can choose > either method. i.e. choose to register as a customer, or use the default id > (perhaps via the cookie) and enter customer information at the time of > placing the order? > > > Any advice on the best way of doing this would be greatly appreciated. > Regards > > Peter Goggin > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and MySQL Full Text Search Problem
Since you are using fulltext search it is going to look for the exact spelling of what you pass in. If you wanted to get matches with Chris then you will want to modify your query by using LIKE. In version 4.0.1 of mysql you can do fulltext search in boolean mode. http://www.mysql.com/doc/en/Fulltext_Search.html (bottom of page). -- Ray On Thu, 2003-03-13 at 23:39, Charles Kline wrote: > Hi all, > > My first try at MySQL Full Text Search and it is not behaving ;) > > Here is what I have for my query string: > > $sql = "SELECT id, concat(fname, ' ', lname, ' ', degree1) as name". > " FROM tbl_personnel WHERE MATCH (fname,lname) AGAINST ('" . > $attributes['searchstring'] . "')"; > > > This works pretty good. The only problem is it only works if there is > an exact match for either the first name (fname) or last name. For > example. In tbl_personnel there are 5 people with the first name > Christine. > > If I pass Chris to this query in $attributes['searchstring'] I get 0 > results. If I pass Christine I get all 5. > > What do I need to modify to make this work? > > Thanks, > Charles > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't relocate to a specified URL after submit.
Where is the js code in the mix. Try putting an exit; after the header function and see if that works. -- ray On Thu, 2003-03-13 at 23:02, [EMAIL PROTECTED] wrote: > The code looks like: > if( $actionflag == "delete" ) > { > //Delete Table ip_enrollment > $query="delete from ip_enrollment where id='$id'"; > $AMC_DB->query("$query") or die("database server wasn't available > now."); > > //Delete Table ip_evaluation > $query="delete from ip_evaluation where enrollmentID='$id'"; > $AMC_DB->query("$query") or die("database server wasn't available > now."); > > header( "ip-list.php?subMenuSelect=m1"); > } > > It works fine before, but it seems header() doesn't work after I added some > js code for preventing click submit twice. > > > > > > > > > > Thanks a lot, > Larry > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] setup connection to sybase
With the installation of sybase on the windows 2000 server (client installation) you will get an interfaces file that contains all the information for connecting to a sybase database. Make sure that you have the sybase client installed on the windows 2000 box that is running PHP. -- ray On Wed, 2003-03-12 at 23:55, P Lok wrote: > Cannot setup connection to remote Sybase db. > Using Apache 1.3.x + PHP 4.x on Windows 2000 server. > Remote Sybase db on Windows 2000 server. > > PHP manual says Servername in sybase_connect() defines in 'interfaces' file. > What are they? Where are they? > > rgds > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Validating XML strings
As of now i dont think that DOMXML functions support the validation of dtds or schemas...I have been looking for the past couple of days and did not find anything... I have not verified the xml extension for it but i doubt that that option is there either... -- BigDog On Tue, 2003-07-01 at 14:00, Moore, Christie wrote: > I am parsing an xml string using the DOM package in php. Is there > anyway to validate the xml string against a schema or a dtd with DOM. I > know it is still experimental but I didn't know if something like that > existed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Minimizing Database Hits
Only if your code is calling the database...if $cart_contents is set on the page and you call the var $car_contents over and over then no...the initialization of the var is the only time if it is called in get_cart_contents()... -- BigDog On Tue, 2003-07-01 at 16:41, Ralph wrote: > I wrote class that contains a function that retrieves users shopping > cart items from database and then returns an array with qty, item number > , item name, etc. > > So now whenever I want to retrieve the users cart I use the following: > > $cart_contents = $cart->get_cart_contents(); > > I then iterate through $cart_contents to display info. Now I am trying > to minimize the number of hits to the database so my question is, am I > querying the database every time I call on $cart_contents? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] outputting xml declaration
you can always print like so... print ''; Then the parser does not try to parse inside the line. However, I dont know what will happen when you have short_open_tags in your php.ini file turned on...i usually turn it all of.. -- BigDog On Wed, 2003-07-02 at 07:33, Steven Apostolou wrote: > Hello, > > The folowing code gives an error: > > print ""; > > This is probably because I print a questionmark? How can I avoid that an > error is generated? > > Besides it's not an error in the way that it gives an errorstring but it > writes the output in the error_log of apache... > > Greetings, > > -- > Steven Apostolou <[EMAIL PROTECTED]> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Java Applet to PHP Communication
you want to use either dom or saxon to parse the xml within java. So your applet can call some class that loads, parses and then does something with the xml. Usually you want to use a sax parser for the speed, however you can use a dom parser to manipulate the dom tree... -- BigDog On Wed, 2003-07-02 at 05:02, Sharat Hegde wrote: > Thanks Justin, > > Do you have any leads on where I can get info on accessing XML data using > SOAP from a Java Applet. I know how to parse XML data. > > Regards, > Sharat Hegde > Phone: 6575800 Ext 4610 > Direct: 6566615 > > > -Original Message- > From: justin gruenberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2003 1:27 PM > To: Sharat Hegde > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Java Applet to PHP Communication > > > Sharat Hegde wrote: > > >Hello, > > > >I need to be able to communicate from a Java Applet to a PHP program on the > >server to enable "Live Connect" for data. This is what I intend to do: > > > >In my web application, a Java Script program will call a Java Applet which > >then calls the PHP program on the server. The PHP program works like a > >"servlet" and passes the result back to the Java applet which passes the > >information back to the JavaScript program. > > > >How can a Java applet work with a PHP program? Are there any special > >precautions / programming issues involved? > > > >Thanks in advance > > > >With Regards, > >Sharat > > > Not anything that you wouldn't have to pay attention to in passing stuff > between applications in other instances. > > I'd use XML/SOAP to pass around the data. There are many reasons to do > this, I wont list them here just because there are plenty of articles on > the web advocating the use of XML. The added bonus is the buzzword factor. > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > * > Disclaimer: The information in this e-mail and any attachments is > confidential / privileged. It is intended solely for the addressee or > addressees. If you are not the addressee indicated in this message, you may > not copy or deliver this message to anyone. In such case, you should destroy > this message and kindly notify the sender by reply email. Please advise > immediately if you or your employer does not consent to Internet email for > messages of this kind. > * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] states
On Tue, 2003-07-01 at 16:55, Matt Palermo wrote: > Does anyone know of any built in functions or options for the US states? Nope no built in function for this... > I want to make a drop down menu and some other things which have the 50 > states in it. Is there any shortcut for this with PHP, or do I need to > do it all manually in HTML? Please let me know. Thanks. You can create your own function to build this for you. I have always put the 50 states in a database and used that for all my html and output requirements. You can google state abbreviations and use that in a database or file. -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Connect Active Directory using LDAP... please help :)
The big issue that you will face will be with getting the dn correct for it to work.. I have connected to ldap exchange to do authentication and pull user data and it was a real hassle to get the dn correct.. -- BigDog On Tue, 2003-07-01 at 15:41, Vince C wrote: > Hi everyone, > > I tried to connect to Active Directory (AD) by using php. I heard that it > could use LDAP to achieve it. I have written some code on my machine > (Win2000) and try to connect to AD. It looks like the it could connect, > bind, and even search (I determined base on the line I placed). However, it > return 0 entries. If I used the same filter and use utilites "lpd.exe" on > Windows 2000 Server (the AD machine). I could return some entries. I am > hestitating whether do I made some mistake on my program, or something other > than my code. Does anyone know what the problem is? Any comment are > welcome! Thanks! > > Vince > > P.S. Here is my code: > > > > > Brand New Checking.. > > > > > AD Test > > > $ldaphost= "company.com"; > > if(!($ldap = ldap_connect($ldaphost,389))){ > die("ldap server cannot be reached"); > } else { > $oudc = " dc=company, dc=com"; > $dn2 = ""; > $password = ""; > echo "Connected and ready to bind..."; > if (!($res = @ldap_bind($ldap, $dn2, $password))) { > print(ldap_error($ldap) . ""); > die ("Could not bind the $dn2"); > echo "Couldn't bind "; > } else { > echo "Binded and Ready to search"; > echo "LDAP = $ldap"; > echo "oudc = $oudc"; > > // $filter="(&(objectClass=user)(objectCategory=person)(|(sn=sorg)))"; > $filter= "sn=*"; > $sr=ldap_search($ldap,$oudc,$filter); > echo "number of entries found: " . ldap_count_entries($ldap, $sr) . > ""; > echo "filter = $filter"; > echo "sr=$sr"; > > if (!$sr) { >die("search failed\n"); > } else { >echo " Searched and ready for get entries."; >$info= ldap_get_entries($ldap, $sr); > >for ($i=0; $i<$info["count"]; $i++) { > print (""); > print ("" . $info[$i]["cn"][0] . " " . $info[$i]["sn"][0] > . ""); > print ("" . $info[$i]["mail"][0] . ""); > print (""); > print "In the display FOR loop"; >} >echo " After loop."; > } > } > ldap_unbind($ldap); > echo "LDAP unbinded"; > } > > ?> > > > > > > Thanks in advance! Vince > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP user group
there use to be phpusergroups.org but not sure if that is still going on... i know of 2 for utah and colorado... 1. Colorado = http://coloradophp.org 2. Utah = http://phpslc.com Perhaps others will add to the list. -- BigDog On Wed, 2003-07-02 at 12:06, erythros wrote: > there are php user groups > > hmmm... there should a listing for that. > someone should start a list... > > i wish there was one near me... > > "Erich Kolb" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Does anyone know of a PHP user group near Gurnee, IL. I found one in > > Chicago, but its a little far to go and they meet in the middle of the day > > on Sat. > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending a PDF page
Try using the a shutdown function: http://us2.php.net/manual/en/function.register-shutdown-function.php and put all your logic that needs to run after the exit function. -- BigDog On Thu, 2003-07-03 at 13:18, Todd Cary wrote: > [Sent this the first time to the wrong list] > > In this code: > > if ($prtpdf) { > include "letter_new.php"; > exit; > } > > I create a PDF page, however I would like to continue within the > script (not have the exit). If I do that, the PDF page is corrupted > by the script code. > > What is the best solution for this? > > Todd > > -- > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP+MySQL on Apache running on WinXP
If i am not mistaken your phpinfo is picking up the bundled mysql package that comes with php. You should still be able to connect to mysql. However, if you downloaded the zip file instead of the installer then you should have a php_mysql.dll file that you can put in your path that php should pick up that might be different. I am not 100% up-to-date on the dlls that are available in the php zip file. -- BigDog On Mon, 2003-07-07 at 15:07, Vince wrote: > I have set up a new development machine on my windows xp using APACHE > version 2.0.46. Next, I set up PHP version 4.3.2 and MySQL version > 4.0.13. > Then, when I tested the installation, phpinfo() lists my CLIENT API > VERSION for MYSQL as 3.23.49. > > 1. Is this normal? > 2. If not, what have I done wrong? and > 3. How do I fix it so that the correct version numbers appear? > > Thanks in advance > > > == > Vincent P. Vicente > Manila, Philippines > > > > > > > - > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to PHP
here is what you can do: 1. buy a php book and go throw the basics. 2. read the php manual because it has tons of information. 3. write any type of program that you can to get familiar w/ language. 4. get a fundamental understanding of programming, object oriented programming Just my $0.02 for ya -- BigDog On Mon, 2003-07-07 at 15:27, Hiren Mehta wrote: > Hi I am new to PHP and would like to learn more about it. Which would be the best > place to start with besides the manual and what would you suggest is a pre-requiste > for learning PHP. > > Thanks > > Regards, > > Hiren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I am receiving the same posting TWICE
Submit code that we can review. there is not enough info here for you to recieve a complete response to your question. -- BigDog On Mon, 2003-07-07 at 15:11, Noah Solodky wrote: > Help! > I am receiving the same posting TWICE > how do I configure things to just get one copy of postings?? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New to PHP
If you are on developing on linux then that would be good. however, i strongly encourage gaining knowledge of programming concepts if that is what you are doing with php. Having a solid foundation of programming concepts will help you in php and any other language. -- BigDog On Mon, 2003-07-07 at 15:49, Hiren Mehta wrote: > Do you suggests any pre-requisites before starting off with the books? > Someone told me it would be much better if I learn Linux first > Hiren > > - Original Message - > From: "Kevin Stone" <[EMAIL PROTECTED]> > To: "Hiren Mehta" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> > Sent: Tuesday, July 08, 2003 3:18 AM > Subject: Re: [PHP] New to PHP > > > > There are many great books to help get you started. Infact.. believe it > or > > not.. for the complete newbie "PHP for Dummies" is a great chioce. It's > > very well written and starts with no assumptions about your skill level. > > > > But if you do happen to have some programming experience try "PHP and > MySQL > > Web Development" (do a search on Amazon). That's the book that helped me > > out the most. It has some great real-world examples with complete > > walk-through tutorials. > > > > Don't bother purchasing a function reference becuase the php.net reference > > is the best there is. And it's free. :) > > > > HTH, > > Kevin > > > > > > - Original Message - > > From: "Hiren Mehta" <[EMAIL PROTECTED]> > > To: "PHP" <[EMAIL PROTECTED]> > > Sent: Monday, July 07, 2003 3:27 PM > > Subject: [PHP] New to PHP > > > > > > Hi I am new to PHP and would like to learn more about it. Which would be > the > > best place to start with besides the manual and what would you suggest is > a > > pre-requiste for learning PHP. > > > > Thanks > > > > Regards, > > > > Hiren > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML
XML is a way to store data in a structure format that is correct and is platform independent; meaning u can share data with anything that understands xml format. For web applications xml allows you to send data to the client and have the browser do the parsing for you. (I would suggest ie5.5 and ns6.0 browsers if you are doing client-side parsing). If you are doing server-side php parsing then i would suggest using domxml+domxslt or using xslt (sablotron). Then you can parse the xml doc, get xhtml(html) and send that to the user. The benefits are seperation of logic and presentation in your php. All presentation code should be in your xslt style sheets and all logic should create a data document (xml). This allow you to change the presentation with out changing logic. -- BigDog On Tue, 2003-07-08 at 04:26, Petre Agenbag wrote: > Hi List > > Firstly, this question is arguable more about XML than PHP, but they are > interlinked, so I hope it is "topical" for this list. > > Firstly, Where I come from: > > I am VERY comfortable with PHP/MySQL on Linux and understand all those > concepts. > > Now I'm trying to see the benefits of XML, and quite frankly, I just > cannot see why one would want to use it... > > Anyway, I don't want to start a discussion on that from. > > I have done extensive reading on XML/XSL(XSLT : XHTML), DTD and XML > parsing on browser and server side. > > I arguable still don't have a 100% understanding of exactly how things > fit together, but the little bit I think I got so far is: > > I would use an XML doc to package my data in a structure. > This XML file is "useless" on it's own, and good for transporting data > to another app or client. > Should I need to do something with the data, I would look at XSL and in > particular XSLT in order to convert the XML into XHTML so a browser can > display the data ( so we can safely assume that I am only interested in > the web applications of XML) > > This is where I'm starting to get a headache, because now it seems that > there are browser issues wrt XSL, and one also have the added choice of > parsing the XML with the browser or on server level. > > For me, parsing it on browser level must be a no-no, as I would assume > that it's would take alot of effort to find out what type of browser the > client has, then load the appropriate XSL file for that browser. > > So, I'm here, with the server side XML parsing in mind. > > Now on M$ systems, it seems that IIS has built in ActiveX XMLDOM parsing > built in, and you can "easily" parse the XML document by using ASP etc. > > So can I assume that this is also true with PHP/Apache, ie, Apache has a > built in XML parser and I can use PHP fnuctions to parse my XML file on > the server side and thus "pump" out XHTML that is compatible with all > past and future browsers? > > Also, what is the procedure that most of you (members of the PHP lists) > follow when dealing with XML. ie, do you go for the client side parsing > or do you do server side parsing. And how do you decide when to use XML > and when to stick to trusty old PHP/MySQL? ( Sorry, know this is > probably the dumbest question I can ask, but I really battle to see when > to use it, or rather WHY I should use it seeing that the data is > arguably "static" in nature ( I would either get the XML file from > somewhere else, or I would generate it from some source and pass it on, > effectively creating a little data island/snapshot of the actual data at > a point in time?) > > Thanks for any input. > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XML
I see that not many sites require the use of xml/xsl(t). Many sites can just use html and database to accomplish 99.9% of the work. I always suggest that when you have tons of data that you need to send to the user that it is a good idea. Especially now that xslt is growing up :) I like to use xml and xsl for various reasons, mainly i can really separate the logic and presentation. All data is keep in the xml file and presentation in the xsl file. So when i need to make changes in the presentation then i only change the xsl file and never really have to touch the logic (php) code. This is really, really great for some sights that are extremely complex. Also in php i can create standards that my xml files will follow (dtds, schema) and allowing me to create modules (functionality) very efficiently and timely. Also as mentioned xml provides a format for transfering data. However, i would not use it with databases unless it is large amounts of data. However, i have used xml for creating sql queries and setting up configureation files which are extremely reliabe. -- BigDog On Tue, 2003-07-08 at 15:51, Jeff Harris wrote: > |-Original Message- > |From: Petre Agenbag [mailto:[EMAIL PROTECTED] > |Sent: Tuesday, July 08, 2003 6:27 AM > |To: [EMAIL PROTECTED] > |Subject: [PHP] XML > | > | > |Hi List > | > |Firstly, this question is arguable more about XML than PHP, but they are > |interlinked, so I hope it is "topical" for this list. > | > |Firstly, Where I come from: > | > |I am VERY comfortable with PHP/MySQL on Linux and understand all those > |concepts. > | > |Now I'm trying to see the benefits of XML, and quite frankly, I just > |cannot see why one would want to use it... > | > [snip] > > On Jul 8, 2003, "Joe Harman" claimed that: > > |Okay Petre... You have asked the question that I always wanted to ask!!! > |I can't wait to see peoples answer... I simply can't find a use for it > |either > | > |Joe > > This probably should be on another list, but it might give someone an idea > on how to create something in PHP. I've been trying to figure out if some > of what I'm doing would be good for XML. The answer for that is "no, use a > database." > > It seems to me, that XML is a way of encoding data for the transmission > between two processors. For example, the database uses XML to transfer > data to the PHP engine. The weather magnet uses XML to transmit > information to your PHP script, which parses it and produces the HTML > output. My page asks your script for some information, and it's returned > as well-formed XML. > > As far as using an XML file to act as a database and your parser to create > the HTML, it's probably better to use a database. > > Jeff > (my $.015 [after taxes] ) > -- > Registered Linux user #304026. > "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" > Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED > Responses to this message should conform to RFC 1855. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] accesing php script in a different port
Try using sockets in php to set up the port and listen there... -- BigDog On Wed, 2003-07-09 at 00:22, Michael P. Carel wrote: > hi to all, > > I want to develop a system that can be access in a different port of the web > (such as in Port 11000). But i dont know how to do this without affecting > existing apache or other webserver installation. My idea is based on some > utilities that exists such as the Webmin Utilities that are commonly used > to administer Unix/Linux. > > Can anyone give a hint or good tutorial links for this problem? > > Thanks in advance. > > > > Mike > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using PHP with windows logon
On Wed, 2003-07-09 at 03:32, Brenton Dobell wrote: > can you use your windows logon as set it as a variable in php? U should probably look at how activex does it. I know that asp scripts do it all the time and possibly some com objects can set that for you. I have connected to exchange and used the username login (they type in) to authenticate against. -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XML
U should read the docs on domxml. There is alot of examples in there on how to do that and xslt. Here are tons of tutorials to on phpbuilder.com, phpbeginner.com. -- BigDog On Wed, 2003-07-09 at 06:02, Petre Agenbag wrote: > Hi List > > Firstly, thanks for the replies and mostly for the accommodating > attitude to this, arguable non-PHP subject. > > I don't want this thread to become a flame war on why one should use > XML, or why not. > I do have personal issues wrt XML and the way it works, and although I > cannot *yet* see the need, it doesn't mean that there isn't one. > > My original post should have made this clear, but it seems it didn't. > > I have laid to rest my reservations wrt XML, and am more interested in > understanding the entire process in the hope that 1) I will "see" the > need, and 2) understand how all those XML jargon fits together ( XML, > XSL, XSLT, DTD, DOMXML, phew...) > > That was why I gave a brief summary of where I am atm wrt understanding > what it is. > > What I still don't know much about, and at last, this is where the PHP > comes in, is once I have this XML file, whereto from here using PHP ( > you see, it should be clear that I want to use PHP as my "one and only" > trusty tool. > > As I stated, and correct me, the XML file contains the structured data, > and the XSL file contains the "look and feel" and the XSL file is > written in XSLT language. > > My understanding is further that, again focused only on web applications > here, one would have an XML file in your web folder, along with it's XSL > file. These files would be "linked" by means of calls or references to > each other inside the files. > > Having these two files (oh, and the dtd which can be used to verify the > XML, but doesn't seem necessary from what I can see), as I understand > it, gives the basis from where one would then parse the XML into XHTML > in order to actually "see" anything in a browser via one of two routes: > 1) client side via the browser's built in XML parser -> arguably leaving > the old Netscape/IE gap wrt compatibility, or 2) server side parsing > with the built-in XML parser that comes with the webserver (IIS or > Apache in my case) -> with this approach being in my mind the "best" if > you want to make sure you don't run into browser issues. > > This is where my PHP question really starts: > On apache.org they talk about the XML support of apache etc, and in the > PHP documentation there are lots of XML functions and yet more jargon > like DOMXML etc, which is not clear for me what to do now (should I > elect to parse server side). > > If someone can just give me a quick and easy "tour" on what to do and > what is needed from here to actually parse and display the contents > correctly, I should have enough to keep me busy for a while, and > hopefully help me to increase my knowledge and understanding so I won't > ask stupid questions on this list ;) > > > Thanks again for the input. > > > > > On Wed, 2003-07-09 at 00:36, Ray Hunter wrote: > > I see that not many sites require the use of xml/xsl(t). Many sites can > > just use html and database to accomplish 99.9% of the work. > > > > I always suggest that when you have tons of data that you need to send > > to the user that it is a good idea. Especially now that xslt is growing > > up :) > > > > I like to use xml and xsl for various reasons, mainly i can really > > separate the logic and presentation. All data is keep in the xml file > > and presentation in the xsl file. So when i need to make changes in the > > presentation then i only change the xsl file and never really have to > > touch the logic (php) code. This is really, really great for some sights > > that are extremely complex. > > > > Also in php i can create standards that my xml files will follow (dtds, > > schema) and allowing me to create modules (functionality) very > > efficiently and timely. > > > > Also as mentioned xml provides a format for transfering data. However, i > > would not use it with databases unless it is large amounts of data. > > However, i have used xml for creating sql queries and setting up > > configureation files which are extremely reliabe. > > > > -- > > BigDog > > > > > > > > On Tue, 2003-07-08 at 15:51, Jeff Harris wrote: > > > |-Original Message- > > > |From: Petre Agenbag [mailto:[EMAIL PROTECTED] > > > |Sent: Tuesday, July 08, 2003 6:27 AM > > > |To: [EMAIL PROTECTED] > > >
Re: [PHP] Where do I post loadable extensions questions?(semi-multi-part)
There is the internals mailing list that is for the developers of php, they can answer most questions about the internal workings of php. I would suggest reviewing the code in cvs to see how they are doing the c programming for modules. I figure that if you review those extensions then u should get a better grasp on how it all comes together. -- bigdog On Wed, 2003-07-09 at 11:10, Kris Yates wrote: > Hi, > > Is there a better list for posting question about creating loadable > extensions (.so) for PHP? Or is this [php-general] the best place to post? > > Also, I saw a post on another PHP related site that said this was not C, > but some kind of C macro language? - - but you can use real C code? > Confusing... Can someone define more clearly what I am actually writing? > > I have successfully recreated the demo extension found in the manual, > and have created/compiled > some other basic "modules" with only minor problems/guesswork involved. > At this point, I am limited by lack of documentation in the PHP manual, > and my lack of knowledge of C. I am picking it up [C] rather quickly > due to just not being a novice at programming (ie. PHPing since early > '98). I have found no other source code examples of modules except the > one in the manual. Does anyone have any links or samples? > > Thanks, > > Kristophari > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] nested for loops
Also u can do nested foreach loops too... Example: while( $row = mysql_fetch_array( $result ) ) { $rows[] = $row; } foreach( $rows as $row ) { foreach( $row as $i => $value ) { // do stuff here echo "$i = $value\n"; } } I do this tons... -- bigdog On Wed, 2003-07-09 at 11:56, Micah Montoy wrote: > Anyone ever do a nested for loop? > > $i =0; > $j =0; > for ($x=0; $x < 50; $x++){ > echo ("1 to 50"); > > for ($j=0: $j < 5; $j++) { > echo ("less than 5"); > } > } > > I haven't seen a nested loop in PHP, so I'm not sure of the exact syntax. > > thanks > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] passing commands via ssh
Hello all, I am trying to execute a command on another server from my web application. I need to execute the command via ssh for security reasons. I have a private key/passphrase installed for ssh so that I can run ssh without a password. The command: ssh -i vertex [EMAIL PROTECTED] TX 77041 COD 1.00 Works from my box's command line. The vertex 'key' for ssh is also in the same directory. But when I run system(ssh -i vertex [EMAIL PROTECTED] TX 77041 COD 1.00) from my script I get an error: Host key verification failed. Also, when including the return status var I get different values such as: 255 or 127 or 1But I do not know what these mean. This may not be a php issue but a webserver issue - sorry but I have no ideas at this point. Do I need to look in to some other functions to facilitate this? I did try passthru() and exec() with similar results. Any help is as always greatly appreciated. Thx Mignon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] passing commands via ssh
Thank you - I did change the ownership and group to webserver owner (apache)for both the key file and the directory it's in and the script itself. But unfortunately still the same error. I moved the vertex (key file) to key directory under my scripts directory and am pointing to it from the script. All 3 are apache apache. :( Do you know what status code 255 means when I run $b = "ssh -i key/vertex [EMAIL PROTECTED] TX 77041 COD 1.00"; system($b, $g); echo $g; Thank you for the invaluable usr/bin/id script. I had seen that path mentioned in posts... On Wed, 2003-07-09 at 15:49, Jeff Harris wrote: > On Jul 9, 2003, "Mignon Hunter" claimed that: > > |Hello all, > | > |I am trying to execute a command on another server from my web > |application. > | > |I need to execute the command via ssh for security reasons. I have a > |private key/passphrase installed for ssh so that I can run ssh without a > |password. > | > |The command: > | > |ssh -i vertex [EMAIL PROTECTED] TX 77041 COD 1.00 > | > |Works from my box's command line. The vertex 'key' for ssh is also in > |the same directory. > | > |But when I run > |system(ssh -i vertex [EMAIL PROTECTED] TX 77041 COD 1.00) > |from my script I get an error: > | > |Host key verification failed. > | > [snip] > |Any help is as always greatly appreciated. > | > |Thx > |Mignon > > Do you have the private key/passphrase installed as a regular user or the > httpd user of the local machine on the remote machine? > > PHP will run the scripts as the httpd user, not as the user who owns the > script. > > $line = exec("/usr/bin/id"); > print ("PHP runs as $line\n\n"); > ?> > > Jeff > > -- > Registered Linux user #304026. > "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" > Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED > Responses to this message should conform to RFC 1855. > -- Mignon Hunter Web Master and Developer Toshiba International 713.466.0277 x 3461 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php - javascript together prob?
U need to quote it with double quotes and escape them with like so: \" that should work for you. If not then you will need to start separating the string out and joining it with the "." . -- BigDog On Wed, 2003-07-09 at 15:51, Micah Montoy wrote: > Anyone have an idea of how to get this to work? Its the onClick part that > wont work. I know if I pull it out of PHP it works just fine but I need it > part of the script as I have a loop that it runs under. > > echo (""); > > I considered and tried sending it to a js function but it doesn't like not > having the " but I need the quotes in the echo statement to read in the > variables passed to it. > > thanks > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Code and Good Design Methods
Also u could build your own system that is php xml and xslt based. That will really help you separate the logic from the presentation. Check out (dom)xml and (dom)xslt. Sometimes there is still logic in the presentation with template systemswith xslt however, it might be to much for the design (interface) guys. Those should help u out. -- BigDog On Sat, 2003-07-12 at 20:08, Dan J. Rychlik wrote: > I am reading PHP and MySQL web development 2nd edition book. Chapter 6 talks about > displaying dynamic web content using class objects. For the type of project that I > am building, this is not optimal. How do I keep my self from having html mixed with > my PHP code? In other words how do I serperate the two. I need to concentrate on > writing good code and not designing a nice looking website. (someone else is going > to do that) > > Can I assign include() statements to a variable ? How would you guys accomplish > this? > > Thanks so much in advance, > Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Code and Good Design Methods
True xsl(t) is a language in and of itself along with xpath, xpointer, and a host of others. However, it is safe to point out that this is another alternative that can be reviewed. It possibly may be the hardest to incorporate; however, it needs to be mentioned as well. -- BigDog On Sun, 2003-07-13 at 01:20, Robert Cummings wrote: > Let's be honest, XSL is is one big logic step itself -- moreover it's a > whole other language to learn. > > Cheers, > Rob. > > On Sun, 2003-07-13 at 02:07, Ray Hunter wrote: > > Also u could build your own system that is php xml and xslt based. That > > will really help you separate the logic from the presentation. > > > > Check out (dom)xml and (dom)xslt. Sometimes there is still logic in the > > presentation with template systemswith xslt however, it might be to > > much for the design (interface) guys. > > > > Those should help u out. > > > > -- > > BigDog > > > > > > On Sat, 2003-07-12 at 20:08, Dan J. Rychlik wrote: > > > I am reading PHP and MySQL web development 2nd edition book. Chapter 6 talks > > > about displaying dynamic web content using class objects. For the type of > > > project that I am building, this is not optimal. How do I keep my self from > > > having html mixed with my PHP code? In other words how do I serperate the two. > > > I need to concentrate on writing good code and not designing a nice looking > > > website. (someone else is going to do that) > > > > > > Can I assign include() statements to a variable ? How would you guys accomplish > > > this? > > > > > > Thanks so much in advance, > > > Daniel > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How does PHP interact when using Java?
Not to sure how they work together in a php environment, however another alternative it so use php in a java (servlet,j2ee) environment. It is harder to set up, however, there are not as many errors. Sometimes there is a performance increase. -- BigDog On Sun, 2003-07-13 at 01:50, Jan Bro wrote: > Hi, > I've just got PHP working with Java. It connects to a remote Oracle DB > with Java and without the Oracle Client installed on my machine, > it's sure a beauty. What I was wondering, what's behind it, I mean how > does it work? I transfer Objects in Java and get data out. How do PHP > and Java interact, after all they are two different technologies. > > I've searched google and pretty much every site I could think off, but > I've found nothing more than a setup tutorial. > > By the way, I should mention if you have them interact, Apache + PHP > doesn't like java packages at all. PHP blows off with a severe error > message. > > thx > Jan Bro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can PHP Build XML Pages?
There are 2 ways that i make xml files with php. 1. Use domxml to make the docs. (RTM this is somewhat complex.) 2. Just create it similar to html but use xml tags. The second way is really easy. 1. Make sure to send header content type as text/xml. header( "Content-Type: text/xml" ); 2. Just wrap you data with tags. Example: '; $xmlpage .= ''; foreach( $formdata => $index as $value ) { // $formdata is an associative array // meaning that $index is a name rather than // a array index number. $xmlpage .= '<'.$index.'>'.$value.''; } $xmlpage .= ''; echo $xmlpage; ?> This is a very simple example...but should get you up and running. -- BigDog On Mon, 2003-07-14 at 10:49, Jeffrey Fitzgerald wrote: > Looking for direction PHP and XML. I have a need to build a simple XML > doc from a PHP set of form vars. Any tips or examples are greatly appreciated. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php.ini directives question
Does anyone know if the local values for the php.ini directives have presidence over the master value? -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How To Ask Questions - Some List Guidelines
I would like to also say that if one follows some sort of guideline that person is likely to recieve more help (responses). I know that if there are subjects that are vague and emails that contain little information, i tend to delete them. Whereas, if someone takes the time to address the issue, gives supporting information, I am more opt to do the same in my response. -- bigdog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with 4.3.2 built as DSO
Here is how i trouble shoot it: 1. make sure that there is a libphp4.so file in libexec. 2. make sure that you have these lines in httpd.conf: LoadModule php4_module libexec/libphp4.so AddType application/x-httpd-php .php 3. restart apache That should work for you. Also make sure that when you configured php that you supplied the correct path to apxs? Sometimes i mess this up and give it a path to an older apache version. -- BigDog On Mon, 2003-07-14 at 15:38, Patrick Hutchinson wrote: > Hi, > > I recently upgraded from 4.2.2 to 4.3.2 built as a DSO for apache > 1.3.26. Now, documents are not being executed. I am just getting the > source listed back. I have the propper AddModule/LoadModule stuff in my > conf as well as the propper AddType for php documents. When I tried to > revert back to 4.2.2 the same thing happens now. > > Using my same config files with php built statically into apache 1.3.26 > (with the add/load module stuff removed of course) it works fine. > > Any pointers on the next thing to look at would be greatly appreciated. > > > -- > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ > Patrick Hutchinson [EMAIL PROTECTED] > Engineering Web Systems Administrator 408.527.0305 direct > Cisco Systems, Inc. 408.527.2313 fax > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with 4.3.2 built as DSO
Try this: Stop apache first. 1. Delete the libphp4.so file from libexec in apache dir. 2. make clean in php src dir. 3. rm config.cache 4. ./config.nice (gives you all the stuff that u configured) 5. make & make install 6. verify httpd.conf 7. start apache up and verify. -- bigdog On Mon, 2003-07-14 at 15:52, Patrick Hutchinson wrote: > Yeah, I have all that in the conf file. I've rebuilt it twice and made > sure it was pointing to the propper apxs and everything. Even did a make > clean to be sure. Still doesn't work. I've checked everything I can > think of. > > -Patrick > > > Ray Hunter wrote: > > Here is how i trouble shoot it: > > > > 1. make sure that there is a libphp4.so file in libexec. > > 2. make sure that you have these lines in httpd.conf: > > > > LoadModule php4_module libexec/libphp4.so > > AddType application/x-httpd-php .php > > > > 3. restart apache > > > > That should work for you. Also make sure that when you configured php > > that you supplied the correct path to apxs? Sometimes i mess this up and > > give it a path to an older apache version. > > > > > > -- > > BigDog > > > > On Mon, 2003-07-14 at 15:38, Patrick Hutchinson wrote: > > > >>Hi, > >> > >>I recently upgraded from 4.2.2 to 4.3.2 built as a DSO for apache > >>1.3.26. Now, documents are not being executed. I am just getting the > >>source listed back. I have the propper AddModule/LoadModule stuff in my > >>conf as well as the propper AddType for php documents. When I tried to > >>revert back to 4.2.2 the same thing happens now. > >> > >>Using my same config files with php built statically into apache 1.3.26 > >>(with the add/load module stuff removed of course) it works fine. > >> > >>Any pointers on the next thing to look at would be greatly appreciated. > >> > >> > >>-- > >>/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ > >>Patrick Hutchinson [EMAIL PROTECTED] > >>Engineering Web Systems Administrator 408.527.0305 direct > >>Cisco Systems, Inc. 408.527.2313 fax > >> > > > > > > > > > -- > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ > Patrick Hutchinson [EMAIL PROTECTED] > Engineering Web Systems Administrator 408.527.0305 direct > Cisco Systems, Inc. 408.527.2313 fax > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP & Perl information sharing
u could set up a perl script to read cookies and vice versa with php. That should not be a problem you could also create a form with php variables and post it to a perl script. u you also create a link to a perl script that passes varibles via the url. Very easy to do just a matter of how you want to do it.. -- BigDog On Mon, 2003-07-14 at 18:30, Jeff Harris wrote: > I'm working on a site which is mostly in PHP. However, I have to use perl > for a couple of scripts. Does anyone have any experience in sharing > session information between PHP and perl? > > I'm writing for a client who I will know has cookies enabled, and I have a > mySQL database, so I'm looking for what people think will generate easier > code to maintain and expand. > > Jeff Harris > -- > Registered Linux user #304026. > "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" > Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED > Responses to this message should conform to RFC 1855. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php4_module is already loaded
Most likely your php is a core module that does not require the load module in your httpd.conf file... you can verify if it is core (static not DSO) with httpd -l -- BigDog On Mon, 2003-07-14 at 21:01, CDitty wrote: > I just updated my 4.2.x to 4.3.2 and when I restart the apache, I get the > error [warn] module php4_module is already loaded, skipping. > > Can anyone offer any suggestions? I searched the archives, but didn't see > anything that would help. Apache/PHP seem to be running ok, but I would > like to get rid of the error. > > Thanks > > Chris > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] console script html tags?
Turn the html errors off in your php.ini file or write a function that handles all your errors for you and u dont echo out html tags. http://us3.php.net/manual/en/function.set-error-handler.php -- BigDog On Mon, 2003-07-14 at 21:32, Curt Zirzow wrote: > Larry Brown <[EMAIL PROTECTED]> wrote: > > How can I rid myself of the html tags around error messages when writing > > console scripts? (Besides avoiding errors) > > You can set up another system or user php.ini for the php binary to read > then pass the location of the php.ini to the php binary: > php -c /path/to/other/php.ini inputfile.php > > > > > > Larry S. Brown > > Dimension Networks, Inc. > > (727) 723-8388 > > > > > > HTH > > Curt > -- > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Older Version problems
Have you checked that the files are indeed getting to the directory that is specified by the upload_dir setting in php.ini? Also check your tmp dirs to see if they are getting there too. If they are not getting to the tmp dir then there are some issues. -- BigDog On Mon, 2003-07-14 at 21:19, [EMAIL PROTECTED] wrote: > I'm moving some scripts to a new server but the PHP installation on the > new server is actually older than the version I currently have installed > on the production server. I'm moving from 4.2.3 to 4.1.2. > > In my file upload scripts I can't seem to get any $_FILES values out of > my upload. The scripts don't error out and the file appears to transfer. > I've enabled E_ALL and logging. Uploads are on and max upload size is > sufficient. When I check $_FILES['filename']['tmp_name'] or ['size'] or > ['name'] or ['type'] they are all empty. > > Did I miss something in the ini file somewhere? I'd really hate to > upgrade at this time as this came from a Red Hat 7.3 install and I'd hate > to lose all the functions that are already pre-compiled into it (gd, > mysql, etc) > > Thanks, > > Ed > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Code and Good Design Methods
Actually, MVC works really well with XML technologies, however, there needs alot of work in php's core to fully utilize the benefits of an mvc paradigm. -- BigDog On Wed, 2003-07-16 at 04:12, Joel Rees wrote: > > Hi Joel, > > > > Thanks for nice comments on the XML, XSL. > > > > I want to know more about it. can you please send me > > some article, links and tutorials? > > > > Thanks > > > > Hardik > > The ultimate source for xml related technologies is the World > Wide Web Consortium at > > http://www.w3.org > > Most of the pages there are legalese, and really deep swimming. I think > they do have some introductory materials, however. > > Model/View/Controller materials are most likely to be found in relation > to SmallTalk, Objective C, and Java, since the concepts were originally > worked out in those arenas. MVC and XML don't mix well, but the MVC > concept is good to keep in mind if you want to use XML well. > > Other than that, there is plenty of material on the web. I know weeding > out the bad stuff is not easy, but many of the pages that got me started > have moved, I know not where. > > -- > Joel Rees, programmer, Kansai Systems Group > Altech Corporation (Alpsgiken), Osaka, Japan > http://www.alpsgiken.co.jp > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XML
> 1. How efficient is to use XML+XSLT solution? Does it > add processing overhead to the system? The efficientcy is relative to many factors, however I can stress this. The style sheets can be cached client side and then only xml data can be sent to the user. This reduces bandwidth and allows the transformation to be done on the client side instead of server side. Also not that xml + xslt transformations can be done server side. I usually do browser checks to determine if the browser is capable of handling xml+xslt transformations: if so then i send the files. Now if the browser is old or has issues (i.e. Internet explorer 5.5) then i can do the transformation server side and send html. Also note that you can set up a caching system at this point. If the transformation is done server side then yes you have that over head. However, if you are only serving up xml files and xslt files (part of the time on xslt) then u are reducing server load. > 2. Do you have some examples which can describe the > separation of layers using the XML+XSLT technology? Here are some sites that can get you started: 1. w3c.org 2. w3schools.com 3. xml.com > 3. Currently i am storing the data in the mysql > database. so first i need to create the xml file on > fly and then i need to integrate this xml file with > the xsl style sheet. Please corret if i am wrong > anywhere yes that is correct...u can set up a system that creates xml files on the fly and then assigns an associated xsl(t) file for it. Basically, we are using php to create xml files to send to clients and xslt to transform that data. Think of it in these terms xml (raw data) and xslt (presentation logic). However, do not forget that xml (xslt, xsd, xpath, etc) are their own technologies so they require knowledge of them. With xml you can start working on creating your own web services that are php driven. That should get u started. -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Display HTML/PHP code on a web page
> I've googled for it, but nothing came up. How do I display code on a page > without it being executed? If you want to show php source then you can use show_source function or highlight_file function. -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php