[PHP] Web Services
Hi there, hope someone ini this list can help me out.. I had made a web services using Keith Devens library It's already run and OK... Now I try to make a client using ASP .NET to connect to my web services Did anyone know how to pull out the classes/function in my web services with kd_xmlrpc ?? like the google if we try to used the web services server we can see all the available function/class Thanks in Advance yamin - Original Message - From: Boaz Yahav [EMAIL PROTECTED] To: David R [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 04, 2003 4:39 PM Subject: RE: [PHP] cookie question Go to your browsers setting and ask the browser to prompt before setting cookies. in IE go to : tools - Internet Options - Privacy -- Advanced -- Override automatic cookie handling. See if your page tries to set the cookie at all. If not, try to add : error_reporting(2039); maybe you are sending the headers before you set the cookie. Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: David R [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 11:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] cookie question I tried it that way, and variations on it. I still have had no luck. Any other ideas? Thanks again David R Thanks for you he Boaz Yahav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try setcookie(auth,$val,time() + 3600,/,.avenew.com); also look here : http://examples.weberdev.com/get_example.php3?count=67 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: David R [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 9:44 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] cookie question I have never read anything about a production server domain. How do I set the cookie for it? Thanks. David R Leif K-Brooks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] David R wrote: Hello, I have a cookie question. I have the following code is a file called tc.php ? global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $settings, $sql ; $val=123; setcookie (auth, $val , time() + 3600); $cookie = $HTTP_COOKIE_VARS['auth']; echo cookie is: $cookie; ? I have no problem retrieving the value cookie value ( 123 ) on my local machine but when I post to the internet I can't get the cookie value. Any ideas why? Did you set the cookie for the production server domain? Cookies for your local machine won't still be there once you upload, you know. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Active Page
your pages should be dynamic, meaning every time user open your page it keep on getting data from table how about using the Meta tags from html it will refresh you page in x seconds (define x as you need) meta http-equiv=refresh content=x On Thursday 22 August 2002 02:01 pm, Budi Kelana wrote: Hi, I want to make a web page that can retrive data from my tables automatically, periodically. Does PHP have some timer control ? I know we can do with JavaScript (setInterval() or setTimeOut()) but I cann't join java script with PHP. I've tried make simple script with JavaScript to open new window that contain PHP script for show current time every 5 seconds. function showData() { newWindow = Window.open('data.php','screen'); } function loadData() { setInterval('showData()','5000') } data.php : ? echo date(l dS of F Y h:i:s A); ? in result, data.php will reload every 5 seconds, but it doesn't change. Can someone help me and give me suggestion ? TIA regards, Budi Kelana --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] get line from file
I got a file line like this !-- START -- This is a line1 this is a line2 this is a line3 this is a line4 !-- END -- how can i grep out the line1,line2,line3 ?? do anyone out there have any idea ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Installing MYSQL on Windows
you might want a phptriad (apache,mysql,php) find it in sourceforge On Tuesday 16 July 2002 06:15 am, Analysis Solutions wrote: On Mon, Jul 15, 2002 at 02:12:47PM -0700, Varsha Agarwal wrote: Can anyone tell me steps for installing MYSQL on windows ?? Very simple, step by step, instructions: http://www.analysisandsolutions.com/code/mybasic.htm --Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ????????????????????????? snip
how about all of us say *hi* to this erik hegreberg the fact we a a bunch of guys with manner so we all must say HI to erik ;-) On Wednesday 10 July 2002 03:40 pm, Mark Gallagher wrote: Rodolfo Gonzalez wrote: To the kind moderator of the list: please kick off this guy (Erik Hegreberg [EMAIL PROTECTED] ), he's really annoying. Or at least bounce his e-mails back to him ;) ). Go for the bounce option ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] rh 7.3
Thanks guysit's work now. On Wednesday 10 July 2002 04:39 pm, Chris Hewitt wrote: Yamin, You probably chose not to install bison or flex when you installed RedHat. They are on your CDs. HTH Chris Yamin Prabudy wrote: Hi guys,... In configure PHP 4.2.1 on RedHat 7.3 I found this problem checking for ranlib... ranlib checking whether ln -s works... yes checking for gawk... (cached) gawk checking for bison... no checking for byacc... no configure: warning: You will need bison if you want to regenerate the PHP parsers. checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: lex: command not found configure: error: cannot find output from lex; giving up [yamin@dusak php-4.2.1]$ what's wrong with it ??? thanks in advance Yamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] stupid dude
Hmmm some stupid dude land in this mailing list -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] rh 7.3
Hi guys,... In configure PHP 4.2.1 on RedHat 7.3 I found this problem checking for ranlib... ranlib checking whether ln -s works... yes checking for gawk... (cached) gawk checking for bison... no checking for byacc... no configure: warning: You will need bison if you want to regenerate the PHP parsers. checking for flex... lex checking for yywrap in -ll... no checking lex output file root... ./configure: lex: command not found configure: error: cannot find output from lex; giving up [yamin@dusak php-4.2.1]$ what's wrong with it ??? thanks in advance Yamin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fwd: [PHP] Please HELP on SUID HELP
I used a script from PEAR to adduser/deluser/change password the problem is the password file ini mode 600 and I run the script from web I had turn on the safe_mode = on safe_mode_gid = on the running script had a same UID GID with the password file when I try it There a alot of error... from reading the password file and I can't change the password cause it said no permission to do that can anyone help me with this suid stuf Thanks in Advance Yamin Prabudy --- PRONET INTERNET SERVICE PROVIDER http://www.pro.net.id --- --- PRONET INTERNET SERVICE PROVIDER http://www.pro.net.id --- -- 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] HELP on SUID
I used a script from PEAR to adduser/deluser/change password the problem is the password file ini mode 600 and I run the script from web I had turn on the safe_mode = on safe_mode_gid = on the running script had a same UID GID with the password file when I try it There a alot of error... from reading the password file and I can't change the password cause it said no permission to do that can anyone help me with this suid stuf Thanks in Advance Yamin Prabudy --- PRONET INTERNET SERVICE PROVIDER http://www.pro.net.id --- --- PRONET INTERNET SERVICE PROVIDER http://www.pro.net.id --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SUID ROOT
Hi there, I used rasmus script (PEAR) (with a change a little bit to fit to FreeBSD) to adduser/changepassword/verifypassword for my user from web I got some problem with the SUID to read the file and rewrite the file from the web i had set the safe_mode = On safe_mode_gid = On in php.ini and the script already own my root.wheel can anyone enlight me ? Thanks in advance Yamin Prabudy --- PRONET INTERNET SERVICE PROVIDER http://www.pro.net.id --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] regex
Hi I like to ask something say i got this line b = bla.net a = blabla.com (a and b NOT a variable) i want to use php to take the second line and want to grep the blabla.com how can i do that Yamin Prabudy -- 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] spliti
hi guys, I need help here. I got this $line = no more words to say; then I want to split them all I used spliti( ,$line); Then want to print it out say echo $word[0] $word[1] $word[$i]; how can I do this.. Thanks in Advance -- 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] select join table on mysql
hi i have to select this : $t2=mysql_db_query($db, SELECT radacct.UserName,sum(radacct.AcctSessionTime) as t1,usergroup.GroupName . from radacct LEFT JOIN usergroup ON radacct.UserName=usergroup.UserName where. usergroup.GroupName='unlimited' AND radacct.AcctStartTime='2001-$month-01 00:00:00'. AND AcctStopTime='2001-$month-31 23:59:59' group by UserName); when i do it in mysql database it already give me result and thereis about 400 rows. but when i want to generate it fetch the array there is a error Supplied argument is not a valid MySQL result resource in b./stats.php/b on line (bellow is the line $x=mysql_fetch_array($t2); what might be possible wrong with the code..(it just a simple one) Yamin Prabudy -- 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] GD, PNG
Hi there I try to setup GD and PNG and Zlib to work with my PHP 4.06 but still no sucess can anyone point me out how to do that, or a website that contain step by step instruction in the configure line i used this options --with-gd=/usr/local --with-png-dir=/usr/local/png --with-zlib=/usr/local installing those three items i just used make and make install so everthing must go to /usr/local thanks for the help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] GD, PNG
I try to compile againts PNG and JPEG and for web inteface i had install zlib and png and jpeg then gd but still have no sucess on it On Thursday 22 November 2001 09:03, you wrote: The operating system you are using would be nice to know- and wether its for apache, cgi-bin, or whatever. Most unixes (and it looks like you got a unix) have zlib in /usr not /usr/local. Quite a few already have gd and libpng in /usr as well. That's why it would be nice to know what your build environment is. Anyway, I'm pretty sure that you need to make sure gd is compiled against png. On my system, for example, my gd library is compiled with png, jpeg, and FreeType2 support. Secondly- if your system is darwin, you need to fix a few things. First, run ranlib on /usr/local/lib/libpng.a Then you can build gd against it. Then, though, you need to do the same to libgd ranlib /usr/local/lib/libgd.a note that the above is only needed on Darwin. That is properly done on most other unixes for you (in fact, most unixes compile those as shared libraries) -- 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] tail a file
Hi there I need help here I got a file say it's a logs file and keep update ever changes I need to tail this files and pharse it into web, so I can see this the update without login into server (jst thru web browser ) how can i do this Thanks for Help -- 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] something about the documentation
Hi there there is something missing in the documentation. in this case is about mysql here is the source that i paste from the website -- $link = mysql_connect(mysql_host, mysql_login, mysql_password) or die (Could not connect); print (Connected successfully); mysql_select_db (my_database) or die (Could not select database); $query = SELECT * FROM my_table; $result = mysql_query ($query) or die (Query failed); --- as i see the $link that do mysql_connect had been state but never been call in the progress such as mysql_select_db(my_database) [ sould be mysql_select_db(my_database,$link) ] so i assume that there wouldn't be any connection to mysql. sorry if i'm wrong but for the newbies it's can be a miss guide Thanks in Advance Yamin Prabudy
Re: [PHP] Re: upgrading from 4.03 to 4.06
Ok this is my error line...once again when I used 4.03 this script is already run...but got problem when i upgrade itu to 4.06 $db=database; $connectid=mysql_connect(bla,bluh,foo); mysql_db_query($db,UPDATE profile SET FullName='$FullName',Gender='$Gender',Birthday='$Birthday',. Address='$Address',HomePhone='$HomePhone',CelPhone='$CelPhone'. WHERE id=$profile-id,$connectid); - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:46 AM Subject: [PHP] Re: upgrading from 4.03 to 4.06 You'd have to show us every line that mentioned $connectionid for us to figure out where it disappeared... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Yamin Prabudy [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 10, 2001 10:57 PM Subject: upgrading from 4.03 to 4.06 Hi there recently I had upgrade my php from as you see in the subject and I have a problem raise after I do some upgrading my php script already run OK when I used the previous version after I do the upgrading a lot of error raise here is how I configure /configure --with-mysql=/usr/local --with-apxs=/usr/local/apache/bin/apxs -- enable-memory-limit --enable-ucd-snmp-hack --with-snmp=/usr/local/snmpd --en able-discard-path --enable-force-cgi-redirect --enable-trans-sid the problem is like this on the beginning of the script i declare $connectid=mysql_connect(bla,bla,bla); and at the end (still the same page) I used this mysql_db_query($db,query,$connectid); -- here is the error come up seems like the $connectid variable that I declare in previous didn't parse till the end then I put the $connectid=mysql_connect(bla,bla,bla); before the query then everything is OK.. can any body point me out where did I go wrong...I'm sure my script is OK..it's run in version 4.03 but got error in 4.06 Thanks in Advance Yamin Prabudy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] date
Hi, how do i check that the current date is the end of month ? thanks in advance -- 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] date HELP !!!!!
hi, how do i check that the current date is the end of month Thanks in Advance -- 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] number generator
Hi there I would like to generate numbers (random) like a credit card number and can be check is the number valid or not how can i do that.. yamin prabudy -- 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] number generat {Luhn algorithm}
anybody know about the Luhn algorithm ?? how can i do that in php yamin -- 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] using ereg
Hi there I need some hand here... I'm trying to write a script that call wget about like this $filename=someurl; $get=`/usr/local/bin/wget -t0 -c $filename`; while (ereg(saved,$get)) { echo file get; } from wget program i get this kind of output 0K - .. .. .. .. .. [ 1%] 50K - .. .. .. .. .. [ 3%] 100K - .. .. .. .. .. [ 5%] 2850K - .. .. .. .. .. [ 99%] 2900K -[100%] 13:27:47 (2.61 MB/s) - `aacrip_f.zip' saved [2969697/2969697] i need to get the saved word to indecated the download is done how can i do this...or there is another method to do this... Thanks in Advance...Yamin -- 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] posix_getpwnam()
Hi there. i have a script like this #!/usr/local/bin/php ? $username=blah; $password=nblah; $foo=posix_getpwnam($username); echo $foo[name]; echo $foo[passwd]; ? Problem when run SETUID if i run as root it's ok but if i run as diffrent user it's won't run ok i know it's a problem on the permission i set is to chmod 4750 in perl it should run as root...but in php not so how can i fix this when i run not as root it will just be fine and give me the result i want OS if i run on freebsd .no problem if i run on RedHat (shadow password) i can get any think how do posix deal with shadow password Yamin Prabudy -- 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] error in running apache while --with-apxs is a config option
i got this error Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: Undefined symbol alloc_globals can anybody help me fix it i used php4.05 with apache 1.3.20 with ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local the configure and make process is just OK no error Yamin Prabudy -- 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] grep all pages
Hi there I like to know can i grep a page say on http://www.somedomain.com (just the index.html) if it's possible can any guru out there enlight me how to do that Yamin Prabudy ===_ _ ___ ___ __ / |/ / __/_ _ / Internet / _ \/ __/ _ \// _ / / /For The / .__ /_/\___/_/|_ /___/ /_/ Profesional /_/ http://www.pro.net.id -- 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] MD5 password
Hi there assume that I had a password field in md5 format like this $1$uJ8d$jJKOHnfh^79824/. how do i compare an input password to the password that I sore in database so it can return right or wrong password thanks Yamin Prabudy -- 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] help me pls
I write a script for dealing with a form and the algorithem will look like this if (isset($somthing)) { the form is here and user input it } if($filter_in_the_form == 'something) { print the 1st } elseif($all_condition_done == 'OK') { print the 2nd } else { print nothing done } when i run it the first condition are done,OK then i input my data in the form then the $filter_in_the_form checked up something and so another form then i input the data.after i submit it should print out all the data then I input as a result but the thinks happen is then result of my input data print out with the 2nd form how do I print out the data with out showing the 2nd form ??? in perl when i used cgi i just define cgi-new Thanks in Advance Yamin Prabudy -- 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] help on select
Hi there I had a problem here I got a database in mysql that contains the date format like this "Mar 12 2001" now i try to sort the database and find out how many data in my MySQL that had a date "Mar 12 2001" how can i change that kind of format so i can compare the data in unix time stamp format Yamin Prabudy -- 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]