[PHP] pdf information..
Hello, I have been given a task to generate a business card program over the web. The option that i can think of it to make it easier is generate a pdf based on the user's experience over my preview program on the web. Now im wondering does pdf have those image resolution size? I mean on image you can specify 100x100 pixels and make the resolution into 300dpi. How about pdf? -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] bcc on php
hello, how do you make a bcc on php on a form 2 email settings.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pdf information..
i never tried FPDF but just downloaded it. i'll try in a while.. have you tried making a business card using this? i've testing the pdflib it works great, but the sad thing is i have to pay for it. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Enda Nagle" <[EMAIL PROTECTED]> To: "'Louie Miranda'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, July 16, 2003 6:20 PM Subject: RE: [PHP] pdf information.. > I used FPDF (http://www.fpdf.org) to do a system for a customer where he > could generate invoices and shipping labels. > > I just used A4 page size but I remember seeing in the documentation that > you can specify sizes of pages etc. > > Also the PDFs work on mm, not pixels. > > I know you can embed 300dpi images into the PDF, any time I printed them > they turned out ok. > > Best of all, its free and you don't need to use PDF Lib. > > Enda > -- > > > > > -Original Message- > From: Louie Miranda [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 16, 2003 8:30 AM > To: [EMAIL PROTECTED] > Subject: [PHP] pdf information.. > > > Hello, > > I have been given a task to generate a business card program over the > web. The option that i can think of it to make it easier is generate a > pdf based on the user's experience over my preview program on the web. > > Now im wondering does pdf have those image resolution size? I mean on > image you can specify 100x100 pixels and make the resolution into > 300dpi. How about pdf? > > -- > Thank you, > Louie Miranda ([EMAIL PROTECTED]) > > > > -- > 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] pdf information..
> What's the problem with paying for something if nothing.. nothings wrong, but if the free GNU software can do it also, i switch to free software. Like php is :) At first not that mature but look at it now.. people have different opinions, and i respect yours. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Louie Miranda" <[EMAIL PROTECTED]> Cc: "php" <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 9:48 AM Subject: Re: [PHP] pdf information.. > > On Thursday, July 17, 2003, at 11:38 AM, Louie Miranda wrote: > > > i never tried FPDF but just downloaded it. i'll try in a while.. > > have you tried making a business card using this? > > > > i've testing the pdflib it works great, but the sad thing is i have to > > pay > > for it. > > What's the problem with paying for something if > > a) it does the job > > b) saves you hundreds of hours in development > > c) provides your business with an income stream (you aren't giving away > these business cards, are you?) > > I agree it isn't cheap, but don't rule it out based on price alone. > Consider the ROI (return on investment). > > And no, I don't work for PDFLib -- I've never even used it! > > > Justin > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] state (Field Problem)
Given this problem.. I have this html form that has a "State" option and it list all the US states. And i also have a "State/Province" field if ever he does not live in the US. My problem is how will i recognize both? I Mean, i will pass it over to a php program and ofcourse the php will parse the user _POST's and display it. USA / State: Washington DC Not USA / State: Whatever -- Select StateNot USA -- State or Province (Not USA): -- How will i pass this? Double thing? and make it just one.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] state (Field Problem)
got it working.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 1:49 PM Subject: Re: [PHP] state (Field Problem) > On Thursday 17 July 2003 12:56, Louie Miranda wrote: > > > Given this problem.. > > I have this html form that has a "State" option and it list all the US > > states. And i also have a "State/Province" field if ever he does not live > > in the US. > > > > My problem is how will i recognize both? I Mean, i will pass it over to a > > php program and ofcourse the php will parse the user _POST's and display > > it. > > > > USA / State: Washington DC > > Not USA / State: Whatever > > > > > > -- > > Select State > value=StateProvince>Not USA > > -- > > State or Province (Not USA): > > -- > > > > How will i pass this? Double thing? and make it just one.. > > It's just a matter of deciding which field to use. If the user bothered to > fill in 'StateProvince' then use and display that as the state. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > -- > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > -- > /* > Tell me, O Octopus, I begs, > Is those things arms, or is they legs? > I marvel at thee, Octopus; > If I were thou, I'd call me us. > -- Ogden Nash > */ > > > -- > 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] bcc on php
> A message that you sent contained a recipient address that was incorrectly > constructed: > Bcc: [EMAIL PROTECTED] missing or malformed local part (expected word or > "<") got this error.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Wendell Brown" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Thursday, July 17, 2003 7:31 PM Subject: Re: [PHP] bcc on php > On Thu, 17 Jul 2003 05:55:27 +, Curt Zirzow wrote: > > >> Example 4. Sending complex email > >> http://www.php.net/manual/en/function.mail.php > >> > >um.. don't use that example, it is the incorrect way to send a bcc. for > >one it wont work and two the people will see the bcc, defeating the > >purpose of a bcc. > > Have you tried it? I wrote a php script just last night that used this > format and it works like a champ! If you do a search for bcc on that > page you will see that bcc is NOT handled by the MTA but by PHP. I > have it bcc'ing to 3 or 4 people using a single header "Bcc: email, > email, email, email" and it bcc's to all with NO copy of the bcc'ed > folk in the header. > > Now for the caveat this is php 3.0.? For some reason the ISP > I'm using doesn't have php 4 set to run from the command line. Why > would I care if it runs from the command line? Because I have my > little script set up as a cron job, so it has to be command line. :) > > > -- > 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] redirecting to a url..
I have this form with 2 values under 1 name ColTemplate. I was hoping if i can redirect it to another url? on the ?? if templateone or templatetwo. Anyhelp would be good. -- code - $v_get_template = $_POST['ColTemplate']; if ($v_get_template === 'TemplateOne') { ?? } elseif ($v_get_template === 'TemplateTwo') { ?? } -- code ----- -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] redirecting to a url..
My solution.. echo ""; Or you may have other more advance alternatives? -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message ----- From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 2:08 PM Subject: [PHP] redirecting to a url.. > I have this form with 2 values under 1 name ColTemplate. I was hoping if i > can redirect it to another url? on the ?? if templateone or templatetwo. > > Anyhelp would be good. > > -- code - > $v_get_template = $_POST['ColTemplate']; > > > if ($v_get_template === 'TemplateOne') { > ?? > > } elseif ($v_get_template === 'TemplateTwo') { > ?? > } > -- code - > > > > -- > Thank you, > Louie Miranda ([EMAIL PROTECTED]) > > > > -- > 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] redirecting to a url..
thanks, this is much better. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 2:29 PM Subject: Re: [PHP] redirecting to a url.. > > Louie Miranda <[EMAIL PROTECTED]> wrote: > > I have this form with 2 values under 1 name ColTemplate. I was hoping if i > > can redirect it to another url? on the ?? if templateone or templatetwo. > > header('Location: http://domain/file'); > > > Curt > -- > > > -- > 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] redirecting to a url..
yes, got it working. thanks a lot.. i did use header -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Louie Miranda" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 11:45 PM Subject: Re: [PHP] redirecting to a url.. > > --- Louie Miranda <[EMAIL PROTECTED]> wrote: > > echo ""; > > > > Or you may have other more advance alternatives? > > You can use a protocol redirect rather than relying on HTML: > > header('Location: http://yoursite.org/us/index.php'); > > Chris > > = > Become a better Web developer with the HTTP Developer's Handbook > http://httphandbook.org/ > > -- > 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] on preview, loosing data using post/session..
hello, im am making a business card preview program. im passing data using.. post and session. i did use a redir on my index because i use 2 diff layout. when it redir it goes to a index site that dont have a post yet. after the users enters the data when they preview the data is ok, but when they go back to correct the fields. the entered data is being lost. is there a way to store data that it wont be lost using it's session? or post? what ever's easy will be good help. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] computing 2 value and adding it..
I have a 2 form value on 500/pcs and 1000/pcs And i was hoping how will i compute this when i comes to this code.. --- start $final_price_usmail = ( $bcard_price + $usmail_price ); $final_price_courier = ( $bcard_price + $courier_price ); if ($v_sendvia === 'USMail') { echo '$' . $bcard_price . ' (Business Card) + ' . $usmail_price . ' (U.S. Mail) = $' . $final_price_usmail . '.00'; } elseif ($v_sendvia === 'Courier') { echo '$' . $bcard_price . ' (Business Card) + ' . $courier_price . ' (Courier) = $' . $final_price_courier . '.00'; } --- end Im looking for a way that when the user click on the 1000/pcs it will compute * 2. But i couldt figure this out.. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php calendar suggestion..
I currently downloaded phpcalendar from.. http://www.cascade.org.uk/software/php/calendar/index.php Im amaze how things goes with that software, i just couldnt figure out how to link to a file for a specific date. Can anyone suggest a similar program like this, that is simple and only an admin can change the dates - events? -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] perl to php converter
is there such a thing? perl to php converter? i will try to convert movabletype to php, if ever. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] suggestion on php-editor?
I currently used Dev-PHP IDE. But i was wondering if you guys have any other suggestions? -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php, search engine that index via local filesystem?
Do you know any? --- - Thanks, Louie Miranda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] editing using msword(similar) via php
Hi, I saw an ASP kind of a msword type editor that edit's webcontents. And it runs asp :(. I was wondering if php can do similar things like this? I can't give you the website url because its on a intranet. --- - Thanks, Louie Miranda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] editing using msword(similar) via php
oh yes we can! http://www.snippetmaster.com/ --- - Thanks, Louie Miranda - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 03, 2003 9:51 AM Subject: [PHP] editing using msword(similar) via php > Hi, > > I saw an ASP kind of a msword type editor that edit's webcontents. And it > runs asp :(. > I was wondering if php can do similar things like this? I can't give you the > website url > because its on a intranet. > > > --- - > Thanks, > Louie Miranda > > -- > 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] HTTP_REFERER
Does php support this? HTTP_REFERER or simply cgi and ssi only? - Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: HTTP_REFERER
what can you suggest, im trying to do a referer email program on a website and i think HTTP_REFERER will be my first approach, but limited on some browsers and firewall. What can you suggest for a dynamic page? - Original Message - From: "Eugene Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 3:30 PM Subject: Re: [PHP] Re: HTTP_REFERER > On Fri, Sep 12, 2003 at 09:11:09AM +0200, Catalin Trifu wrote: > : > : "Louie Miranda" <[EMAIL PROTECTED]> wrote: > : > > : > Does php support this? HTTP_REFERER > : > or simply cgi and ssi only? > : > : It does support any HTTP information, and since > : HTTP_REFERER is part of the HTTP spec. it is supported. > : You can find it in the $_SERVER variable. > : FYI: The referer is not a reliable information. > > Several Windoze firewalls also filter out HTTP_REFERER. > > > -- > Eugene Lee > http://www.coxar.pwp.blueyonder.co.uk/ > > -- > 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] Re: HTTP_REFERER
no, im making a "send this page to a friend program" when the users click the button a small pop-up window will come out and the http_referer will work and catch the previous page. - Louie - Original Message - From: "Eugene Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 4:15 PM Subject: Re: [PHP] Re: HTTP_REFERER > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote: > : "Eugene Lee" mentioned: > : > > : > Several Windoze firewalls also filter out HTTP_REFERER. > : > : what can you suggest, im trying to do a referer email program on a website > : and i think HTTP_REFERER will be my first approach, but limited on some > : browsers and firewall. > : > : What can you suggest for a dynamic page? > > It depends on what exactly you are trying to accomplish. Are you trying > to restrict access to your email program based on the HTTP_REFERER which > may be real or may be forged? > > -- > 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] Sending SMS messages ?
Hi Dave, Yes php can, but what application will you connect to? On my old work we develop php and c programs to do it. Although the main client that connects is on C/Unix but when the people wanted to send messages we do it on php then web to c then c program to smsc server. - Louie - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 4:06 PM Subject: [PHP] Sending SMS messages ? Hi All Is there a way to send sms messages via php. I really don’t know anything about this so any info,pointers or resources will be very much appreciated. Thank you in advance for any help. Dave C --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003 -- 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] Re: HTTP_REFERER
SCRIPT_FILENAME, sorry but i didnt get this part. - Original Message - From: "Eugene Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 12, 2003 4:51 PM Subject: Re: [PHP] Re: HTTP_REFERER > On Fri, Sep 12, 2003 at 04:21:16PM +0800, Louie Miranda wrote: > : Eugene Lee mentioned: > : > On Fri, Sep 12, 2003 at 03:53:22PM +0800, Louie Miranda wrote: > : > : "Eugene Lee" mentioned: > : > : > > : > : > Several Windoze firewalls also filter out HTTP_REFERER. > : > : > : > : what can you suggest, im trying to do a referer email program on a > : > : website and i think HTTP_REFERER will be my first approach, but > : > : limited on some browsers and firewall. > : > > : > It depends on what exactly you are trying to accomplish. > : > : no, im making a "send this page to a friend program" > : when the users click the button a small pop-up window will come out > : and the http_referer will work and catch the previous page. > > Since it's a button, you could always send the SCRIPT_FILENAME to the > pop-up window via a GET or POST method. > > -- > 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] browser detector (php side)
Im looking for a browser detector and can redirect to a certain page if its match something. So far phpsniff is the only thing i found. But i didnt got it to work d redirection part. any ideas? - Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] matching certain values
Im trying to match some words on the value that i have impost on php. But i dont know why it doesnt seem to catch some certain fields. if ($HTTP_USER_AGENT === 'MSIE ') I know something is wrong :( - Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] matching certain values
thanks for the reference. strpos will be good for my problem. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 18, 2003 4:11 PM Subject: Re: [PHP] matching certain values > On Thursday 18 September 2003 15:55, Louie Miranda wrote: > > Im trying to match some words on the value that i have impost on php. > > But i dont know why it doesnt seem to catch some certain fields. > > > > if ($HTTP_USER_AGENT === 'MSIE ') > > > > I know something is wrong :( > > Did you *try* finding out what is wrong? > > Simple things like > > echo $HTTP_USER_AGENT > > to see what it really contains? > > And if you're only matching part of a string you should be using things like > strpos() or preg_match() etc. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > -- > Search the list archives before you post > http://marc.theaimsgroup.com/?l=php-general > -- > /* > A straw vote only shows which way the hot air blows. > -- O'Henry > */ > > -- > 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] Netcraft
I did see you on the other list, Well anyway. It can be a combination of system tools and php. Not just php, but also system tools like ping, traceroute, etc. Php can help a lot, on querying it over the website. But overall read the man :D -- - Louie Miranda http://www.axishift.com - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 25, 2003 2:08 PM Subject: Re: [PHP] Netcraft > Maybe if I add a second question, which I figure didn't have to be > asked, since I'm asking a PHP list, would make it all better > > "Does anyone know how Netcraft queries a webserver to get the info it > does (OS, web server software, uptime, etc.)?" Can this be > done with PHP > > But thanks for the link anyway. > > Chris Shiflett wrote: > > > --- John Nichel <[EMAIL PROTECTED]> wrote: > > > >>Does anyone know how Netcraft queries a webserver to get the info it > >>does (OS, web server software, uptime, etc.)? > > > > > > http://uptime.netcraft.com/up/accuracy.html > > > > Please try to stick to PHP queries as much as possible. Thanks. > > > > Chris > > > > = > > Become a better Web developer with the HTTP Developer's Handbook > > http://httphandbook.org/ > > > > > > -- > By-Tor.com > It's all about the Rush > http://www.by-tor.com > > -- > 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] variables, passing again to another.
if ($psi_shipping_addtnl_info != '') { echo '<< NO USER INPUT >>'; } Im catching a _POST variable from a form, now i wonder im filtering it out to pass again to another variable is this possible? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] form to printer servers w/ip
guys, anyone had successfull projects relating on my subject?. im full of overflowing ideas on my head right now. its like form to fax, but this time form to printer. i mean printer servers w/ ip. -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] form to printer servers w/ip
one way i found is, connecting to php socket and going to printer port to send the data. -- - Louie Miranda http://www.axishift.com - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 10, 2003 4:12 PM Subject: [PHP] form to printer servers w/ip > guys, anyone had successfull projects relating on my subject?. > im full of overflowing ideas on my head right now. > > its like form to fax, but this time form to printer. > > i mean printer servers w/ ip. > > -- - > Louie Miranda > http://www.axishift.com > > -- > 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: Re[2]: [PHP] reading linux wtmp file
Crap entry 1546673160 This one gave me this error. Every line on the wtmp entry. -- - Louie Miranda http://www.axishift.com - Original Message - From: "Tom Rogers" <[EMAIL PROTECTED]> To: "Tom Rogers" <[EMAIL PROTECTED]> Cc: "Michael P. Carel" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, October 15, 2003 2:45 PM Subject: Re[2]: [PHP] reading linux wtmp file > Hi, > > Wednesday, October 15, 2003, 2:25:13 PM, you wrote: > TR> wtmp is a binary file and the format can vary between old and new versions of > TR> linux. You will need to have a look at struct utmp in, for example, /usr/include/bits/utmp.h > TR> This location can vary from system to system as well. > > TR> NOTE do not meddle with the wtmp file by opening it in anything other than > TR> readonly mode as all kinds of nasty things can happen if that file gets > TR> corrupted. > > TR> -- > TR> regards, > TR> Tom > This may help if you are on a newish Linux: > > //use for debug > function hexDumpChar($str,$len){ > //echo 'Len '.strlen($str); > $strlen = strlen($str); > for($z=0;$z < $strlen;$z+=$len){ > $left = $strlen - $z; > $jlen = ($left > $len)? $len:$left; > for($j=$z;$j<$z+$jlen;$j++){ > printf(" %02x",ord($str[$j])); > } > echo ''; > for($j=$z;$j<$z+$jlen;$j++){ > printf(" %c",ord($str[$j])); > } > echo ''; > } > echo ''; > } > //utmp valid types > define('UT_UNKNOWN',0); > define('RUN_LVL',1); > define('BOOT_TIME',2); > define('NEW_TIME',3); > define('OLD_TIME',4); > define('INIT_PROCESS',5); > define('LOGIN_PROCESS',6); > define('USER_PROCESS',7); > define('DEAD_PROCESS',8); > define('ACCOUNTING',9); > $types = array('uk','Run Level','Boot Time','New Time','Old Time','Init','Login Start','User Login','Logout','Accounting'); > $wtmp = '/var/log/wtmp'; > if($fp = fopen($wtmp, 'r')){ > echo ''; > echo ' TypePidLineInittabUserH ostDateUnknown'; > while($buf = fread($fp,384)){ > //hexDumpChar($buf,16); > $row = unpack("Vtype/Vpid",substr($buf,0,8)); > switch($row['type']){ > case RUN_LVL: > case BOOT_TIME: > case NEW_TIME: > case OLD_TIME: > case INIT_PROCESS: > case LOGIN_PROCESS: > case USER_PROCESS: > case DEAD_PROCESS: > case ACCOUNTING: > $line = substr($buf,8,32); > $inittab = substr($buf,40,4); > $user = substr($buf,44,32); > $host = substr($buf,76,256); > $date = unpack("Vterm/Vexit/Vdate/Vuk",substr($buf,332,16)); > //print_r($row); > echo ''.$row['type'].' '.$types[$row['type']].''.$row['pid'].''.trim($line).''; > echo ''.trim($inittab).''.trim($user).''.trim($host).' '; > echo ''.date("d/m/Y H:i:s",$date['date']).''.$date['uk'].''; > break; > default: > echo ' Crap entry '.$row['type'].''; > break; > } > } > echo ''; > fclose($fp); > } > ?> > > > > > -- > regards, > Tom > > > -- > 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] using ImageGIF
Im trying to show gif images on a browser, since on my work. Not all are using Internet explorer on windows. One of my test shows on a Mac OS X 10.1 IE 5.5 the jpeg and png files are not supported and only gif images. I tried this syntax to generate gif files.. --php code-- $im = ImageCreate(200, 200); $white = ImageColorAllocate($im, 0xFF, 0xFF, 0xFF); $black = ImageColorAllocate($im, 0x00, 0x00, 0x00); ImageFilledRectangle($im, 50, 50, 150, 150, $black); header("Content-Type: image/gif"); ImageGIF($im); --php code-- but the browser returns an error on the image.. ("The image http://url cannot be displayed, because it contains errors.") And how would you know that gif is supported? PNG and JPEG is shown on phpinfo(); -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using ImageGIF
And here's the error [Fri Oct 17 10:52:20 2003] [error] PHP Fatal error: Call to undefined function: imagegif() in /Volumes/WWW_Root/louie/test.php on line 6 -- - Louie Miranda http://www.axishift.com - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 17, 2003 10:46 AM Subject: [PHP] using ImageGIF > Im trying to show gif images on a browser, since on my work. Not all are > using Internet explorer on windows. One of my test shows on a Mac OS X 10.1 > IE 5.5 the jpeg and png files are not supported and only gif images. > > I tried this syntax to generate gif files.. > > --php code-- > $im = ImageCreate(200, 200); > $white = ImageColorAllocate($im, 0xFF, 0xFF, 0xFF); > $black = ImageColorAllocate($im, 0x00, 0x00, 0x00); > ImageFilledRectangle($im, 50, 50, 150, 150, $black); > header("Content-Type: image/gif"); > ImageGIF($im); > --php code-- > > but the browser returns an error on the image.. > > ("The image http://url cannot be displayed, because it contains errors.") > > And how would you know that gif is supported? PNG and JPEG is shown on > phpinfo(); > > > -- - > Louie Miranda > http://www.axishift.com > > -- > 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] using ImageGIF
yes, thanks for the information. Is there any other similar types like gd that can create gif's? -- - Louie Miranda http://www.axishift.com - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: "Louie Miranda" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 17, 2003 10:52 AM Subject: Re: [PHP] using ImageGIF > To my understanding, gif is licensed, therefore its > not used in the current gd libraries. I believe the > licensing is up in july of 2004, and the support would > be reimplemented after then, but not 100% positive. > Go head over to the GD website to read more info about > gif. > > > --- Louie Miranda <[EMAIL PROTECTED]> wrote: > > Im trying to show gif images on a browser, since on > > my work. Not all are > > using Internet explorer on windows. One of my test > > shows on a Mac OS X 10.1 > > IE 5.5 the jpeg and png files are not supported and > > only gif images. > > > > I tried this syntax to generate gif files.. > > > > --php code-- > > $im = ImageCreate(200, 200); > > $white = ImageColorAllocate($im, 0xFF, 0xFF, > > 0xFF); > > $black = ImageColorAllocate($im, 0x00, 0x00, > > 0x00); > > ImageFilledRectangle($im, 50, 50, 150, 150, > > $black); > > header("Content-Type: image/gif"); > > ImageGIF($im); > > --php code-- > > > > but the browser returns an error on the image.. > > > > ("The image http://url cannot be displayed, because > > it contains errors.") > > > > And how would you know that gif is supported? PNG > > and JPEG is shown on > > phpinfo(); > > > > > > -- - > > Louie Miranda > > http://www.axishift.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > __ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php: file upload program limitation..
Hello, Im made a file upload program. I limit my php.ini to accept only 5mb but i told on my website that it is 2mb only. Now here's my problem. I only upload a 1.5mb and a 1.7mb file when ever i submit it the browser displays "the page cannot be displayed" but when ever i upload a file lower than 1mb it uploads it. Where the problem anyway? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Unicode translation
Guys, A problem arised on my application when a user enters a Unicode format code on the site. Well, we really catch every information and i really need to get some explanation about it. ex: C = U+0108: Latin Capital Letter C With Circumflex Now this unicode character does not have any keystroke on my computer, i only have "Character Map (Windows)" to generate this. On my php form i can type this clearly, but once preview it changes the character to Í or something similar (I guess). But when i used a Unicode character that has a keystroke value ë for example once preview it generates the correct character. Any bright ideas on this? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Unicode translation
Does all unicode characters have an equivalent key-stroke? and in even different fonts? -- - Louie Miranda http://www.axishift.com - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Luke" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 11:52 AM Subject: Re: [PHP] Re: Unicode translation > Luke wrote: > > >Yeah, i had a similar problem, i dont know if its the same, but i found that > >adding > > > >in the head of the html output fixed it > > > > > Even better, use header('Content-Type: text/html; charset=UTF-8') at the > beginning of your PHP page. > > -- > 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] Re: Unicode translation
Yes, i just learned that windows uses a decimal code and there is a hex value too. Well, since some unicode characters dont have a decimal value, its really getting harder to solve this kind of problems. :( -- - Louie Miranda http://www.axishift.com - Original Message - "Luke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > no, but on windows, you should be able to access most of them (depending on > the font) by using ALT+(number pad code) > eg ALT+(num pad)0169 gives you -> © > > Luke > > -- > Luke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] calling include inside a function?
I can't call an include inside a function, is this possible? -- function elo() { include ("what.txt"); } -- even -- $point = include ("what.txt"); function elo() { echo $point; } -- -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] calling include inside a function?
Its possible -- - Louie Miranda http://www.axishift.com - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 11, 2003 3:34 PM Subject: [PHP] calling include inside a function? > I can't call an include inside a function, is this possible? > > -- > function elo() { > include ("what.txt"); > } > -- > > even > > -- > $point = include ("what.txt"); > function elo() { > echo $point; > } > -- > > -- - > Louie Miranda > http://www.axishift.com > > -- > 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] calling include inside a function?
Just put the include inside the function. 1"; include("oongae.txt"); echo ""; print "2"; } ?> -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] can't access a GET variable on function?
$emailto = $_GET['EmailTO']; function wtemp_mainbody() { print "Contact ("; echo "$emailto"; print ") Info"; } Why can't i display a GET variable from a function? Or should i registered it on global session? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getenv of "document_name" in php
What is the getenv of "document_name" in php? -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] detecting flash in php
is there anyway of detecting flash? in php -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Very Simple one for u all :-)
like this? if ($value == $value_fetch) { do something } elseif ($value == $value_fetch { do something on this matter } else { error } -- - Louie Miranda http://www.axishift.com - Original Message - From: "Dave Carrera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 15, 2004 3:23 PM Subject: [PHP] Very Simple one for u all :-) Hi List, My brain needs a kick start this morning and I ask you this basic question. How do I do a if statement asking if 1st var = a value OR 2nd var = value I have tried this If(($var == val) || ($var2 == val2)){ Blah blah } I think this is a if var == val AND var2 == val2 then onwards but I need OR, so one or the other. Sorry this is so basic but not had enough coffee to sort this out yet, looks like a bad day for me ahead :-) Thank you in advance for any help. Dave C --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.560 / Virus Database: 352 - Release Date: 08/01/2004 -- 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] filtering filename.ext on file-upload.
How can you filter the extension for files being uploaded on a system via form. here are my codes: ## code ## $catchfile = $_FILES['userfile']['name']; $uploaddir = '/var/www-upload'; $uploadfile = $uploaddir . $catchfile; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { ## code ## -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: filtering filename.ext on file-upload.
code> if ($_FILES['imagefile']['type'] != "image/pjpeg") >The 'type' in $_FILES is provided by the browser. IIRC only IE uses >"image/pjpeg" whilst other browsers use "image/jpeg". But regardless of what >the browser sets, it is more reliable to get the image type from >getimagesize(). If im going to use this and if the user did not use an ie browser, hm it will mess up things. Based on what i just read, it will not work on all. But thanks for the suggestion. pathinfo() hmm, will check it out. i think now i can more filter the results. -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: filtering filename.ext on file-upload.
if JPEG is = image/pjpeg how about PDF files? thanks, Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem: Failed to write session data (lack of resources?)
[Mon Jan 26 07:42:56 2004] [error] PHP Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 [Mon Jan 26 07:43:25 2004] [error] PHP Warning: open(/tmp/sess_ce957a6f5c094441fbf7197aa683dec1, O_RDWR) failed: No space left on device (28) in /www/bcard/us/preview.php on line 50 [Mon Jan 26 07:43:25 2004] [error] PHP Warning: open(/tmp/sess_ce957a6f5c094441fbf7197aa683dec1, O_RDWR) failed: No space left on device (28) in Unknown on line 0 can anyone explain what can i do with this? this always happen, btw, on some of my php pages i always have sessions. -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem: Failed to write session data (lack of resources?)
actually /tmp is under /root and it contains 10G of space free still. What could be wrong here? Is it im loosing hardware resources, etc? -- - Louie Miranda http://www.axishift.com - Original Message - From: "Mike Migurski" <[EMAIL PROTECTED]> To: "Louie Miranda" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 9:23 AM Subject: Re: [PHP] Problem: Failed to write session data (lack of resources?) > >open(/tmp/sess_ce957a6f5c094441fbf7197aa683dec1, O_RDWR) failed: No space > >left on device (28) in Unknown on line 0 > > > >can anyone explain what can i do with this? this always happen, btw, on > >some of my php pages i always have sessions. > > Sounds like you're out of room on whatever drive /tmp is mapped to. > > - > michal migurski- contact info and pgp key: > sf/cahttp://mike.teczno.com/contact.html > > -- > 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] Problem: Failed to write session data (lack of resources?)
i mean under / -- - Louie Miranda http://www.axishift.com - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 9:54 AM Subject: Re: [PHP] Problem: Failed to write session data (lack of resources?) > actually /tmp is under /root and it contains 10G of space free still. > What could be wrong here? Is it im loosing hardware resources, etc? > > -- - > Louie Miranda > http://www.axishift.com > > > - Original Message - > From: "Mike Migurski" <[EMAIL PROTECTED]> > To: "Louie Miranda" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday, January 26, 2004 9:23 AM > Subject: Re: [PHP] Problem: Failed to write session data (lack of > resources?) > > > > >open(/tmp/sess_ce957a6f5c094441fbf7197aa683dec1, O_RDWR) failed: No space > > >left on device (28) in Unknown on line 0 > > > > > >can anyone explain what can i do with this? this always happen, btw, on > > >some of my php pages i always have sessions. > > > > Sounds like you're out of room on whatever drive /tmp is mapped to. > > > > - > > michal migurski- contact info and pgp key: > > sf/cahttp://mike.teczno.com/contact.html > > > > -- > > 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] test, pls del
test -- 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+mysql simple query help me pls! ty.
Hi, can someone help me here! :( I can't query the data on my sql from php. db is fine, i couldnt see the prob in php! pls help, ty. # MSQL ### mysql> desc members; +--+-+--+-+-++ | Field| Type| Null | Key | Default | Extra | +--+-+--+-+-++ | id | tinyint(5) | | PRI | NULL| auto_increment | | ircname | varchar(30) | YES | | NULL|| | email| varchar(30) | YES | | NULL|| | realname | varchar(40) | YES | | NULL|| | asl | varchar(30) | YES | | NULL|| | info | varchar(70) | YES | | NULL|| +--+-+--+-+-++ # PHP n", mysql_result($result,0,"ircname")); printf("email: %sn", mysql_result($result,0,"email")); printf("realname: %sn", mysql_result($result,0,"realname")); printf("asl: %sn", mysql_result($result,0,"asl")); printf("info: %sn", mysql_result($result,0,"info")); ?> # ERROR Warning: Supplied argument is not a valid MySQL result resource in /mnt/host-users/cavite/irc/members/t2.php on line 13 ircname: n Warning: Supplied argument is not a valid MySQL result resource in /mnt/host-users/cavite/irc/members/t2.php on line 14 email: n Warning: Supplied argument is not a valid MySQL result resource in /mnt/host-users/cavite/irc/members/t2.php on line 15 realname: n Warning: Supplied argument is not a valid MySQL result resource in /mnt/host-users/cavite/irc/members/t2.php on line 16 asl: n Warning: Supplied argument is not a valid MySQL result resource in /mnt/host-users/cavite/irc/members/t2.php on line 17 info: n -- 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-DB] php+mysql simple query help me pls! ty.
yes, i forgot something, this = mysql_select_db("mydb",$db); i did not specify my db name. thanks :) louie - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "'louie miranda'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 4:06 AM Subject: RE: [PHP-DB] php+mysql simple query help me pls! ty. > Test the mysql_query() return value: > $result = mysql_query("SELECT * FROM members") or > die("Error:".mysql_error()); > > there may be an error in your query. > > -Original Message- > From: louie miranda [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 03, 2002 1:59 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: [PHP-DB] php+mysql simple query help me pls! ty. > > > Hi, can someone help me here! :( > I can't query the data on my sql from php. > db is fine, i couldnt see the prob in php! > pls help, ty. > > > > # MSQL ### > mysql> desc members; > +--+-+--+-+-++ > | Field| Type| Null | Key | Default | Extra | > +--+-+--+-+-++ > | id | tinyint(5) | | PRI | NULL| auto_increment | > | ircname | varchar(30) | YES | | NULL|| > | email| varchar(30) | YES | | NULL|| > | realname | varchar(40) | YES | | NULL|| > | asl | varchar(30) | YES | | NULL|| > | info | varchar(70) | YES | | NULL|| > +--+-+--+-+-++ > > > > # PHP > > > > > $db = mysql_connect("my_db_host", "my_db_user", "my_db_pass") > or die("Could not connect"); > > mysql_select_db("mydb",$db); > > $result = mysql_query("SELECT * FROM members",$db); > > printf("ircname: %sn", mysql_result($result,0,"ircname")); > printf("email: %sn", mysql_result($result,0,"email")); > printf("realname: %sn", mysql_result($result,0,"realname")); > printf("asl: %sn", mysql_result($result,0,"asl")); > printf("info: %sn", mysql_result($result,0,"info")); > > ?> > > > > > > # ERROR > > > Warning: Supplied argument is not a valid MySQL result resource in > /mnt/host-users/cavite/irc/members/t2.php on line 13 > ircname: > n > Warning: Supplied argument is not a valid MySQL result resource in > /mnt/host-users/cavite/irc/members/t2.php on line 14 > email: > n > Warning: Supplied argument is not a valid MySQL result resource in > /mnt/host-users/cavite/irc/members/t2.php on line 15 > realname: > n > Warning: Supplied argument is not a valid MySQL result resource in > /mnt/host-users/cavite/irc/members/t2.php on line 16 > asl: > n > Warning: Supplied argument is not a valid MySQL result resource in > /mnt/host-users/cavite/irc/members/t2.php on line 17 > info: > n > > > -- > PHP Database 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 Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] APXS problem with compile. Please help :)
Hi, try to check if apxs is present in your $apache/bin/ directory. "The output of /usr/local/apache/bin/apxs follows ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or directory configure: error: Aborting" If you compile your php w/mod_so support, hm. it should work but anyway, just try to compile it again if u have time. by.. ./configure --prefix=/usr/apachel --enable-module=all --enable-shared=max -- enable-module=so --enable-rule=SHARED_CORE that should enable it again.. :) Louie - Original Message - From: "Stephen Loeckle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 4:29 AM Subject: [PHP] APXS problem with compile. Please help :) > I am having a problem compiling the php module for apache. I have mod_so.c > enabled: > > Compiled-in modules: > http_core.c > mod_so.c > suexec: disabled; invalid wrapper bin/suexec > > I don't understand the last line though. Hopefully it's not a a problem. > > I am running perl 5.6.1 freshly downloaded and compiled from cpan. > > Here are the results of the module compile: > > [root@lmfile php-4.1.0]# > ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/m > ysql > loading cache ./config.cache > checking for a BSD compatible install... (cached) /usr/bin/install -c > checking whether build environment is sane... yes > checking whether make sets ${MAKE}... (cached) yes > checking for working aclocal... found > checking for working autoconf... found > checking for working automake... found > checking for working autoheader... found > checking for working makeinfo... found > checking whether to enable maintainer-specific portions of Makefiles... no > checking host system type... i686-pc-linux-gnu > checking for gawk... (cached) gawk > checking for bison... (cached) bison -y > checking bison version... 1.28 (ok) > checking for gcc... (cached) gcc > checking whether the C compiler (gcc ) works... yes > checking whether the C compiler (gcc ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking how to run the C preprocessor... (cached) gcc -E > checking for AIX... no > checking for gcc option to accept ANSI C... (cached) none needed > checking for ranlib... (cached) ranlib > checking whether gcc and cc understand -c and -o together... (cached) yes > checking whether ln -s works... (cached) yes > checking for flex... (cached) flex > checking for yywrap in -lfl... (cached) yes > checking lex output file root... (cached) lex.yy > checking whether yytext is a pointer... (cached) yes > checking for working const... (cached) yes > checking for pthreads_cflags... (cached) -pthread > checking for pthreads_lib... (cached) > > Configuring SAPI modules > checking for AOLserver support... no > checking for Apache module support via DSO through APXS... > > Sorry, I was not able to successfully run APXS. Possible reasons: > > 1. Perl is not installed; > 2. Apache was not compiled with DSO support (--enable-module=so); > 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs > The output of /usr/local/apache/bin/apxs follows > ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or > directory > configure: error: Aborting > > I seen lots of messages about people having problems with this, but I have > only seen one post with the 'bad interpreter' problem with no resolution. > Any ideas? > > Any help is much appreciated, > Stephen > > P.S. Get the same from php 4.1.1 as well > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] APXS problem with compile. Please help :)
> If you compile your php w/mod_so support, hm. it should work > but anyway, just try to compile it again if u have time. i mean apache :) sorry.. - Original Message - From: "louie miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 5:17 AM Subject: Re: [PHP] APXS problem with compile. Please help :) > Hi, try to check if apxs is present in your $apache/bin/ directory. > > "The output of /usr/local/apache/bin/apxs follows > ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or > directory > configure: error: Aborting" > > If you compile your php w/mod_so support, hm. it should work > but anyway, just try to compile it again if u have time. > > by.. > > ./configure --prefix=/usr/apachel --enable-module=all --enable-shared=max -- > enable-module=so --enable-rule=SHARED_CORE > > that should enable it again.. :) > > > > > Louie > > > > > - Original Message - > From: "Stephen Loeckle" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, January 04, 2002 4:29 AM > Subject: [PHP] APXS problem with compile. Please help :) > > > > I am having a problem compiling the php module for apache. I have mod_so.c > > enabled: > > > > Compiled-in modules: > > http_core.c > > mod_so.c > > suexec: disabled; invalid wrapper bin/suexec > > > > I don't understand the last line though. Hopefully it's not a a problem. > > > > I am running perl 5.6.1 freshly downloaded and compiled from cpan. > > > > Here are the results of the module compile: > > > > [root@lmfile php-4.1.0]# > > > ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/m > > ysql > > loading cache ./config.cache > > checking for a BSD compatible install... (cached) /usr/bin/install -c > > checking whether build environment is sane... yes > > checking whether make sets ${MAKE}... (cached) yes > > checking for working aclocal... found > > checking for working autoconf... found > > checking for working automake... found > > checking for working autoheader... found > > checking for working makeinfo... found > > checking whether to enable maintainer-specific portions of Makefiles... no > > checking host system type... i686-pc-linux-gnu > > checking for gawk... (cached) gawk > > checking for bison... (cached) bison -y > > checking bison version... 1.28 (ok) > > checking for gcc... (cached) gcc > > checking whether the C compiler (gcc ) works... yes > > checking whether the C compiler (gcc ) is a cross-compiler... no > > checking whether we are using GNU C... (cached) yes > > checking whether gcc accepts -g... (cached) yes > > checking how to run the C preprocessor... (cached) gcc -E > > checking for AIX... no > > checking for gcc option to accept ANSI C... (cached) none needed > > checking for ranlib... (cached) ranlib > > checking whether gcc and cc understand -c and -o together... (cached) yes > > checking whether ln -s works... (cached) yes > > checking for flex... (cached) flex > > checking for yywrap in -lfl... (cached) yes > > checking lex output file root... (cached) lex.yy > > checking whether yytext is a pointer... (cached) yes > > checking for working const... (cached) yes > > checking for pthreads_cflags... (cached) -pthread > > checking for pthreads_lib... (cached) > > > > Configuring SAPI modules > > checking for AOLserver support... no > > checking for Apache module support via DSO through APXS... > > > > Sorry, I was not able to successfully run APXS. Possible reasons: > > > > 1. Perl is not installed; > > 2. Apache was not compiled with DSO support (--enable-module=so); > > 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs > > The output of /usr/local/apache/bin/apxs follows > > ./configure: /usr/local/apache/bin/apxs: bad interpreter: No such file or > > directory > > configure: error: Aborting > > > > I seen lots of messages about people having problems with this, but I have > > only seen one post with the 'bad interpreter' problem with no resolution. > > Any ideas? > > > > Any help is much appreciated, > > Stephen > > > > P.S. Get the same from php 4.1.1 as well > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] printing php variable into html > print $result; ?
Hi, is it possible to print the sql query? i mean i want to print the output of the command "SELECT * FROM members;" and output it into html, i tried print $result; -- it gives me different output.. > Resource id #2 ty, louie... # PHP SCRIPT ### ", mysql_result($result,0,"ircname")); printf("email: %s", mysql_result($result,0,"email")); printf("realname: %s", mysql_result($result,0,"realname")); printf("asl: %s", mysql_result($result,0,"asl")); printf("info: %s", mysql_result($result,0,"info")); print ""; ?> # PHP SCRIPT ### -- 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] HOWTO USE : htmlspecialchars
Info: Hi, im trying this form w/ htmlspecialchars (php function), but it doesn't seem to work, when i submit the form.. htmlspecialchars($info); is included on the source ex: Hm, am i correct? thanks!! louie -- 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 executing system commands..
Hi, can php execute system commands like df, and then print it to html ? thanks, louie -- 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] Including a file using php //
Hi, I was trying to include a url file on another server but could't make this to work. It displays nothing actually.. http://192.168.129.103/noc/chikkaps.txt'); echo $retvalue; ?> Can someone help me please? thanks, louie... -- 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] Including a file using php //
So u mean like this? http://192.168.129.103/noc/chikkaps.txt'); ?> Only?, Im not good with this, can you give me some samples? thanks, louie... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "louie miranda" <[EMAIL PROTECTED]> Sent: Tuesday, January 15, 2002 5:41 PM Subject: Re: [PHP] Including a file using php // > > I don't think you can return a value like this. > You should either define a function within your include which could be called from your page > or set a variable within your include that contains the result, this variable will be available as if > the include() statement was replace by the code in your include. > > bvr. > > > On Tue, 15 Jan 2002 17:32:14 +0800, louie miranda wrote: > > >Hi, I was trying to include a url file on another server but could't make > >this to work. > >It displays nothing actually.. > > > > > > >$retvalue = include('http://192.168.129.103/noc/chikkaps.txt'); > >echo $retvalue; > >?> > > > > > > > >Can someone help me please? > > > > > >thanks, > >louie... > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Including a REMOTE FILE using include (php function)
Im trying this little example of mine, Im trying to include a file from a remote webserver but could not possibly get it to work.. Here is the written code: ### A WORKING CODE // LOCAL FILE ### ### DID NOT WORK // REMOTE FILE http://192.168.129.103/noc/chikkaps.txt";; include($file); ?> ### Your help is much appreciated! thanks, louie... -- 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] Including a file using php //
Read the content I mean, echo it on the browser.. - Original Message - From: "Henning Sprang" <[EMAIL PROTECTED]> To: "louie miranda" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 15, 2002 6:32 PM Subject: Re: [PHP] Including a file using php // > louie miranda wrote: > > > So u mean like this? > > > > > > > include('http://192.168.129.103/noc/chikkaps.txt'); > > ?> > > > > > > Only?, Im not good with this, can you give me some samples? > > > > do you want to include the code in that file or read the content? > > include is used to include code for execution, > if you wanna read the content of the file you have to use the fopen and > fread functions, see the manual section "filesystem functions". > > > HTH, > Henning > > -- 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] good PHP to PDF libary?
do those pdf class support Unicode? So far, pdflib only supports unicode. -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] issue a value on header, not working..
This outputs a filename on $catchresult, and im working on redirecting it to that file via header. But when ever i run this the value of $catchresult is not being pass to the header() on php. $catchresult = $db_view->getOne($getfile); header('Location: clients/FILES/$catchresult'); Hmm, it seems simple but, its really not working.. -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue a value on header, not working..
ah ic, thanks. it now works fine. thanks also for the tip! :) On Mon, 26 Jul 2004 23:29:06 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > On Tue, 27 Jul 2004 11:59:14 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > > This outputs a filename on $catchresult, and im working on redirecting > > it to that file via header. But when ever i run this the value of > > $catchresult is not being pass to the header() on php. > > > > $catchresult = $db_view->getOne($getfile); > > header('Location: clients/FILES/$catchresult'); > > > > Hmm, it seems simple but, its really not working.. > > > > When using single quotes, variables aren't replaced by their content. > Using double quotes would fix it, but consider this alternative: > > header('Location: clients/FILES/'.$catchresult); > > Cleaner, more obvious that you're using a variable, will be > highlighted correctly by syntax highlighters, and, most important, > it's faster. :-) > > -- > DB_DataObject_FormBuilder - The database at your fingertips > http://pear.php.net/package/DB_DataObject_FormBuilder > > paperCrane --Justin Patrin-- > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: select * on all current?
ok, just removed the distinct syntax On Mon, 26 Jul 2004 23:51:43 -0500, mos <[EMAIL PROTECTED]> wrote: > At 10:45 PM 7/26/2004, you wrote: > >if I understand you correctly, this should do it. > > > >select distinct office, max(dateposted) > >from table > >group by office > > > Just one more thing. You don't need "distinct" because you are already > using "group by". > > Mike > > -- > MySQL General Mailing List > For list archives: http://lists.mysql.com/mysql > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: select * on all current?
now its working, i was wondering if we can do max(dateposted) on update? mysql> update datafiles set status = '1' where max(dateposted); ERROR : Invalid use of group function hmm? seems, not to be working at all. On Tue, 27 Jul 2004 14:43:58 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > ok, just removed the distinct syntax > > > > On Mon, 26 Jul 2004 23:51:43 -0500, mos <[EMAIL PROTECTED]> wrote: > > At 10:45 PM 7/26/2004, you wrote: > > >if I understand you correctly, this should do it. > > > > > >select distinct office, max(dateposted) > > >from table > > >group by office > > > > > > Just one more thing. You don't need "distinct" because you are already > > using "group by". > > > > Mike > > > > -- > > MySQL General Mailing List > > For list archives: http://lists.mysql.com/mysql > > To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] > > > > > > > -- > Louie Miranda > http://www.axishift.com > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Adding +7 more days on date() value problem
I can't figure how could i add +7 more days on the DD (Day) value. My problem is, when the day is close on the end of the month like 07/29/2004 when i add +7 on 29 = 36, its obvious we dont have 36 on the calendar. And im creating a program below, to explode it and maybe just add +. But i think its useless if im just going to do + on the DD (Day) value. Hmm :? ## cut: " .$plus7[0]. " " .$plus7[1]. " " .$plus7[2]. " Current Date: $curdate +7 Dats Date: $plus7 "); ?> ## -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [phpug-ph] expiring logins with-in 5days, nde pwede cookies.
HAHAHAHHAHA http://ph.php.net/manual/en/function.strtotime.php :) -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Graphing Webstats using MRTG/PHP/MYSQL?
has anyone know any tools related to this? Graphing Webstats using MRTG/PHP/MYSQL? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Graphing Webstats using MRTG/PHP/MYSQL?
i was thingking more of php+mysql, then mrtg will get all the data from the sql or the php. something like that On Thu, 29 Jul 2004 10:50:09 +0300, Skippy <[EMAIL PROTECTED]> wrote: > Quoting Louie Miranda <[EMAIL PROTECTED]>: > > has anyone know any tools related to this? > > Graphing Webstats using MRTG/PHP/MYSQL? > > Why MRTG _and_ PHP? AFAIK MRTG produces its own HTML and images. > You can either use MRTG with whatever data (webstats) you collected > or you can use PHP+MySQL for that and generate graphs from PHP. > > There must be PHP solutions to generating graphs out there, or you > can write your own. > > -- > Romanian Web Developers - http://ROWD.ORG > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Compile
no free tools? On Mon, 16 Aug 2004 02:37:48 +0200, Hannes Magnusson <[EMAIL PROTECTED]> wrote: > http://www.zend.com/store/products/zend-encoder.php > > On Mon, 16 Aug 2004 01:12:14 +0100 > [EMAIL PROTECTED] (Watty) wrote: > > > Is it possible to compile a PHP script? And if so, how? > > > > Watty > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Compile
try this: http://turck-mmcache.sourceforge.net/ -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compile
I think it still works with the old one, its not yet release a stable version for 5.0 and i think for 4.3.6? only in beta. hmm, better check their site out to know the full details. thanks On Mon, 16 Aug 2004 09:32:52 +0300, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > From: "raditha dissanayake" <[EMAIL PROTECTED]> > > > > i think you are looking for something like turck mmcache. > > > > Do you know if Turck MMCache works with PHP 5.0? > > Teddy > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP, over javascript code simple \n
Im having problems. Because my javascript is inside a PHP code. Now below are 1 line code of a print function that display this on the html header. i must put "\n" after the Firstname. But PHP actually reads \n so when i view it on a browser the js code moves down. Which is wrong, because it wont work anymore.. what i want is js should use the \n instead. is there any alternative for \n? so it can display properly on php? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP, over javascript code simple \n
Got it. use ' and not " because php reads if its under " On Fri, 20 Aug 2004 11:10:24 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > Im having problems. Because my javascript is inside a PHP code. > Now below are 1 line code of a print function that display this on the > html header. > i must put "\n" after the Firstname. But PHP actually reads \n so when > i view it on a browser the js code moves down. Which is wrong, because > it wont work anymore.. what i want is js should use the \n instead. is > there any alternative for \n? so it can display properly on php? > > print(" > if (document.rpcjs_louie.ColCustName.value == \"\") { walangfield += > \"Missing: Firstname\n\"; } > "); > ?> > > -- > Louie Miranda > http://www.axishift.com > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP, over javascript code simple \n
single ' will work fine. :) not double " On Fri, 20 Aug 2004 11:49:10 +0200, aRZed <[EMAIL PROTECTED]> wrote: > > > > print(" > > if (document.rpcjs_louie.ColCustName.value == \"\") { walangfield += > > \"Missing: Firstname\n\"; } > > "); > > ?> > > try simply escaping the "\" before the "n" with an additional "\" or in > other words: use "\\n" instead of "\n". PHP will interpret "\\" as an "\". > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] anyone using? R&OS pdf class? help: addTextWrap
I need help about this PHP Class, i only have a small problem. But i could not get it to work. $pdf->addTextWrap(10,30,100,8,"WALA NGA DIBA OK NA ATA E? Sana naman no Ok na!!!",left,0); i have this text, at line 100 it was truncated. thats ok, but the remainder of the string is not being listed. do you guys have any example that is working? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] main(): open_basedir restriction in effect., help
Warning: main(): open_basedir restriction in effect. File(/home/mainwww/www/sysfolder/pear/Pager/Pager.php) is not within the allowed path(s): (/home/axishift/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/axishift/public_html/pageApps/viewMessage.php on line 11 Hi, what is open_basedir? my host is on a cpanel machine.. -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] auto converting a $string to ALL Upper Case.
Is there a PHP syntax that can convert a $string result to all UPPER CASE? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $i++, incrementing by 10's
is it possible to increment by 10's? or 20's? i have this piece of code, but it selects from 1 to 1000 and counts by 1's. for($i = 1; $i <= 1000; $i++) -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] detect a file if it exist and display an image
im not sure if i coded one of my application wrong, i am displaying an image by displaying the itemcode and just adding a ".jpg" extension at the end. like this.. $itemCode = $row['itemCode']; .. i assumed before that i can show it all, but i found out that i cannot. my problem now is the $itemCode is on a database and the image filename is on directory. Will it be possible to detect a image file it exist or not? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: detect a file if it exist and display an image
this might work. On Fri, 17 Sep 2004 15:04:44 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > im not sure if i coded one of my application wrong, i am displaying an > image by displaying the itemcode and just adding a ".jpg" extension at > the end. > > like this.. > > $itemCode = $row['itemCode']; > .. > > > i assumed before that i can show it all, but i found out that i cannot. > > my problem now is the $itemCode is on a database and the image > filename is on directory. > Will it be possible to detect a image file it exist or not? > > -- > Louie Miranda > http://www.axishift.com > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] output a PDF, over header(). causes corruption on the file?
Im trying to output a pdf over a browser so i can hide the url link to it. but this one causes corruption. Try this.. http://dev.axishift.com/php/getpdf.php i got this part.. "Note: There is a bug in Microsoft Internet Explorer 4.01 that prevents this from working. There is no workaround. There is also a bug in Microsoft Internet Explorer 5.5 that interferes with this, which can be resolved by upgrading to Service Pack 2 or later. " but im using netscape, and it still has error. here's the basic source for it.. what other alternatives can you suggest? i need this asap! please help. -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: output a PDF, over header(). causes corruption on the file?
this is one problem i haven't seen some exact solutions. i tried this instead.. header("Content-type: application/pdf"); header("Content-transfer-encoding: binary"); header("Content-Disposition: attachment; filename=list.pdf"); $fp = fopen($WCFPriceList, "rb"); fpassthru($fp); and it did work. but im still waiting for other people's comment. On Mon, 4 Oct 2004 09:24:33 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > Im trying to output a pdf over a browser so i can hide the url link to > it. but this one causes corruption. > > Try this.. > http://dev.axishift.com/php/getpdf.php > > i got this part.. > "Note: There is a bug in Microsoft Internet Explorer 4.01 that > prevents this from working. There is no workaround. There is also a > bug in Microsoft Internet Explorer 5.5 that interferes with this, > which can be resolved by upgrading to Service Pack 2 or later. " > > but im using netscape, and it still has error. > > here's the basic source for it.. > > // We'll be outputting a PDF > header('Content-type: application/pdf'); > > // It will be called downloaded.pdf > header('Content-Disposition: attachment; filename="downloaded.pdf"'); > > // The PDF source is in original.pdf > readfile('original.pdf'); > ?> > > what other alternatives can you suggest? i need this asap! please help. > > -- > Louie Miranda > http://www.axishift.com > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] simple math computation..
the percent of 20% is = .20 right? how can i compute the correct value for this? my $totalCost is $4,000 and when i compute it to .20 using this method.. $shippingestimate = $totalCost * .20; i get the value for the shippingestimate = $0.8 which is wrong.. it should $800 what seems to be wrong? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] simple math computation..
i found the culprit. i remembered, that i use to pass the value with.. number_format($totalCost, 2, ".", ",") so the values being received by my computation has a "," comma 4,000 so that is why i always get wrong values. thanks again! On Mon, 04 Oct 2004 00:02:32 -0700, Matthew Fonda <[EMAIL PROTECTED]> wrote: > Howdy. > > It seems to work fine for me, perhaps you have a typo along the lines > some where. > > $totalCost = 4000; > $shippingestimate = $totalCost * .20; > echo $shippingestimate; > ?> > > echoes 800 > > -- > Regards, > Matthew Fonda > > > > On Sun, 2004-10-03 at 23:26, Louie Miranda wrote: > > the percent of 20% is = .20 right? > > how can i compute the correct value for this? > > > > my $totalCost is $4,000 and when i compute it to .20 using this method.. > > > > $shippingestimate = $totalCost * .20; > > > > i get the value for the shippingestimate = $0.8 which is wrong.. it should $800 > > what seems to be wrong? > > > > -- > > Louie Miranda > > http://www.axishift.com > > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: GeoIP?
Thanks for this! -- Louie Miranda (lmira...@gmail.com) http://www.louiemiranda.net Quality Web Hosting - www.axishift.com Pinoy Web Hosting, Web Hosting Philippines On Mon, Mar 16, 2009 at 3:48 PM, Per Jessen wrote: > Michelle Konzack wrote: > > > Hello Per, > > > > Am 2009-03-15 15:12:47, schrieb Per Jessen: > >> The easiest is to use a DNS service - this is the best one I know: > >> http://countries.nerd.dk/ > > > > This is cool... > > > > I'm glad you like it - it really is cool. > > > /Per > > -- > Per Jessen, Zürich (4.1°C) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
[PHP] Upload large < 100MB of PDFS to MySQL using PHP, Is my settings ok?
Guys, I need help on the php and mysql configurations. I want to be able to upload < 100MB to MySQL using PHP. On PHP, php.ini is as follows: > max_execution_time = 100; Maximum execution time of each script, in > seconds > max_input_time = 100; Maximum amount of time each script may > spend parsing request data > memory_limit = 100M ; Maximum amount of memory a script may consume > (8MB) > post_max_size = 100M > upload_max_filesize = 100M > On MySQL, my.cnf: > key_buffer = 500M > max_allowed_packet = 5M > table_cache = 256 > sort_buffer_size = 1M > read_buffer_size = 1M > read_rnd_buffer_size = 4M > myisam_sort_buffer_size = 128M > thread_cache_size = 16 > query_cache_size= 64M > The mysql field is set to LONGBLOB What configurations could I alter more? Because right now, it is just uploading around 30mb or something? And, no error. Maybe, something is wrong on the config? -- Louie Miranda (lmira...@gmail.com) http://www.louiemiranda.net Quality Web Hosting - www.axishift.com Pinoy Web Hosting, Web Hosting Philippines
[PHP] Push an Array, Comma separated.
GPS Administrative Page v2.3.12 (BETA)My array: Array ( [0] => Demo2.txt [1] => Demo.txt [2] => Demo.txt ) How could I push the values as: -> Demo2.txt, Demo.txt, Demo.txt? Not sure which approach is good. $saveFiles = array(); array_push($saveFiles, $ufName); Help -- Louie Miranda (lmira...@gmail.com) http://www.louiemiranda.net Quality Web Hosting - www.axishift.com Pinoy Web Hosting, Web Hosting Philippines
Re: [PHP] Re: Push an Array, Comma separated.
This is what I did. And it worked. $saveFiles = array(); $arrSize=sizeof($saveFiles); for ($number = 0; $number < $arrSize; $number++) { $saveFilesDump = "$saveFiles[$number], "; echo "$saveFiles[$number], "; } File1.txt, File2.txt, File3.txt, -- Louie Miranda (lmira...@gmail.com) http://www.louiemiranda.net Quality Web Hosting - www.axishift.com Pinoy Web Hosting, Web Hosting Philippines 2009/6/30 João Cândido de Souza Neto > May be array_merge($array, explode(",", $string)). > > -- > João Cândido de Souza Neto > SIENS SOLUÃÃES EM GESTÃO DE NEGÃCIOS > Fone: (0XX41) 3033-3636 - JS > www.siens.com.br > > "Louie Miranda" escreveu na mensagem > news:5016fc50906300125s12389ae1v3323c63c30343...@mail.gmail.com... > > GPS Administrative Page v2.3.12 (BETA)My array: > > Array ( [0] => Demo2.txt [1] => Demo.txt [2] => Demo.txt ) > > > > How could I push the values as: > > > > -> Demo2.txt, Demo.txt, Demo.txt? > > > > Not sure which approach is good. > > > > $saveFiles = array(); > > array_push($saveFiles, $ufName); > > > > Help > > -- > > Louie Miranda (lmira...@gmail.com) > > http://www.louiemiranda.net > > > > Quality Web Hosting - www.axishift.com > > Pinoy Web Hosting, Web Hosting Philippines > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
[PHP] Counting numbers on while..
Hi, im trying to create a number loop on a table where the data came in a database. I have tried the for "loop" and counted $countCards_result from the table where im going to get all the data. ## code ## while ($profile->fetchInto($row)) { for ($i = 1; $i <= $countCards_result; $i++) { $num = $i; print(" $num " .$row[2]. " "); } // end of for loop } // end of while ## code ## Well, it did loop the numbers from what did came out of $countCards_result but, the results are wrong because it loops each row from 1 to 10. Here's the example: 1 louie edit | delete 2 louie edit | delete 3 louie edit | delete 4 louie edit | delete 5 louie edit | delete 6 louie edit | delete 7 louie edit | delete 8 louie edit | delete 9 louie edit | delete 10 louie edit | delete 1 miranda edit | delete 2 miranda edit | delete 3 miranda edit | delete 4 miranda edit | delete 5 miranda edit | delete 6 miranda edit | delete 7 miranda edit | delete 8 miranda edit | delete 9 miranda edit | delete 10 miranda edit | delete And so on.. What i wanted it to do was.. 1 louie edit | delete 2 miranda edit | delete And so on.. I was wondering how can i get it to count only the rows, and dont repeat from 1 to 10 on all rows. Please help! -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] adding items on a input box and a checkbox.
I am having difficulty thingking how can i both add a quantity on a item, and at the same time detect if my clients did check the box. Like this: http://dev.axishift.com/php/qtybox/qtybox.html Here's the code i did, on how to catch the checkbox: ### code ### foreach ($_GET as $varname => $value) $parameters[$varname] = $value; if (empty($parameters["add"])) { die("Incorrect parameters"); exit; } foreach($parameters as $itemName => $itemValue) { if ($itemValue == "add") { end; } else { $itemExists = "select count(*) from catchorders_pending where uniqueID = '$itemValue'"; $itemExists_result = $dbData->getOne($itemExists); if ($itemExists_result == 0) { $insertData = $dbData->query("INSERT INTO catchorders_pending (uid,uniqueID) values ('$uid','$itemValue')"); } else { //print("exist: $itemValue"); }; // end if exist }; // end if itemvalue }; // end of foreach ### code ### Is it possible to add a input box, where i can add ex: quantity of items and at the same time they can check the box? is it possible on my code? please help!. -- Louie Miranda http://www.axishift.com -- under development
Re: [PHP] adding items on a input box and a checkbox.
> It's possible, but what's the point of having a qty and a checkbox? Because, i want my QTY(input) form to be edited right away. Its the basic code. -- Louie Miranda http://www.axishift.com -- under development
[PHP] running php even without .php extenstion, how can i do this?
I have seen similar sites that runs php. but without the extension. like: example.com/hello/great?ID=19 How can i do this? Run the php even without the .php extension -- - Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] running php even without .php extenstion, how can i do this?
I got what you mean, but can we do this on the whole directory instead by files? Like for example the whole / directory and /subdirectory/ so i wont be doing that editing every files? The example you gave is working, btw. -- - Louie Miranda http://www.axishift.com - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 27, 2004 1:27 PM Subject: Re: [PHP] running php even without .php extenstion, how can i do this? > * Thus wrote Louie Miranda ([EMAIL PROTECTED]): > > I have seen similar sites that runs php. but without the extension. > > > > like: example.com/hello/great?ID=19 > > > > How can i do this? Run the php even without the .php extension > > if you add a .htaccess file in the /hello/ directory with something > like (assuming apache as webserver): > > > SetHandler application/x-httpd-php > > > A file called great will be parsed as php. > > Or in / > > > SetHandler application/x-httpd-php > > > then the file hello will be ran as php and $_SERVER['PATH_INFO'] > will contain '/great' > > > Have fun :) > > Curt > -- > "I used to think I was indecisive, but now I'm not so sure." > > -- > 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] Re: javascript prob with php on ther browsers (old or new)
never mind, i got it solved. On Mon, 28 Jun 2004 11:13:01 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > > Whenever i load this on my old/mac broweser like IE5, etc. The whole > page just wont show up. How can i load this on php? to load it right? > > this loads ok on my new browser, im confused how can i get the " and > the ' to work with php? to load right on my weird-javascript-old- > browser > > > >function UpdateQty(item) >{ >itemId = item.name; >newQty = item.options[item.selectedIndex].text; > >document.location.href = > 'cart4.php?action=update_item&id='+itemId+'&qty='+newQty; > } > > > > hope u got my point? > > > -- > Louie Miranda > http://www.axishift.com > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] javascript prob with php on ther browsers (old or new)
Whenever i load this on my old/mac broweser like IE5, etc. The whole page just wont show up. How can i load this on php? to load it right? this loads ok on my new browser, im confused how can i get the " and the ' to work with php? to load right on my weird-javascript-old- browser function UpdateQty(item) { itemId = item.name; newQty = item.options[item.selectedIndex].text; document.location.href = 'cart4.php?action=update_item&id='+itemId+'&qty='+newQty; } hope u got my point? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php