|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: php-general-digest-help
lists.php.netDate: Mon Aug 27 2001 - 15:39:40 CDT
php-general Digest 27 Aug 2001 20:39:40 -0000 Issue 841
Topics (messages 64579 through 64672):
Re: "undefined variable view ..."
64579 by: David Robley
Re: getting values inside PHP from outside script
64580 by: Scott Mebberson
Re: The future of PHP
64581 by: Zeev Suraski
64605 by: Alexander Skwar
64608 by: Geoff Caplan
64622 by: Julio Nobrega Trabalhando
64669 by: Alexander Skwar
Re: Eregi for Image
64582 by: Daniel Rezny
How to disable access to the site
64583 by: Sunil Jagarlamudi
64589 by: Yasuo Ohgaki
64590 by: Andre Lacour
64591 by: Yasuo Ohgaki
64595 by: Yasuo Ohgaki
Re: windows media player
64584 by: Greg Beaver
dose some one know of a scrip that will .......
64585 by: danial
What development environment do you use for PHP?
64586 by: Greg Beaver
64633 by: Michael Kimsal
Re: incorrect Timezone using mail() -- HELP!
64587 by: Yasuo Ohgaki
Re: Web fetching script
64588 by: Ben Quinn
64592 by: David Robley
64593 by: Niklas Lampén
64602 by: Ben Quinn
64617 by: Niklas Lampén
Question about PDF lib.
64594 by: Johan Holst Nielsen
64645 by: Matthew Loff
Re: [PHP-DEV] Question about PDF lib.
64596 by: Criegern, Phillipp von (PDV)
64607 by: By Proxy
how to sort search results by relevance?
64597 by: Yura
64598 by: CC Zona
Re: character encoding
64599 by: Yasuo Ohgaki
<br> appear in Text file
64600 by: Jack
Re: APC and WIN 32
64601 by: Yasuo Ohgaki
Re: sizeof(int)
64603 by: Christian Reiniger
Re: ftp_get
64604 by: MBK
Re: Shell or http?
64606 by: Jon Farmer
64609 by: Andrey Hristov
Print..
64610 by: Daniel Antonio de Lima
64611 by: * R&zE:
64612 by: Tim
64614 by: hassan el forkani
64618 by: MBK
64619 by: Rudolf Visagie
64620 by: * R&zE:
64621 by: hassan el forkani
64626 by: Daniel Antonio de Lima
64629 by: MBK
64630 by: * R&zE:
Re: The future of PHP -- accessory libraries
64613 by: Dan Harrington
64666 by: Navid Yar
Re: Cannot index a string index - Why?
64615 by: torek
overlaying alpha channel png over jpeg
64616 by: Vahan Yerkanian
Re: Thinking about going to ASP
64623 by: Julio Nobrega Trabalhando
64627 by: ReDucTor
64643 by: Julio Nobrega Trabalhando
authentication
64624 by: Wilbert Enserink
64625 by: abe.fish.serve.co.uk
64668 by: Gert Mellak
Re: Error while passing parameters as path
64628 by: Jaxon
PCRE Multiline modifier
64631 by: _lallous
64637 by: Andrey Hristov
Re: What is it with _vti?
64632 by: Mark Roedel
64638 by: Miles Thompson
64640 by: Seb Frost
Re: Dedicated Hosting
64634 by: Michael Kimsal
64644 by: Dan McCullough
MySQL: Updating ID auto_increment fields
64635 by: Tom Churm
64639 by: Andrey Hristov
Update 2 documents with only 1 POST?
64636 by: Michael Cronström
Re: Session not timing outafter 180 minutes
64641 by: Johnson, Kirk
Controlling Printing output
64642 by: Er Galvão Abbott
64649 by: Michael Kimsal
PHP mysql admin?
64646 by: Joseph Bannon
64647 by: Andrey Hristov
64651 by: Joseph Bannon
64665 by: Gert Mellak
64670 by: Alexander Skwar
PHP and SOAP/XML-RPC
64648 by: Sean McCormack
64652 by: Paul K Egell-Johnsen
64655 by: Hoover, Josh
64656 by: Andrey Hristov
Re: Certification
64650 by: Michael Kimsal
Multiple MySQL Tables --> HTML Tables
64653 by: Mouncef Belcaid
64663 by: Andrey Hristov
64664 by: Andrey Hristov
path error while calling files
64654 by: Carsten Weber
Sessions and Cookies on Macs
64657 by: Richard Baskett
PHP DEVELOPER NEEDED
64658 by: Technik
Help me!
64659 by: king
PHP Introduction cource
IBM
64660 by: teo.gecadsoftware.com
permissions when using fopen
64661 by: Pascal Chouinard
64662 by: Andrey Hristov
PHP/mySQL query problem...
64667 by: Jeff Lewis
Re: fatal input in flex scanner
64671 by: Robert V. Zwink
Re: functions returning arrays II
64672 by: Robert V. Zwink
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
On Mon, 27 Aug 2001 02:59, Wolfgang Schneider wrote:
> Hi everybody,
> can someone have a look at this bit of code please and help me out?
> I am getting an error message when calling a php page containing the
> code below, and the message reads:
>
> "Warning: Undefined index: view in
> c:/bibelcenter.de/www/links/links.php3 on line 76"
>
> Now the line 76 in question is the last one of the code section below
> ... can someone tell me what's missing there? how could this "index
> view" be defined?
> ____________________________________________
>
> # Get the content before showing the webpage
> if ($HTTP_GET_VARS['category'] == 'top_links')
> {
> $your_current_location = "Most Popular Links";
> $category_links=Top_Hits($sp_max_top_links);
> }
> else if ($HTTP_GET_VARS['category'] == 'new_links')
> {
> $your_current_location = "Newly Added Links";
> $category_links=Newly_Added($sp_max_new_links);
> }
> else
> {
> $categories = viewPage($HTTP_GET_VARS['category']);
> $your_current_location =
> display_category($HTTP_GET_VARS['category']);
> $category_links =
> display_category_links($HTTP_GET_VARS['category'],
> $HTTP_GET_VARS['view']);
> }
> _____________________________________________
>
> Any helpful ideas? I only get this warning message in my Win2k
> machine which I have set up for testing webpages purposes, it does
> not show up on my ISP's server ... so I suspect that somehow the
> server's php tolerates something in the code which my php version
> here somehow puts up the warning ...
> Any helpful hints and ideas are much appreciated. Thank you!
There will probably be different levels of error reporting in the two
php.ini files.
view is an index of the array $HTTP_GET_VARS, and is apparently not
defined at that part of the script.
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIAA cat sleeps fat, yet walks thin.
attached mail follows:
thanks heaps mate.........
"Chris Lambert" <chris
php.net> wrote in message
news:000c01c12e95$b217e600$6401a8c0
server...
> The easy & ugly one line solution:
>
> $csvalues = explode(",", implode("",
>
file("http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=.
> csv")))
>
> /* Chris Lambert, CTO - chris
whitecrown.net
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.net
> */
>
> ----- Original Message -----
> From: Scott Mebberson <scott
redbluedesign.com>
> To: <php-general
lists.php.net>
> Sent: Sunday, August 26, 2001 9:04 PM
> Subject: [PHP] getting values inside PHP from outside script
>
>
> | Hi Guys,
> |
> | I want to write a script that retrieves quote prices off the ASX
> (Australian
> | Stock Exchange) and then adds it to the database.
> |
> | I think the only way I can do this is by using the yahoo finance
> query.....
> | I need to know how I can call a string within my PHP script and then get
> the
> | results. The results are returned in a comma delimited format. Any
ideas?
> |
> | use
> |
http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=.csv
> to
> | see the results.
> |
> | thanks
> |
> | Scott.
> |
> |
> |
> | --
> | PHP General Mailing List (http://www.php.net/)
> | To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> | For additional commands, e-mail: php-general-help
lists.php.net
> | To contact the list administrators, e-mail: php-list-admin
lists.php.net
> |
> |
> |
>
attached mail follows:
At 08:07 27-08-01, Robin Chen wrote: >This is very true. I have a few ideas that I want to sell, but the only >way that I can do it with PHP is to give out the source, and the user is >expected to know how to install PHP and set up the script. If I can >compile the PHP script, then I can sell the executables. The users >would only have to copy the package into a directory and use it like a >cgi, and I won't have to worry about people looking into my codes. > >Having executable takes care of 2 concerns I have if I want to sell a >solution. First, with an executable, users don't have to install PHP on >their system to use my solutions. Second, users cannot see my code.
Executables that don't require PHP to be installed on the target machine are unlikely to ever happen, because going down that route, you end up losing many technical features that PHP offers you (performance, and certain degrees of functionality).
Regarding source code hiding, you can use the Zend Encoder. Pricing wise, the lowest you can get it for right now is $50/month, which may be too high for certain developers.
Zeev
attached mail follows:
So sprach »Zeev Suraski« am 2001-08-27 um 09:40:40 +0300 : > Regarding source code hiding, you can use the Zend Encoder. Pricing wise, > the lowest you can get it for right now is $50/month, which may be too high > for certain developers.
Uhm, really? I mean, if you don't make $50/month, the developer doesn't seem to be making a lot of money. And for such micro-projects that such a guy seems to be doing - why even care about hiding source code?
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 3 hours 47 minutes
attached mail follows:
Hi folks
I would just like to highlight an issue which I feel has a negative effect on the acceptance of PHP.
This is the difficulty of finding, downloading, compiling and installing the various PHP libraries not included in the core distribution. Many quite important libraries seem to be persoanl projects which are not supported by the core team, and are hosted on sites that can be down for days at a time. On Linux, many still require a re-compile, there is no documentation standard, and no central repository. This compares badly with platforms such as Perl and Java, who tackled this issue long ago.
My own ISP, who is one of the few to offer all PHP & MySQL upgrades as they are released, complains about this bitterly. The upshot is that shared hosting rarely offers more than the core functionality, which can be very restrictive. Setting up your own server can be daunting and time consuming - and the commercial distros such as Zend and Nusphere don't seem to have tackled the library issue either.
In terms of acceptability in the market, I suspect that this creates a negative impression. It seems to me that this is a quite central issue if PHP is to be perceived as a mature platform for building mission critical systems. I do hope that the development team, and those such as Zend who are committed to the future of PHP give this some attention.
Geoff Caplan
attached mail follows:
Hi Manuel,
Great post. I enjoyed the part where you said it would be a good idea to do some 'competition' with php programmers, sponsored by some company.
For example, most times when I want a php script, either I go to Hotscripts.com or Sourceforge.net.
Sf.net, by rebound, makes me remind of VA Linux. It is a good example of how to brand your name on the Open source community, by helping it.
But back to the contests, I wish there was a large corporation that would promote it between developers. Something like:
1) We want to build a website for our B2B strategies.
Then release the plan and specs for the whole world. Anyone can try to build. Only one scripting language allowed, any database, or something around these lines.. Later on, costs/time of development/features/security/etc... would be considered, and a 'winner' would be chosen.
That would be hard to happen, since the folks at large corporations that make these kind of decisions hire a 'team' based on various aspects, specially what they heard that exists and recommendation of friends/companies.
Analisys of 'case-studies' is hardly done. They won't browse the web to look for other solutions, either they will open the New York Times and read 'x-y-z did their site with (anything but php)'.
So, what we need is to spread the word to the world that php was, and it is, used on large sucessful projects. By gaining larger clients, media will follow.
But this opens a question, how to make the large corp see php (and of course, the people who use it) as something worth?
Basically, have another large corp to use it. How to get out of this loop? This circle where something to happen it needs itself to happen?
Maybe it is necessary to, contrary to what the community uncosciusly believes, empower with resources only ONE 'thing', either a company or a group of person.
The common descentralization of power on open source might have to be reviewed, but as always, carefully planned to produce results.
At least, it is an idea ;-)
--Julio Nobrega
A hora está chegando: http://toca.sourceforge.net "Manuel Lemos" <mlemos
acm.org> wrote in message news:3B869569.5AF3C7B9
acm.org... > Hello, > > Christopher Cm Allen wrote: > > > > > > > > I'm afraid that PHP is not yet very credible in that world. The truth is > > > there is not great marketing force behind PHP like there is Sun behind > > > Java or Microsoft behind .Net > > > > Good point, and how does one go about marketing a language that is > > open-source? > > If you don't know it is because you are not very motivated to do it. So, > the first step is to convince and motivate yourself that PHP needs to be > marketed. > > As for what to do, instead of suggesting new ideas, I would rather > recall some old ideas that always seemed to work well. > > For instance, provide PHP users compensation. It does not need to be > financial compensation. It may be moral compensation as long as it is > real compensation. > > For instance, if I am not mistaken, Guido Van Rossum, the Python > creator, sponsored a contest to develop software development tools with > cash prizes. Only a few won, but the contest attracted a lot of people > and was even mentioned in prestiged software development magazines like > Dr. Dobbs. This required some investment, but if you look around you > will not have much trouble to find a sponsor. > > Another point is that they managed to get the media on their side. It > seems that in the PHP community there is little effort to appeal to > media. That is a major waste of oppiortunity because they can provide > some much marketing for free. > > One free way to provide compensation to any PHP user is to promote their > work. 2 years ago I started a repository of PHP Classes of objects that > basically allow anybody to contribute regardless of the quality and > utility that you may attribute to what is contributed. > > The point is that once users that anybody can have some fame to have his > work exposed to a large PHP audience (over 40.000 subscribers), they > want to contribute as well and the site grows thanks to the moral > compensation that it offers to any PHP user. > > There are other class repositories, like the official PHP PEAR > repository, but the scope is different because the contributions are not > accepted arbitrarily, so you don't get as many contributors. > > Other than that, PHP resources sites like these should be officially > linked altogether with things like Web rings. It would cause a much > better impression to newcomers or ceptic people as it would make PHP > more credible exposing the real level of support that the whole PHP > community can provide. Unfortunately, the maintainers of PHP main site > and Zend site do not seem to agree that it would be a good idea to > promote other PHP resources sites with banners to pointing to them like > what is done with Web rings. > > > Ok, these are just a few ideas that would help PHP to be better > marketed. They are not new and have already been discussed before. It is > up to the people that have more active roles in the PHP community to > open their minds and pick them up. > > > > I do it by not allowing FP like extensions on my server's. All of my custom > > apps are php or if need be I switch to C/perl. > > If I get pushed hard enough I will do c++ :) > > > > By your own words though , the volume of users of a non-marketed php, > > compared to the users of marketed Java et al. speaks for itself. > > Php holds its own.. > > But for how long? > > > > What if a group of developers/designers started marketing PHP? > > Marketing does wonders. I should not need to to tell you that. One > problem seems to be some people in the PHP community have some kind of > aversion to the idea of that somebody can make money from free software. > That way you are ruling out people that can do a lot of good to the > growth of the PHP market. I think it is a matter of being more open > minded. The more opportunities you provide to others, the greater are > the chances that opportunities benefit your goals, in this case a a > wider acceptance of PHP making it more credible to people that basically > ignore it. > > ok, that's just me trying to be more constructive. :-) > > Regards, > Manuel Lemos
attached mail follows:
So sprach »Geoff Caplan« am 2001-08-27 um 11:26:09 +0100 : > standard, and no central repository. This compares badly with platforms such > as Perl and Java, who tackled this issue long ago.
Actually, I think you're right.
On the one hand, it's quite nice that there are so many librariries which can be compiled in (CURL, dbm, gettext ....). I think that's nice, because having this kind of support in a binary C library makes it rather fast.
BUT: It's not as easy to install if you don't have full access to the server.
With Perl on the other hand, you basicaly just download MP3::Info from CPAN and can easily download and install it. It's a lot easier since there's (most of the time) no binary compile needed. (Uhm - MP3::Info, hmm, bad example *G*).
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 12 hours 2 minutes
attached mail follows:
Hello Jeff,
Sunday, August 26, 2001, 9:17:45 PM, you wrote:
JO> I want to check if an uploaded file is an image. This isn't working. JO> Could anyone help me out?
JO> if (!eregi("\\.gif$", $img1_name) || JO> !eregi("\\.jpg$", $img1_name) || JO> !eregi("\\.jpeg$", $img1_name)) { JO> error message JO> }
You can find out type of uploaded file like this:
if ($img1_name_type=='gif') { image is gif do this } else { image is not gif do that }
I hope it helps
-- Best regards, Daniel mailto:danielrezny.sk
attached mail follows:
How to disable access to the entire site if the cookie is not set ?
Can we disable access entirely with some kind of a script which checks before it allows access ?
Sunil
__________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
attached mail follows:
Sunil Jagarlamudi wrote:
> How to disable access to the entire site if the cookie > is not set ? > > Can we disable access entirely with some kind of a > script which checks before it allows access ?
Take a look at
http://www.zend.com/codex.php?id=458&single=1
There are many ways to do that. This is one of them.
-- Yasuo Ohgaki
attached mail follows:
if (!isset($HTTP_COOKIE_VARS[$cookiename])) exit();
> -----Original Message-----
> From: Yasuo Ohgaki [mailto:yasuo_ohgaki
yahoo.com]
> Sent: Monday, August 27, 2001 9:49 AM
> To: php-general
lists.php.net; Sunil Jagarlamudi
> Subject: [PHP] Re: How to disable access to the site
>
>
> Sunil Jagarlamudi wrote:
>
> > How to disable access to the entire site if the cookie
> > is not set ?
> >
> > Can we disable access entirely with some kind of a
> > script which checks before it allows access ?
>
>
> Take a look at
>
> http://www.zend.com/codex.php?id=458&single=1
>
> There are many ways to do that. This is one of them.
>
> --
> Yasuo Ohgaki
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Andre Lacour wrote:
> if (!isset($HTTP_COOKIE_VARS[$cookiename])) exit();
This may work, but it could result unwanted behaviour for broken browsers that do not send cookie correctly. Some broken browsers do not send cookie first time sometimes. We need to direct once to make sure.
This works somewhat, but not 100% :)
>>>How to disable access to the entire site if the cookie >>>is not set ? >>> >>>Can we disable access entirely with some kind of a >>>script which checks before it allows access ? >>>
-- Yasuo Ohgaki_________________________________________________________ Do You Yahoo!? Get your free
yahoo.com address at http://mail.yahoo.com
attached mail follows:
Yasuo Ohgaki wrote:
> Andre Lacour wrote: > >> if (!isset($HTTP_COOKIE_VARS[$cookiename])) exit(); > > > > This may work, but it could result unwanted behaviour for broken > browsers that do not send cookie correctly. Some broken browsers do not > send cookie first time sometimes. We need to direct once to make sure.
Oops, my english broken. My English broken all the time, though :) Anyway, we need to "redirect" once to be sure, since broken browsers do not send cookie for the initial request sometimes.
-- Yasuo Ohgaki
attached mail follows:
Hi Heidi,
Check on microsoft's website, you can do this through a bit of html coding using ActiveX. The Windows Media Developer's site will have your answers.
Greg
-- The Chiara String Quartet http://www.chiaraquartet.net"Heidi Belal" <hmbelal
yahoo.com> wrote in message news:20010826204501.91964.qmail
web13002.mail.yahoo.com... > Has anyone done audio and/or video streaming? I'm > trying to stream this music file online through > windows media player. All i've been able to do is to > create a href that will pop up the windows media > player and stream the music. I would really like to > have the windows media player embedded in the html > file. Has anyone done that before? > Thanks, > Heidi > > ===== > Heidi Belal > ICQ# 32127109 > > A bus stops at a bus station. > A train stops at a train station. On my desk > I have a work station... > > __________________________________________________ > Do You Yahoo!? > Make international calls for as low as $.04/minute with Yahoo! Messenger > http://phonecard.yahoo.com/
attached mail follows:
dose some one know of a scrip that will stop someone from leeching my images..
like. if someone downloads 4 picturs in 35 sec. he will be and for 60 sec. im looking for something that will stop ppl for useing things like http://www.quadsucker.com/quadweb/ (( QuadSucker-Web )) - witch says to the server it is a Mozilla/4.0 browser -to download my hole website it kills my server when 2 or 3 ppl start to do it...
I Could use <? $browser = array ("Wget", "EmailSiphon", "WebZIP","MSProxy/2.0","EmailWolf","webbandit","MS FrontPage"); $punish = 0; while (list ($key, $val) = each ($browser)) { if (strstr ($HTTP_USER_AGENT, $val)) { $punish = 1; } } if ($punish) { echo " <head> <title>Access Denied</title> </head> <p>We're sorry. The software you are using to access our website is not allowed. Some examples of this are e-mail harvesting programs and programs that will copy websites to your hard drive. If you feel you have gotten this message in error, please send an e-mail addressed to admin. Your I.P. address has been logged Thanks.</p> <BR> -Yourname <BR> </body>
"; exit; } ?>
But dont do any good if the USER_AGENT stats it is a Mozilla/4.0
any help would be cool
thanks
danial lee smith Danial, http://WWW.CYBERHOTIES.COM
attached mail follows:
Hi,
I'm curious what programs/platforms different people use to develop PHP.
I don't have access to a good unix or linux server (need the hard drive space for large .wav files), so I develop in Microslop Losedose. I have been using Allaire HomeSite 4.5 because of its excellent support for color coding, and for downloadable help (have both PHP and MySQL docs available in the program, and it doesn't crash like PHP Coder). After a while of coding by uploading and testing online, I downloaded Xitami web server and do all of my developing and testing offline, then upload. I don't use a debugger.
Anyone have a sweet setup that makes it all easier?
Greg
-- The Chiara String Quartet http://www.chiaraquartet.net
attached mail follows:
PFE32 and WS_FTP when in windows VI or kwrite when under linux
Greg Beaver wrote:
>Hi, > >I'm curious what programs/platforms different people use to develop PHP. > >I don't have access to a good unix or linux server (need the hard drive >space for large .wav files), so I develop in Microslop Losedose. I have >been using Allaire HomeSite 4.5 because of its excellent support for color >coding, and for downloadable help (have both PHP and MySQL docs available in >the program, and it doesn't crash like PHP Coder). After a while of coding >by uploading and testing online, I downloaded Xitami web server and do all >of my developing and testing offline, then upload. I don't use a debugger. > >Anyone have a sweet setup that makes it all easier? > >Greg >-- >The Chiara String Quartet >http://www.chiaraquartet.net > > >
attached mail follows:
Jeffrey Iskandar Ahmad wrote:
> When i use this function mail(), mail was sent successfully but when > recipient receive the mail the date timezone is incorrect. It > displayed -0800 instead of +0800. Im from +0800. The timezone does not > display correctly. I have tried different servers but still the same. > And all clients get the wrong date. Im Using php 4.06 and win2k and > winnt4.
Under Windows, PHP sets Date header for mail if sendmail_path is _not_ defined. If you are using sendmail compatible progmram, this won't apply to your problem.
Looks like someone commented out following lines in sendmail.c (I'm refering PHP 4.0.7-dev source)
/* extern int _daylight; extern long _timezone; */
And _timezone is used as follows
(_timezone > 0) ? "+" : (_timezone < 0) ? "-" : "",zoneh,zonem)
They are probably commented out due to thread safe issue. I guess this bug is introduced when this change is made. (I'm just looking at source briefly and _not_ 100% sure.)
It is possible you have configuration problem also. Is your web server can get zoneinfo that you want? If not, it is possible having this problem even if there is _no_ bug.
Check your server configuration first. If you are sure that your server is ok, submit bug report and ask developers if this is a bug or not.If this is a bug, it will be fixed hopefully.
PS: You might want to ask W2K users to verify this problem. Post new article with title like "Possible mail() bug under Windows". Then Windows users will pay attention. I'm not a windows user :)
-- Yasuo Ohgaki
attached mail follows:
G'day Guys
Sorry, i should have explained it better. What i want to do is grab 2 different lots of text from the same page. Say the page had this text
10am Some text 12pm Different text 2pm
I want to be able to grab from say 10am to 12pm and store it in $texta and then grab from 12pm to 2pm and store it in $textb - but with the script i've pasted below i can only grab one lot of text at a time! to grab 2 lots of text from the same page i have to have 2 scripts and in the end i've opened up and closed the page twice! Anyway, any help i can get will be much appreciated
This is the script i'm using <?
$GrabURL = "url.txt"; $GrabStart = "start"; $GrabEnd = "stop";
$file = fopen("$GrabURL", "r"); $rf = fread($file, 20000); $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing);
$printing[1] = str_replace("replacedatestamp", "withnewstamp", $printing[1]);
fclose($file); echo $printing[1];
?>
----- Original Message -----
From: "Dave" <dave
hawk-systems.com>
To: "Ben Quinn" <benquinn
optushome.com.au>; <php-general
lists.php.net>
Sent: Wednesday, August 22, 2001 10:57 PM
Subject: RE: [PHP] Web fetching script
> What response are you expecting, and what response are you getting? > > assuming your regex is working as expected, you are running it twice to receive > the same result into 2 different variables??? why not just copy the variable > after > > additionally, $printing is filled with the matches of your regex(10 of them > according to manual) as such you have to specify which element of $printing you > are wanting to print, or you will get the lovely "array" output > > I don't understand why the grab variables are there unless you need them later. > Without accounting for your regex... > > eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); > echo $printing[1]; > $printingb=$printing; > echo $printingb[1]; > > >I have a web fetching script that fetches text from an external URL and I > >would like to grab two lots of text at the same time - can anyone tell me > >why this isn't working? > > > ><? > > > >$GrabURL = "http://grabfile.html"; > >$GrabStart = "start"; > >$GrabEnd = "stop"; > > > >$file = fopen("$GrabURL", "r"); > > > >$rf = fread($file, 20000); > > > >$grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); > > > >echo $printing; > > > >rewind($rf); > > > >$grab2 = eregi("$GrabStart(.*)$GrabEnd", $rf, $printingb); > > > >echo $printingb; > > > >fclose($file); > > > >?> > > > > >
attached mail follows:
On Mon, 27 Aug 2001 17:10, Ben Quinn wrote: > G'day Guys > > Sorry, i should have explained it better. What i want to do is grab 2 > different lots of text from the same page. Say the page had this text > > 10am > Some text > 12pm > Different text > 2pm > > I want to be able to grab from say 10am to 12pm and store it in $texta > and then grab from 12pm to 2pm and store it in $textb - but with the > script i've pasted below i can only grab one lot of text at a time! to > grab 2 lots of text from the same page i have to have 2 scripts and in > the end i've opened up and closed the page twice! Anyway, any help i > can get will be much appreciated > > This is the script i'm using > <? > > $GrabURL = "url.txt"; > $GrabStart = "start"; > $GrabEnd = "stop"; > > $file = fopen("$GrabURL", "r"); > $rf = fread($file, 20000); > $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); > > $printing[1] = str_replace("replacedatestamp", "withnewstamp", > $printing[1]);
Here, reset your start and finish criteria and do the eregi again, assigning the result to $grab2. > > fclose($file); > echo $printing[1]; > > ?>
Unless I'm missing what you're trying to do, of course.
-- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIAManure Occurs.
attached mail follows:
You could do this if your $GrabStart and $GrabStop are ALLWAYS the same (Like: ###START### 10pm Blah ###STOP### ###START### 12pm Blahblah ###STOP### )
$file = file("url.txt"); $str = join("\n", $file); // You can use whatever to join the rows
$GrabStart = "###START###"; $GrabEnd = "###STOP###";
then use preg_match_all() to match everything between $GrabStart and $GrabStop.
Hopefully this helped you out.
-----Original Message-----
From: Ben Quinn [mailto:benquinn
optushome.com.au]
Sent: 27. elokuuta 2001 10:41
To: Dave; php-general
lists.php.net
Subject: Re: [PHP] Web fetching script
G'day Guys
Sorry, i should have explained it better. What i want to do is grab 2 different lots of text from the same page. Say the page had this text
10am Some text 12pm Different text 2pm
I want to be able to grab from say 10am to 12pm and store it in $texta and then grab from 12pm to 2pm and store it in $textb - but with the script i've pasted below i can only grab one lot of text at a time! to grab 2 lots of text from the same page i have to have 2 scripts and in the end i've opened up and closed the page twice! Anyway, any help i can get will be much appreciated
This is the script i'm using <?
$GrabURL = "url.txt"; $GrabStart = "start"; $GrabEnd = "stop";
$file = fopen("$GrabURL", "r"); $rf = fread($file, 20000); $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing);
$printing[1] = str_replace("replacedatestamp", "withnewstamp", $printing[1]);
fclose($file); echo $printing[1];
?>
----- Original Message -----
From: "Dave" <dave
hawk-systems.com>
To: "Ben Quinn" <benquinn
optushome.com.au>; <php-general
lists.php.net>
Sent: Wednesday, August 22, 2001 10:57 PM
Subject: RE: [PHP] Web fetching script
> What response are you expecting, and what response are you getting? > > assuming your regex is working as expected, you are running it twice to receive > the same result into 2 different variables??? why not just copy the variable > after > > additionally, $printing is filled with the matches of your regex(10 of them > according to manual) as such you have to specify which element of $printing you > are wanting to print, or you will get the lovely "array" output > > I don't understand why the grab variables are there unless you need them later. > Without accounting for your regex... > > eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); > echo $printing[1]; > $printingb=$printing; > echo $printingb[1]; > > >I have a web fetching script that fetches text from an external URL and I > >would like to grab two lots of text at the same time - can anyone tell me > >why this isn't working? > > > ><? > > > >$GrabURL = "http://grabfile.html"; > >$GrabStart = "start"; > >$GrabEnd = "stop"; > > > >$file = fopen("$GrabURL", "r"); > > > >$rf = fread($file, 20000); > > > >$grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); > > > >echo $printing; > > > >rewind($rf); > > > >$grab2 = eregi("$GrabStart(.*)$GrabEnd", $rf, $printingb); > > > >echo $printingb; > > > >fclose($file); > > > >?> > > > > >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
G'day David, Niklas
As usual i'm in way over my head so i'm going to be a real pain and ask for more help
Niklas, unfortunately the start and stop points change constantly, i'm hoping to get around this by using the substr() function - luckily the format (in tables) stays the same
My main objective is for the file to be read once only, by the time i'm finished i'll probably be grabbing 20-30 different areas of text/numbers from a file, and i'm paying for anything over 1gig downloaded from my account each month, so it could end up quite expensive. This is an example of the file i'm grabbing from
http://www.arl.noaa.gov/data/ready/usr/897_profile.txt
David, i couldn't get what you said to work - any chance of a quick example? :-)
----- Original Message -----
From: "David Robley" <huntsman
www.nisu.flinders.edu.au>
To: "Ben Quinn" <benquinn
optushome.com.au>; <php-general
lists.php.net>
Sent: Monday, August 27, 2001 5:58 PM
Subject: Re: [PHP] Web fetching script
> On Mon, 27 Aug 2001 17:10, Ben Quinn wrote: > > G'day Guys > > > > Sorry, i should have explained it better. What i want to do is grab 2 > > different lots of text from the same page. Say the page had this text > > > > 10am > > Some text > > 12pm > > Different text > > 2pm > > > > I want to be able to grab from say 10am to 12pm and store it in $texta > > and then grab from 12pm to 2pm and store it in $textb - but with the > > script i've pasted below i can only grab one lot of text at a time! to > > grab 2 lots of text from the same page i have to have 2 scripts and in > > the end i've opened up and closed the page twice! Anyway, any help i > > can get will be much appreciated > > > > This is the script i'm using > > <? > > > > $GrabURL = "url.txt"; > > $GrabStart = "start"; > > $GrabEnd = "stop"; > > > > $file = fopen("$GrabURL", "r"); > > $rf = fread($file, 20000); > > $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); > > > > $printing[1] = str_replace("replacedatestamp", "withnewstamp", > > $printing[1]); > > Here, reset your start and finish criteria and do the eregi again, > assigning the result to $grab2. > > > > fclose($file); > > echo $printing[1]; > > > > ?> > > Unless I'm missing what you're trying to do, of course. > > -- > David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc > CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA > > Manure Occurs.
attached mail follows:
That file doesn't exist. Put it there again so I can take a look at it. And pls notify me when it's there. :)
Niklas
-----Original Message-----
From: Ben Quinn [mailto:benquinn
optushome.com.au]
Sent: 27. elokuuta 2001 11:41
To: Php-General
Cc: Niklas Lampén; huntsman
www.nisu.flinders.edu.au
Subject: Re: [PHP] Web fetching script
G'day David, Niklas
As usual i'm in way over my head so i'm going to be a real pain and ask for more help
Niklas, unfortunately the start and stop points change constantly, i'm hoping to get around this by using the substr() function - luckily the format (in tables) stays the same
My main objective is for the file to be read once only, by the time i'm finished i'll probably be grabbing 20-30 different areas of text/numbers from a file, and i'm paying for anything over 1gig downloaded from my account each month, so it could end up quite expensive. This is an example of the file i'm grabbing from
http://www.arl.noaa.gov/data/ready/usr/897_profile.txt
David, i couldn't get what you said to work - any chance of a quick example? :-)
----- Original Message -----
From: "David Robley" <huntsman
www.nisu.flinders.edu.au>
To: "Ben Quinn" <benquinn
optushome.com.au>; <php-general
lists.php.net>
Sent: Monday, August 27, 2001 5:58 PM
Subject: Re: [PHP] Web fetching script
> On Mon, 27 Aug 2001 17:10, Ben Quinn wrote: > > G'day Guys > > > > Sorry, i should have explained it better. What i want to do is grab 2 > > different lots of text from the same page. Say the page had this text > > > > 10am > > Some text > > 12pm > > Different text > > 2pm > > > > I want to be able to grab from say 10am to 12pm and store it in $texta > > and then grab from 12pm to 2pm and store it in $textb - but with the > > script i've pasted below i can only grab one lot of text at a time! to > > grab 2 lots of text from the same page i have to have 2 scripts and in > > the end i've opened up and closed the page twice! Anyway, any help i > > can get will be much appreciated > > > > This is the script i'm using > > <? > > > > $GrabURL = "url.txt"; > > $GrabStart = "start"; > > $GrabEnd = "stop"; > > > > $file = fopen("$GrabURL", "r"); > > $rf = fread($file, 20000); > > $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing); > > > > $printing[1] = str_replace("replacedatestamp", "withnewstamp", > > $printing[1]); > > Here, reset your start and finish criteria and do the eregi again, > assigning the result to $grab2. > > > > fclose($file); > > echo $printing[1]; > > > > ?> > > Unless I'm missing what you're trying to do, of course. > > -- > David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc > CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA > > Manure Occurs.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Hi
Do anyone know, how i define the "width", "height" etc. parameters in PDFlib functions in PHP? Is it in cm, pixels, inch? Or?
Anyone know?
I need to generate printingfiles, so I hope I can use cm or sometime like that :o)
Regards,
Johan
attached mail follows:
It's postscript points, I believe... 72 points per inch.
So, an 8.5x11 page is 612x792 points large.
--Matt
-----Original Message-----
From: Johan Holst Nielsen [mailto:johan
1way2print.net]
Sent: Monday, August 27, 2001 3:59 AM
To: php-general
lists.php.net
Cc: php-dev
lists.php.net
Subject: [PHP] Question about PDF lib.
Hi
Do anyone know, how i define the "width", "height" etc. parameters in PDFlib functions in PHP? Is it in cm, pixels, inch? Or?
Anyone know?
I need to generate printingfiles, so I hope I can use cm or sometime like that :o)
Regards,
Johan
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
I would suggest looking for a real *Support Forum* or http://www.pdflib.com/
>Do anyone know, how i define the "width", "height" etc. parameters in PDFlib >functions in PHP? Is it in cm, pixels, inch? Or?
attached mail follows:
Try http://groups.yahoo.com/pdflib/
----- Original Message -----
From: "Criegern, Phillipp von (PDV)" <CriegeP
BP.com>
To: <johan
1way2print.net>; <php-general
lists.php.net>
Cc: <php-dev
lists.php.net>
Sent: Monday, August 27, 2001 6:12 PM
Subject: [PHP] RE: [PHP-DEV] Question about PDF lib.
> I would suggest looking for a real *Support Forum* or
http://www.pdflib.com/
>
> >Do anyone know, how i define the "width", "height" etc. parameters in
> PDFlib
> >functions in PHP? Is it in cm, pixels, inch? Or?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
How to sort search results of php-mysql site by relevance? <>< <>< <>< <>< God is our provider ><> ><> ><> ><> http://www.body-builders.org
attached mail follows:
In article <3B8A1D6A.4295.2947D
localhost>, bodybuilders
comic.com (Yura)
wrote:
> How to sort search results of php-mysql site by relevance?
See the mysql manual's chapter on FULLTEXT indexes.
-- CC
attached mail follows:
Fanda wrote:
> Hi, > can I use some php funciton to convert strings to charset iso-8859-2? Do > exists some function to detect encoding of string?
Try multi-byte string module. It can detect encoding and convert one from another. Look for PHP manual for details. You might also interested in iconv module. It does not detect encoding, though.
-- Yasuo Ohgaki_________________________________________________________ Do You Yahoo!? Get your free
yahoo.com address at http://mail.yahoo.com
attached mail follows:
Dear all I'm writing a script which will greb the data from a user input form into a text file (txt file), but the problem is that when the data had passed to the txt file, there will be some thing like the <br> and black square appear inside the file. This is affecting to display the data from that txt file to the text box in (input box). Is there anyway that i can do to avoid grebing the <br> from txt file to my input box's value? or anyway that i can delete the <br> when the data is greb from input box to txt file??
Thanks a lot
Jack
jack
nedcor.com
attached mail follows:
Ralph Deffke wrote:
> does anybody know a resource where i can get apc for windows? or does > anybody have experienced how to compile APC under wimdows and include it
AFAIK, it does not compile under Windows now. Help would be appreciated by the developers, I think.
-- Yasuo Ohgaki_________________________________________________________ Do You Yahoo!? Get your free
yahoo.com address at http://mail.yahoo.com
attached mail follows:
On Saturday 25 August 2001 14:44, Saurabh Kapoor wrote: > I am a C programmer, looking to migrate some code to PHP (Unusual, but > my colleagues request it). > > Can someone tell me the size (in bytes) of the type int in PHP.
It's sizeof (int), i.e. the same size as an int in C on that platform. Typically that's 32 or 64 bits
> I need a 16 bit (2 byte) storage unit (I use a lot of bitwise > operations)
Should be trivial to use larger ints for that.
-- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/)The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka", but "That's funny..."
- Isaac Asimov
attached mail follows:
oh yeah, that's true.
Ok, i made a dir 'testdir' with permissions 777. Still i it gives the same error. Warning: error opening /web/testdir/test.html in ................
-Maarten
----- Original Message -----
From: "Chris Lambert" <chris
php.net>
To: "MBK" <mbk
tmteam.nl>
Cc: <php-general
lists.php.net>
Sent: Monday, August 27, 2001 2:54 AM
Subject: Re: [PHP] ftp_get
> No, the permission problem would be local (hence the error referencing the
> destination file). It has nothing to do with FTP permissions, but the web
> server's permission to write the file to /web/.
>
> /* Chris Lambert, CTO - chris
whitecrown.net
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.net
> */
>
> ----- Original Message -----
> From: MBK <mbk
tmteam.nl>
> To: <php-general
lists.php.net>
> Sent: Sunday, August 26, 2001 8:23 PM
> Subject: Re: [PHP] ftp_get
>
>
> | The user i use to login has full permissions
> | When i login with an ordinary ftp client using that user, then i can do
> | anything.
> | I think when there is a permission problem the error would say that.
> |
> |
> |
> | ----- Original Message -----
> | From: "Chris Lambert" <chris
php.net>
> | To: "MBK" <mbk
tmteam.nl>
> | Cc: <php-general
lists.php.net>
> | Sent: Sunday, August 26, 2001 11:50 PM
> | Subject: Re: [PHP] ftp_get
> |
> |
> | > It looks like you might not have permissions set for the web server to
> | > create files in /web/...
> | >
> | > If you know the names of the files which will be transferred ahead of
> | time,
> | > you can manually create them from FTP or your shell, then chmod them
to
> | 777.
> | > Otherwise you might be better off creating a folder (/web/ftp/) and
> | chmoding
> | > the folder itself to 777.
> | >
> | > /* Chris Lambert, CTO - chris
whitecrown.net
> | > WhiteCrown Networks - More Than White Hats
> | > Web Application Security - www.whitecrown.net
> | > */
> | >
> | > ----- Original Message -----
> | > From: MBK <mbk
tmteam.nl>
> | > To: <php-general
lists.php.net>
> | > Sent: Sunday, August 26, 2001 2:51 PM
> | > Subject: [PHP] ftp_get
> | >
> | >
> | > How exactly does ftp_get work?
> | >
> | > I tried it several times, but it always said something like
> | > Warning: error opening /web/destinationfile.html in .scriptlocation..
on
> | > line 38
> | >
> | > line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY);
> | >
> | > Can someone please help me with this.
> | >
> | > -Maarten
> | >
> | >
> |
> |
> |
> | --
> | PHP General Mailing List (http://www.php.net/)
> | To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> | For additional commands, e-mail: php-general-help
lists.php.net
> | To contact the list administrators, e-mail: php-list-admin
lists.php.net
> |
> |
> |
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Shell PHP scripts will start with the line
#!/path/to/php -q
Regards
Jon
-- Jon Farmer O?O¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to pgpkeybctech.co.uk
-----Original Message----- From: George E. Papadakis [mailto:georgep
phaistosnetworks.gr] Sent: 26 August 2001 18:36 To: PHP List Subject: [PHP] Shell or http?
Hi,
Is there any way to identify if a php script is running through a shell or web? Thanks in advance.
-- GeorgeP
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
Note that I have problems with shellscripts written on Windows the SCP to Linux. They don't run a t first time. So I've to open them with a editor(i prefer joe), remove Ms (newlines) after -q to <?php open tag. After that everythings works fine.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Jon Farmer" <jonfarmer
enta.net>
To: "George E. Papadakis" <georgep
phaistosnetworks.gr>; "PHP List" <php-general
lists.php.net>
Sent: Monday, August 27, 2001 1:11 PM
Subject: RE: [PHP] Shell or http?
> Shell PHP scripts will start with the line
>
> #!/path/to/php -q
>
> Regards
>
> Jon
>
> --
> Jon Farmer O?O¬
> Systems Programmer, Entanet www.enta.net
> Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
> PGP Key available, send blank email to pgpkey
bctech.co.uk
>
> -----Original Message-----
> From: George E. Papadakis [mailto:georgep
phaistosnetworks.gr]
> Sent: 26 August 2001 18:36
> To: PHP List
> Subject: [PHP] Shell or http?
>
>
> Hi,
>
> Is there any way to identify if a php script is running through a shell or
> web?
> Thanks in advance.
>
>
> -- GeorgeP
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Good Morning....
I am working with PHP 4.0.6, and I do not obtain to send given of the page for the printer. I use function " PRINTER_OPEN() ", I make the manual in accordance with, exactly thus it gives an error to me of indefinite function. What it can be? Fatal error: Call you undefined function:printer_open()
$print = printer_open(); $print = printer_open("LPT1 "); printer_write($print, " Test of printer "); printer_write($print, " Test of printer "); printer_write($print, " Test of printer "); $print = printer_close();
e this error it even gives to me with function " PRINTER_WRITE() ", could give tips of that he can be happening.
Yours truly.
Daniel
attached mail follows:
<Original message>
From: Daniel Antonio de Lima <daniel.lima
campinet.sp.gov.br>
Date: Tue, Aug 27, 2019 at 07:55:33AM -0300
Message-ID: <001d01d55cc5$f38cc7a0$8f0010ac
campinet.sp.gov.br>
Subject: [PHP] Print..
> Good Morning.... > > I am working with PHP 4.0.6, and I do not obtain to send given of the page > for the printer. I use function " PRINTER_OPEN() ", I make the manual in > accordance with, exactly thus it gives an error to me of indefinite > function. What it can be? > Fatal error: Call you undefined function:printer_open() > > $print = printer_open(); > $print = printer_open("LPT1 "); > printer_write($print, " Test of printer "); > printer_write($print, " Test of printer "); > printer_write($print, " Test of printer "); > $print = printer_close(); > > e this error it even gives to me with function " PRINTER_WRITE() ", could > give tips of that he can be happening. > > Yours truly. > > Daniel > >
</Original message>
<Reply>
Don't know which OS you're using, but the printer-functions only work with Windows:
http://www.php.net/manual/en/ref.printer.php
</Reply>
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
I'm not familiar with this module, which only works under Windows, but an undefined function usually means an extension is not loaded or available.
I notice in php.ini-dist that there is a line
extension=php_printer.dll
so you'll want to check that your php.ini file has that and it's not commented out.
- Tim
On Tue, 2019-08-27 at 06:55, Daniel Antonio de Lima wrote: > Fatal error: Call you undefined function:printer_open()
attached mail follows:
works only on windows and you must have the printer extension installed and configured in your php.ini file
At 13:02 27/08/01, * R&zE: wrote:
><Original message>
>From: Daniel Antonio de Lima <daniel.lima
campinet.sp.gov.br>
>Date: Tue, Aug 27, 2019 at 07:55:33AM -0300
>Message-ID: <001d01d55cc5$f38cc7a0$8f0010ac
campinet.sp.gov.br>
>Subject: [PHP] Print..
>
> > Good Morning....
> >
> > I am working with PHP 4.0.6, and I do not obtain to send given of the page
> > for the printer. I use function " PRINTER_OPEN() ", I make the manual in
> > accordance with, exactly thus it gives an error to me of indefinite
> > function. What it can be?
> > Fatal error: Call you undefined function:printer_open()
> >
> > $print = printer_open();
> > $print = printer_open("LPT1 ");
> > printer_write($print, " Test of printer ");
> > printer_write($print, " Test of printer ");
> > printer_write($print, " Test of printer ");
> > $print = printer_close();
> >
> > e this error it even gives to me with function " PRINTER_WRITE() ", could
> > give tips of that he can be happening.
> >
> > Yours truly.
> >
> > Daniel
> >
> >
>
></Original message>
>
><Reply>
>
>Don't know which OS you're using, but the printer-functions only
>work with Windows:
>
>http://www.php.net/manual/en/ref.printer.php
>
></Reply>
>
>--
>
>* R&zE:
>
>
>-- »»»»»»»»»»»»»»»»»»»»»»»»
>-- Renze Munnik
>-- DataLink BV
>--
>-- E: renze
datalink.nl
>-- W: +31 23 5326162
>-- F: +31 23 5322144
>-- M: +31 6 21811143
>--
>-- Stationsplein 82
>-- 2011 LM HAARLEM
>-- Netherlands
>--
>-- http://www.datalink.nl
>-- ««««««««««««««««««««««««
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
the function printer_open() or printer_write() doesn't exist in php. I don't know where you saw those functions.
----- Original Message -----
From: "Daniel Antonio de Lima" <daniel.lima
campinet.sp.gov.br>
To: <php-general
lists.php.net>
Sent: Tuesday, August 27, 2019 12:55 PM
Subject: [PHP] Print..
Good Morning....
I am working with PHP 4.0.6, and I do not obtain to send given of the page for the printer. I use function " PRINTER_OPEN() ", I make the manual in accordance with, exactly thus it gives an error to me of indefinite function. What it can be? Fatal error: Call you undefined function:printer_open()
$print = printer_open(); $print = printer_open("LPT1 "); printer_write($print, " Test of printer "); printer_write($print, " Test of printer "); printer_write($print, " Test of printer "); $print = printer_close();
e this error it even gives to me with function " PRINTER_WRITE() ", could give tips of that he can be happening.
Yours truly.
Daniel
attached mail follows:
From the PHP manual (http://www.php.net/manual/en/ref.printer.php): These functions are only available under Windows 9.x, ME, NT4 and 2000. They have been added in PHP 4 (4.0.4).
Rudolf Visagie
rudolf
qedi.co.za
-----Original Message-----
From: MBK [mailto:mbk
cable.a2000.nl]
Sent: 27 August 2001 01:59
To: Daniel Antonio de Lima; php-general
lists.php.net
Subject: Re: [PHP] Print..
the function printer_open() or printer_write() doesn't exist in php. I don't know where you saw those functions.
----- Original Message -----
From: "Daniel Antonio de Lima" <daniel.lima
campinet.sp.gov.br>
To: <php-general
lists.php.net>
Sent: Tuesday, August 27, 2019 12:55 PM
Subject: [PHP] Print..
Good Morning....
I am working with PHP 4.0.6, and I do not obtain to send given of the page for the printer. I use function " PRINTER_OPEN() ", I make the manual in accordance with, exactly thus it gives an error to me of indefinite function. What it can be? Fatal error: Call you undefined function:printer_open()
$print = printer_open(); $print = printer_open("LPT1 "); printer_write($print, " Test of printer "); printer_write($print, " Test of printer "); printer_write($print, " Test of printer "); $print = printer_close();
e this error it even gives to me with function " PRINTER_WRITE() ", could give tips of that he can be happening.
Yours truly.
Daniel
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
<Original message>
From: MBK <mbk
cable.a2000.nl>
Date: Mon, Aug 27, 2001 at 01:59:10PM +0200
Message-ID: <008e01c12eef$ae7be0a0$3d1c8418
mbkomp>
Subject: Re: [PHP] Print..
> the function printer_open() or printer_write() doesn't exist in php. > I don't know where you saw those functions. >
</Original message>
<Reply>
Hello!!!!! Did you ever take the time to look at the manual? Or some previous posts?
http://www.php.net/manual/en/ref.printer.php
</Reply>
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
hi check this out before posting: http://php.net/manual/en/ref.printer.php windows specific functions regards
At 13:59 27/08/01, MBK wrote:
>the function printer_open() or printer_write() doesn't exist in php.
>I don't know where you saw those functions.
>
>----- Original Message -----
>From: "Daniel Antonio de Lima" <daniel.lima
campinet.sp.gov.br>
>To: <php-general
lists.php.net>
>Sent: Tuesday, August 27, 2019 12:55 PM
>Subject: [PHP] Print..
>
>
>Good Morning....
>
>I am working with PHP 4.0.6, and I do not obtain to send given of the page
>for the printer. I use function " PRINTER_OPEN() ", I make the manual in
>accordance with, exactly thus it gives an error to me of indefinite
>function. What it can be?
>Fatal error: Call you undefined function:printer_open()
>
>$print = printer_open();
>$print = printer_open("LPT1 ");
>printer_write($print, " Test of printer ");
>printer_write($print, " Test of printer ");
>printer_write($print, " Test of printer ");
>$print = printer_close();
>
>e this error it even gives to me with function " PRINTER_WRITE() ", could
>give tips of that he can be happening.
>
>Yours truly.
>
>Daniel
>
>
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
as I make to print of the page for the printer without using the button of the navigator, ito is, to print through a command php, could say which to me the command or function that I must use .
Daniel
----- Original Message -----
From: MBK <mbk
cable.a2000.nl>
To: Daniel Antonio de Lima <daniel.lima
campinet.sp.gov.br>;
<php-general
lists.php.net>
Sent: Monday, August 27, 2001 8:59 AM
Subject: Re: [PHP] Print..
> the function printer_open() or printer_write() doesn't exist in php.
> I don't know where you saw those functions.
>
> ----- Original Message -----
> From: "Daniel Antonio de Lima" <daniel.lima
campinet.sp.gov.br>
> To: <php-general
lists.php.net>
> Sent: Tuesday, August 27, 2019 12:55 PM
> Subject: [PHP] Print..
>
>
> Good Morning....
>
> I am working with PHP 4.0.6, and I do not obtain to send given of the page
> for the printer. I use function " PRINTER_OPEN() ", I make the manual in
> accordance with, exactly thus it gives an error to me of indefinite
> function. What it can be?
> Fatal error: Call you undefined function:printer_open()
>
> $print = printer_open();
> $print = printer_open("LPT1 ");
> printer_write($print, " Test of printer ");
> printer_write($print, " Test of printer ");
> printer_write($print, " Test of printer ");
> $print = printer_close();
>
> e this error it even gives to me with function " PRINTER_WRITE() ", could
> give tips of that he can be happening.
>
> Yours truly.
>
> Daniel
>
>
>
>
>
>
attached mail follows:
Oops, my bad.
I always check bigmanual.html, also from php.net couldn't find it in there.
----- Original Message -----
From: "hassan el forkani" <webmaster
warmafrica.com>
To: "MBK" <mbk
cable.a2000.nl>; "Daniel Antonio de Lima"
<daniel.lima
campinet.sp.gov.br>; <php-general
lists.php.net>
Sent: Monday, August 27, 2001 1:11 PM
Subject: Re: [PHP] Print..
>
> > hi
> > check this out before posting: http://php.net/manual/en/ref.printer.php
> > windows specific functions
> > regards
> >
> > At 13:59 27/08/01, MBK wrote:
> > >the function printer_open() or printer_write() doesn't exist in php.
> > >I don't know where you saw those functions.
> > >
> > >----- Original Message -----
> > >From: "Daniel Antonio de Lima" <daniel.lima
campinet.sp.gov.br>
> > >To: <php-general
lists.php.net>
> > >Sent: Tuesday, August 27, 2019 12:55 PM
> > >Subject: [PHP] Print..
> > >
> > >
> > >Good Morning....
> > >
> > >I am working with PHP 4.0.6, and I do not obtain to send given of the
> page
> > >for the printer. I use function " PRINTER_OPEN() ", I make the manual
in
> > >accordance with, exactly thus it gives an error to me of indefinite
> > >function. What it can be?
> > >Fatal error: Call you undefined function:printer_open()
> > >
> > >$print = printer_open();
> > >$print = printer_open("LPT1 ");
> > >printer_write($print, " Test of printer ");
> > >printer_write($print, " Test of printer ");
> > >printer_write($print, " Test of printer ");
> > >$print = printer_close();
> > >
> > >e this error it even gives to me with function " PRINTER_WRITE() ",
could
> > >give tips of that he can be happening.
> > >
> > >Yours truly.
> > >
> > >Daniel
> > >
> > >
> > >
> > >
> > >
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > >For additional commands, e-mail: php-general-help
lists.php.net
> > >To contact the list administrators, e-mail:
php-list-admin
lists.php.net
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
>
attached mail follows:
<Original message>
From: Daniel Antonio de Lima <daniel.lima
campinet.sp.gov.br>
Date: Tue, Aug 27, 2019 at 10:03:31AM -0300
Message-ID: <00c001d55cd7$d37e6e20$8f0010ac
campinet.sp.gov.br>
Subject: Re: [PHP] Print..
> as I make to print of the page for the printer without using the button of > the navigator, ito is, to print through a command php, could say which to me > the command or function that I must use . > > Daniel
</Original message>
<Reply>
Where do you want to print, client-side or server-side? 'Cause if you want to print client-side it's real easy; using PHP you can't print client-side, you'll have to use JavaScript.
</Reply>
--* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze
datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««
attached mail follows:
Geoff Caplan said:
> I would just like to highlight an issue which I feel has a negative effect > on the acceptance of PHP.
> This is the difficulty of finding, downloading, compiling and installing the > various PHP libraries not included in the core distribution.
Amen.
As a member of a back-to-front web-design firm, we have resorted to hosting many of our customers in-house simply because the ISP that is currently hosting them either refuses to update accessory libraries, refuses us accessibility to update them ourselves, and/or treats the entire idea of their deficient system as incredulous.
As a result, we have had certain projects that we had originally budgeted 2 days development and implementation time blow up into 2 month every-other-day negotiation with a hostile ISP complete with phone tag, additional agreement signing, and ultimately domain name transferring (which we should have done in the first place).
One thing that I am _shocked_ has fallen by the wayside is payflow pro implementation. Until a short while ago, everyone I spoke with at Verisign tech support about PHP SDK implementation treated PHP like a dirty word and refused to help with it. Messages on php-general were answered by numerous "uh, yeah -- tell me how you do it when you find out" with conflicting answers from those who had an idea on how to get it to work. There are plenty of work-arounds if you're running your own show, but if you are dealing with a semi-hostile ISP, you are in for it.
The ISP wouldn't give us info on where the CERTS were stored (because of security issues they said) so we couldn't put an environment variable pointing to them and use an exec() or passthru() to make it work either.
And then the SSL conflicts with payflow pro SDK were laughable. How else would you want to use payflow pro except under an SSL environment?
Don't get me wrong, I'm a *rabid* supporter of PHP and if not for it I'd certainly not be where I am right now. :-)
My $0.02,
Dan Harrington
> -----Original Message-----
> From: Geoff Caplan [mailto:geoff
productivity.co.uk]
> Sent: Monday, August 27, 2001 4:26 AM
> To: php-general
lists.php.net
> Subject: [PHP] Re: The future of PHP
>
>
> Hi folks
>
> I would just like to highlight an issue which I feel has a negative effect
> on the acceptance of PHP.
>
> This is the difficulty of finding, downloading, compiling and installing the
> various PHP libraries not included in the core distribution. Many quite
> important libraries seem to be persoanl projects which are not supported by
> the core team, and are hosted on sites that can be down for days at a time.
> On Linux, many still require a re-compile, there is no documentation
> standard, and no central repository. This compares badly with platforms such
> as Perl and Java, who tackled this issue long ago.
>
> My own ISP, who is one of the few to offer all PHP & MySQL upgrades as they
> are released, complains about this bitterly. The upshot is that shared
> hosting rarely offers more than the core functionality, which can be very
> restrictive. Setting up your own server can be daunting and time consuming -
> and the commercial distros such as Zend and Nusphere don't seem to have
> tackled the library issue either.
>
> In terms of acceptability in the market, I suspect that this creates a
> negative impression. It seems to me that this is a quite central issue if
> PHP is to be perceived as a mature platform for building mission critical
> systems. I do hope that the development team, and those such as Zend who are
> committed to the future of PHP give this some attention.
>
> Geoff Caplan
>
attached mail follows:
I love PHP, but for the following reason it could be the death of it. All the PHP intellectuals stand up, get together, and solve this problem, or at least give us some reassurance. (I'm only a newbie after all). :)
-----Original Message-----
From: Dan Harrington [mailto:dan
tudan.net]
Sent: Monday, August 27, 2001 6:11 AM
To: Geoff Caplan; php-general
lists.php.net
Subject: [PHP] Re: The future of PHP -- accessory libraries
Geoff Caplan said:
> I would just like to highlight an issue which I feel has a negative effect > on the acceptance of PHP.
> This is the difficulty of finding, downloading, compiling and installing the > various PHP libraries not included in the core distribution.
Amen.
As a member of a back-to-front web-design firm, we have resorted to hosting many of our customers in-house simply because the ISP that is currently hosting them either refuses to update accessory libraries, refuses us accessibility to update them ourselves, and/or treats the entire idea of their deficient system as incredulous.
As a result, we have had certain projects that we had originally budgeted 2 days development and implementation time blow up into 2 month every-other-day negotiation with a hostile ISP complete with phone tag, additional agreement signing, and ultimately domain name transferring (which we should have done in the first place).
One thing that I am _shocked_ has fallen by the wayside is payflow pro implementation. Until a short while ago, everyone I spoke with at Verisign tech support about PHP SDK implementation treated PHP like a dirty word and refused to help with it. Messages on php-general were answered by numerous "uh, yeah -- tell me how you do it when you find out" with conflicting answers from those who had an idea on how to get it to work. There are plenty of work-arounds if you're running your own show, but if you are dealing with a semi-hostile ISP, you are in for it.
The ISP wouldn't give us info on where the CERTS were stored (because of security issues they said) so we couldn't put an environment variable pointing to them and use an exec() or passthru() to make it work either.
And then the SSL conflicts with payflow pro SDK were laughable. How else would you want to use payflow pro except under an SSL environment?
Don't get me wrong, I'm a *rabid* supporter of PHP and if not for it I'd certainly not be where I am right now. :-)
My $0.02,
Dan Harrington
> -----Original Message-----
> From: Geoff Caplan [mailto:geoff
productivity.co.uk]
> Sent: Monday, August 27, 2001 4:26 AM
> To: php-general
lists.php.net
> Subject: [PHP] Re: The future of PHP
>
>
> Hi folks
>
> I would just like to highlight an issue which I feel has a negative effect
> on the acceptance of PHP.
>
> This is the difficulty of finding, downloading, compiling and installing
the
> various PHP libraries not included in the core distribution. Many quite
> important libraries seem to be persoanl projects which are not supported
by
> the core team, and are hosted on sites that can be down for days at a
time.
> On Linux, many still require a re-compile, there is no documentation
> standard, and no central repository. This compares badly with platforms
such
> as Perl and Java, who tackled this issue long ago.
>
> My own ISP, who is one of the few to offer all PHP & MySQL upgrades as
they
> are released, complains about this bitterly. The upshot is that shared
> hosting rarely offers more than the core functionality, which can be very
> restrictive. Setting up your own server can be daunting and time
consuming -
> and the commercial distros such as Zend and Nusphere don't seem to have
> tackled the library issue either.
>
> In terms of acceptability in the market, I suspect that this creates a
> negative impression. It seems to me that this is a quite central issue if
> PHP is to be perceived as a mature platform for building mission critical
> systems. I do hope that the development team, and those such as Zend who
are
> committed to the future of PHP give this some attention.
>
> Geoff Caplan
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
> > if ($var){ > > $tmp = explode("<|>",$vars); > > for ($i = 0; $i < sizeof($tmp); $i++){ > > $struct[$i] = array(); > > You really don't need this line... > > > $tmp2 = explode("<||>",$tmp[$i]); > > for ($j = 0; $j < sizeof($tmp2);$j++){ > > Try assigning $tmp3 = $tmp2[$j] and using $tmp3 below. > > Also, var_dumb($tmp3) and see what it is.
It's a string, as it schould be.
> > > $struct[$i][$j] = explode("<|||>",$tmp2[$j]); > > } > > } > > } > The error is still there.
attached mail follows:
I hope someone has got solution for this:
I'm trying to write a script which will watermark a jpeg file with png logo, and output the resulting jpeg to a file. Unfortunately, whatever I do, I'm unable to get transparent color in png to disappear, by any means.
the png file is 8bit, jpeg is true color; Am I doing something wrong? have a look:
<?
$sourcefile="test2.jpg"; $insertfile="peoplestamp.png"; $targetfile="test.jpg"; $transition=50;
$insertfile_id = imageCreateFromPNG($insertfile); $sourcefile_id = imageCreateFromJPEG($sourcefile);
$sourcefile_width=imageSX($sourcefile_id); $sourcefile_height=imageSY($sourcefile_id); $insertfile_width=imageSX($insertfile_id); $insertfile_height=imageSY($insertfile_id);
$dst = imageCreateTrueColor($sourcefile_width,$sourcefile_height); imagealphablending($dst,TRUE); imagecopy($dst,$sourcefile_id,0,0,0,0,$sourcefile_width,$sourcefile_height);
$aaa=imagecolorresolvealpha($insertfile_id,255,255,255,255);
imagecolortransparent($insertfile_id,$aaa);
imageCopyMerge($dst, $insertfile_id,0,0,0,0,$insertfile_width,$insertfile_height,$transition); imagepng ($dst,"$targetfile");
?> <img src="<?=$targetfile?>" border=0>
Best regards,
-- Vahan Yerkanian vp.technicalabideweb.com Vice President, Design & Development Website
http://www.abideweb.com/ AbideWeb Technologies, LLC Phone +3741 238650 | Mobile +3749 416358
attached mail follows:
How about Mono from Ximian?
--Julio Nobrega
A hora está chegando: http://toca.sourceforge.net "Reductor" <sjdtmv
tpg.com.au> wrote in message news:008001c12df9$e96806e0$eb00a8c0
mum... > Just looking over the achives of the .net show(was msdn show), and with .net > its got some really great features.. > > So i am going to get a hold of .net and try it out... > > - James "ReDucTor" Mitchell >
attached mail follows:
Mind giving some more infro on this :D ?!?
----- Original Message -----
From: "Julio Nobrega Trabalhando" <inerteARROBAhotmail.com
pb1.pair.com>
To: <php-general
lists.php.net>
Sent: Monday, August 27, 2001 10:36 PM
Subject: [PHP] Re: Thinking about going to ASP
> How about Mono from Ximian?
>
> --
>
> Julio Nobrega
>
> A hora está chegando:
> http://toca.sourceforge.net
> "Reductor" <sjdtmv
tpg.com.au> wrote in message
> news:008001c12df9$e96806e0$eb00a8c0
mum...
> > Just looking over the achives of the .net show(was msdn show), and with
> .net
> > its got some really great features..
> >
> > So i am going to get a hold of .net and try it out...
> >
> > - James "ReDucTor" Mitchell
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
Several articles. Basically is an open-source answer to .NET.
http://www.newsforge.com/search.pl?query=mono
--Julio Nobrega
A hora está chegando: http://toca.sourceforge.net "Reductor" <sjdtmv
tpg.com.au> wrote in message news:003901c12ef8$fd9a4ec0$eb00a8c0
mum... Mind giving some more infro on this :D ?!? ----- Original Message ----- From: "Julio Nobrega Trabalhando" <inerteARROBAhotmail.com
pb1.pair.com> To: <php-general
lists.php.net> Sent: Monday, August 27, 2001 10:36 PM Subject: [PHP] Re: Thinking about going to ASP
> How about Mono from Ximian? > > -- > > Julio Nobrega > > A hora está chegando: > http://toca.sourceforge.net > "Reductor" <sjdtmv
tpg.com.au> wrote in message > news:008001c12df9$e96806e0$eb00a8c0
mum... > > Just looking over the achives of the .net show(was msdn show), and with > .net > > its got some really great features.. > > > > So i am going to get a hold of .net and try it out... > > > > - James "ReDucTor" Mitchell > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net > For additional commands, e-mail: php-general-help
lists.php.net > To contact the list administrators, e-mail: php-list-admin
lists.php.net >
attached mail follows:
Hi all,
Can anybody help me with this authentication problem?
Clients can log in using a html form on my site. When they log in their username and password are checked in a mysql database. Then they are forwarded to a url, a directory on my site also coming from the db. This directory should not be public of couse, so I did a chmod 744 on the clients directory.
Anybody has any ideas? I prefer not to use the standard window popup thing for authentication. I checked the php manual, but there is not much info on plain html forms on the subject, or maybe it is my English...:-)
Regards, Wilbert
-------------------------
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
info
pdd.nl
-------------------------
attached mail follows:
Hi Wilbert,
what I have done in the past (probably not the best way) is to stick a function call in the top of all pages in that directory which calls a function that checks for a cookie to see that the person viewing has actually logged in.
I hope that helps. Abe
On Mon, 27 Aug 2001, Wilbert Enserink wrote:
> Hi all,
>
>
> Can anybody help me with this authentication problem?
>
> Clients can log in using a html form on my site. When they log in their username and password are checked in a mysql database. Then they are forwarded to a url, a directory on my site also coming from the db. This directory should not be public of couse, so I did a chmod 744 on the clients directory.
>
> Anybody has any ideas? I prefer not to use the standard window popup thing for authentication.
> I checked the php manual, but there is not much info on plain html forms on the subject, or maybe it is my English...:-)
>
>
>
> Regards, Wilbert
>
> -------------------------
> Pas de Deux
> Van Mierisstraat 25
> 2526 NM Den Haag
> tel 070 4450855
> fax 070 4450852
> http://www.pdd.nl
> info
pdd.nl
> -------------------------
attached mail follows:
hi!
I ever solve this problem with sessions... when a user does the login, I have
session_start(); session_register("allowed"); $allowed = true;
and on the top of all the other sites, where just "special" users are allowed to go in, there is a
include ("checkAllowed.php");
checkAllowed.php just contains: if (!$allowed) die ("Access denied");
I hope I could help you... if so - or if you have got questions, please feel free to email me!
yours,
gert mellak
==================
eMail: gert
mellak.com
http://www.mellak.com
Wilbert Enserink <wilbert
pdd.nl> schrieb in im Newsbeitrag:
006601c12ef5$aff7c380$0301a8c0
168.1.1...
Hi all,
Can anybody help me with this authentication problem?
Clients can log in using a html form on my site. When they log in their username and password are checked in a mysql database. Then they are forwarded to a url, a directory on my site also coming from the db. This directory should not be public of couse, so I did a chmod 744 on the clients directory.
Anybody has any ideas? I prefer not to use the standard window popup thing for authentication. I checked the php manual, but there is not much info on plain html forms on the subject, or maybe it is my English...:-)
Regards, Wilbert
-------------------------
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
info
pdd.nl
-------------------------
attached mail follows:
I've also been having problems with trying to pass parameters in the path, using PHP as a CGI. I would hate to go into production with this site with page.php?query=value&query2=value2 type of URL's, but I've not been able to find a way to get page.php/value/value2 to work (throws Premature end of script headers).
If anyone has ANY suggestions about how to get this working with the CGI version, it would be most appreciated! :)
cheers, jaxon
> -----Original Message-----
> From: Rasmus Lerdorf [mailto:rasmus
php.net]
> Sent: Sunday, August 26, 2001 9:07 AM
> To: Anas Mughal
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] Error while passing parameters as path
>
>
> > Actually, I need to run as CGI because I have customized
> extensiont to PHP
> > that my hosting company will not imbed in their PHP-Apache module. I am
> > totally fine with that.
>
> Why don't you just dl() your extension into the module version?
>
> > Bottom line is that I need to run PHP as CGI.
> >
> > Is there a way for this work in that mode?
>
> I dunno. Has been so long since I have used the CGI version for direct
> web stuff. Play with it and figure it out.
>
> -Rasmus
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
<pre> <? $mem = "<pre>hello world\nI love you all!</pre>"; $re = "/<pre>(.+?)<\\/pre>/im";
preg_match_all($re, $mem, $match);
var_dump($match); ?> </pre>
and the output is: array(2) { [0]=> array(0) { } [1]=> array(0) { } }
if i remove the \n in the $mem var everything works okay.
attached mail follows:
I think that is the solution:
<? $mem = "<pre>hello world\nI love you all!</pre>"; $re = "/<pre>(.+?)<\\/pre>/is";
preg_match_all($re, $mem, $match);
var_dump($match); ?>
The modifier which will work for you is 's', not 'm'. Look at the manual at : http://www.php.net/manual/en/pcre.pattern.modifiers.php
This produces: array(2) { [0]=> array(1) { [0]=> string(16) "<pre>hello world" } [1]=> array(1) { [0]=> string(11) "hello world" } }
In this case it's better your pattern to be : "|<pre>(.+?)</pre>|is" / was changed to |, and there is no need to escape.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "_lallous" <elias_bachaalany
yahoo.com>
To: <php-general
lists.php.net>
Sent: Monday, August 27, 2001 5:43 PM
Subject: [PHP] PCRE Multiline modifier
> <pre>
> <?
> $mem = "<pre>hello world\nI love you all!</pre>";
> $re = "/<pre>(.+?)<\\/pre>/im";
>
> preg_match_all($re, $mem, $match);
>
> var_dump($match);
> ?>
> </pre>
>
> and the output is:
> array(2) {
> [0]=>
> array(0) {
> }
> [1]=>
> array(0) {
> }
> }
>
> if i remove the \n in the $mem var everything works okay.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
> -----Original Message-----
> From: Seb Frost [mailto:seb
raceshoot.com]
> Sent: Sunday, August 26, 2001 6:49 PM
> To: php-general
lists.php.net
> Subject: [PHP] What is it with _vti?
>
>
> I have these _vti_pvt _vti_cnf directories on my website.
> Why? I never put them there... can I delete them?
>
> I tried searching for this but it's impossible to search for
> since it seems a lot of website have these directories and it
> just comes up with them :-)
FrontPage droppings. *grin*
And yes, assuming you're not doing anything FrontPage-specific, you can safely remove them. (They will, of course, be recreated if you publish your site again using FrontPage.)
--- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer | at himself, for he shall never cease LeTourneau University | to be entertained." Longview, Texas, USA | -- John Powell
attached mail follows:
Before you drop them, noodle around a little bit and learn how much extra crap and duplication of your site FP drops on you. It's like a bloody seagull!
Miles
BTW - Don't drop them on the Windows machine where you do your FP work, the poor program won't be able to function without all its redundancies. Horrible thing! /mt
At 08:48 AM 8/27/01 -0500, Mark Roedel wrote:
> > -----Original Message-----
> > From: Seb Frost [mailto:seb
raceshoot.com]
> > Sent: Sunday, August 26, 2001 6:49 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] What is it with _vti?
> >
> >
> > I have these _vti_pvt _vti_cnf directories on my website.
> > Why? I never put them there... can I delete them?
> >
> > I tried searching for this but it's impossible to search for
> > since it seems a lot of website have these directories and it
> > just comes up with them :-)
>
>FrontPage droppings. *grin*
>
>And yes, assuming you're not doing anything FrontPage-specific, you can
>safely remove them. (They will, of course, be recreated if you publish
>your site again using FrontPage.)
>
>
>---
>Mark Roedel | "Blessed is he who has learned to laugh
>Systems Programmer | at himself, for he shall never cease
>LeTourneau University | to be entertained."
>Longview, Texas, USA | -- John Powell
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
The only FP work I do is open it up, lay out a form (for example) and then cut and paste the html into my php doc in textpad.
Have deleted all and everything. All seems ok.
- seb
-----Original Message-----
From: Miles Thompson [mailto:milesthompson
ns.sympatico.ca]
Sent: 27 August 2001 15:27
To: php-general
lists.php.net
Subject: RE: [PHP] What is it with _vti?
Before you drop them, noodle around a little bit and learn how much extra crap and duplication of your site FP drops on you. It's like a bloody seagull!
Miles
BTW - Don't drop them on the Windows machine where you do your FP work, the poor program won't be able to function without all its redundancies. Horrible thing! /mt
At 08:48 AM 8/27/01 -0500, Mark Roedel wrote:
> > -----Original Message-----
> > From: Seb Frost [mailto:seb
raceshoot.com]
> > Sent: Sunday, August 26, 2001 6:49 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] What is it with _vti?
> >
> >
> > I have these _vti_pvt _vti_cnf directories on my website.
> > Why? I never put them there... can I delete them?
> >
> > I tried searching for this but it's impossible to search for
> > since it seems a lot of website have these directories and it
> > just comes up with them :-)
>
>FrontPage droppings. *grin*
>
>And yes, assuming you're not doing anything FrontPage-specific, you can
>safely remove them. (They will, of course, be recreated if you publish
>your site again using FrontPage.)
>
>
>---
>Mark Roedel | "Blessed is he who has learned to laugh
>Systems Programmer | at himself, for he shall never cease
>LeTourneau University | to be entertained."
>Longview, Texas, USA | -- John Powell
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
>For additional commands, e-mail: php-general-help
lists.php.net
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
We've used rackspace, webservepro.com, xo, and had machines placed at exodus.
Webservepro.com is the least expensive, and they still maintain pretty good service (personal service I mean). No default UPS - you gotta pay extra for that if it's that important to you (over 2 years hosting - 2 hours of downtime due to power issues).
rackspace - we used to recommend them a lot, but since they've grown so much, their service has gone down in our experience.
exodus - darn expensive.
xo.com - again, darn expensive for what you get. rackspace has/had the same equipment for about halfprice. AND you get 'root' at rackspace - xo wouldn't give it out (well, we couldn't get it without signing a lot of papers, etc.) and this was for a client. It took 3 hours to get PHP installed because it wasn't there by default, and we had no permissions to do anything. That was $699/month. SAME machine at rackspace (same mhz, hd, etc) was $400/month, and you got root.
HTH
Heidi Belal wrote:
>Hi All, >Can you please tell of a good, reliable place where i >can rent a dedicated server in the US? >Thanks! >Heidi > >===== >Heidi Belal >ICQ# 32127109 >
attached mail follows:
I would like to also add in, my real job we have exodus as a host, we are going to be moving from exodus due to worries about their business and them going under ... just to let you know they have dont nothing to calm down our fears, while our $34/k a month doesnt make us a huge client you would still think that they want us happy.
rachspace I would concur, never tried webservepro, my host is a dedicated just-hostit.com, they are new but they give top flight service, and you speak directly with them ... very rarely do I have to try calling twice ... they will work with you on access, and they can even provide PHP development talent for projects or help.
dan
--- Michael Kimsal <michael
tapinternet.com> wrote:
> We've used rackspace, webservepro.com, xo, and had
> machines placed at exodus.
>
> Webservepro.com is the least
> expensive, and they still maintain pretty good service (personal service
> I mean). No default UPS - you gotta pay extra for that if it's that
> important to you (over 2 years hosting - 2 hours of downtime due to power
> issues).
>
> rackspace - we used to recommend them a lot, but since they've grown
> so much, their service has gone down in our experience.
>
> exodus - darn expensive.
>
> xo.com - again, darn expensive for what you get. rackspace has/had
> the same equipment for about halfprice. AND you get 'root' at rackspace -
> xo wouldn't give it out (well, we couldn't get it without signing a lot
> of papers, etc.)
> and this was for a client. It took 3 hours to get PHP installed because
> it wasn't
> there by default, and we had no permissions to do anything. That was
> $699/month.
> SAME machine at rackspace (same mhz, hd, etc) was $400/month, and you
> got root.
>
>
> HTH
>
>
> Heidi Belal wrote:
>
> >Hi All,
> >Can you please tell of a good, reliable place where i
> >can rent a dedicated server in the US?
> >Thanks!
> >Heidi
> >
> >=====
> >Heidi Belal
> >ICQ# 32127109
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
===== Dan McCullough ------------------------------------------------------------------- "Theres no such thing as a problem unless the servers are on fire!" h: 603.444.9808 w: McCullough Family w: At Work
__________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
attached mail follows:
howdy,
this should be simple but i don't know it. i use the following mysql table field as the Key for my tables:
"id int(10) unsigned NOT NULL auto_increment,"
now, when i have to clean up items in my tables, like when users have sent off a .html form multiple times and i want to delete duplicate submissions, how can i quickly & easily update all of the 'id' fields in the entire table, to reflect the numeration change?
now, using phpmyadmin, if i go in and delete a few entries, the id's have gaps in them..
mucho gracias,
tom
attached mail follows:
It there are not many gaps, do it by hand. Another algorithm is to make a script: <?php
db_connect(); $table = "some_table"; list($last_id)=mysql_fetch_array(mysql_query("select id from $table ORDER BY id DESC limit 1;")); $counter=1; while ($counter<$last_id){ $res=mysql_query("select * from $table where id=$counter;"); if (db_num_rows($res)){ }else{ while (!db_num_rows(db_exec("select count(*) from $table where id=$last_id;"))){ $last_id--; } db_exec("update $table set id=$counter where id=$last_id;"); $last_id--; } mysql_free_result($res); $counter++; }
I think that the idea is clear; After this modification : 1) create table $table."_new" select * from $table; drop table $table; ->rename the $table."_new" to $table. DO NOT FORGET TO CREATE AGAIN THE INDEXES ON THIS TABLE. 2)or create a empty table with the same structure. phpmyadmin is ideal for that. after that 'INSERT INTO table_new select id,one,two, three,..., from table;
Hope this will help.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Tom Churm" <thomas.churm
pixelpark.com>
To: <php-general
lists.php.net>
Sent: Monday, August 27, 2001 5:08 PM
Subject: [PHP] MySQL: Updating ID auto_increment fields
> howdy,
>
> this should be simple but i don't know it. i use the following mysql
> table field as the Key for my tables:
>
> "id int(10) unsigned NOT NULL auto_increment,"
>
> now, when i have to clean up items in my tables, like when users have
> sent off a .html form multiple times and i want to delete duplicate
> submissions, how can i quickly & easily update all of the 'id' fields in
> the entire table, to reflect the numeration change?
>
> now, using phpmyadmin, if i go in and delete a few entries, the id's
> have gaps in them..
>
> mucho gracias,
>
> tom
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hi,
Is there a smart way, that I have overseen, to update/download 2 (or more) PHP-docs with only one POST/GET instruction ?
I do not want to use either javascript or cockies!
Michael Cronström
mc
zoon.se
attached mail follows:
> Everything is pretty much set to default vaules. I can > leave the browser open and come back 12+ hours later > and the session is still active. Why??
There is another setting which affects this, gc_probability. This setting determines how often the garbage collection routine runs (that kills off old sessions). The default is 1, which means the gc runs on one out of every 100 hundred requests. So, if the server is not getting alot of requests, the gc routine doesn't run very often, and sessions last longer than the timeout value.
Kirk
attached mail follows:
greetings.
Are there any ways to control exact printing output? Like exact positioning of an object (pic, text or whatever) in a A4 sheet, for an example?
Thanks in advance,
attached mail follows:
Use PDFs or Word or something else. Straight HTML wasn't intended to be a method of specifying exact locations for paper reproduction.
Using pdflib with PHP (you'll need to compile it in and possibly purchase it as well) you can do this. Using COM support under Windows/PHP you can theoretically create Word files - how accurate you can get with specifying object positioning via that method is something I don't know.
Good luck.
Er Galvão Abbott wrote:
>greetings. > >Are there any ways to control exact printing output? Like exact >positioning of an object (pic, text or whatever) in a A4 sheet, for an >example? > >Thanks in advance, >
---------------------------------------- michael kimsal http://www.tapinternet.com/php/ php training courses 734-480-9961
attached mail follows:
Are there any free PHP mysql database admin programs out there?
Thanks, Joseph
attached mail follows:
Try phpMyAdmin
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Joseph Bannon" <JBannon
advparadigm.com>
To: "PHP (E-mail)" <php-general
lists.php.net>
Sent: Monday, August 27, 2001 6:06 PM
Subject: [PHP] PHP mysql admin?
> Are there any free PHP mysql database admin programs out there?
>
> Thanks,
> Joseph
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Thanks. I'll give it a try.
Joseph
-----Original Message----- Try phpMyAdmin
----- Original Message -----
> Are there any free PHP mysql database admin programs out there?
attached mail follows:
yes, phpMyAdmin is the very best!
greetings,
gert mellak
==================
eMail: gert
mellak.com
http://www.mellak.com
Andrey Hristov <andy
icygen.com> schrieb in im Newsbeitrag:
017a01c12f0c$3f013000$0b01a8c0
ANDreY...
> Try phpMyAdmin
>
> http://phpwizard.net/
>
> Andrey Hristov
> IcyGEN Corporation
> http://www.icygen.com
> 99%
>
> ----- Original Message -----
> From: "Joseph Bannon" <JBannon
advparadigm.com>
> To: "PHP (E-mail)" <php-general
lists.php.net>
> Sent: Monday, August 27, 2001 6:06 PM
> Subject: [PHP] PHP mysql admin?
>
>
> > Are there any free PHP mysql database admin programs out there?
> >
> > Thanks,
> > Joseph
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> > For additional commands, e-mail: php-general-help
lists.php.net
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
attached mail follows:
So sprach »Joseph Bannon« am 2001-08-27 um 10:06:39 -0500 : > Are there any free PHP mysql database admin programs out there?
yup, phpmyadmin. I'd recommend the newer versions from http://phpmyadmin.sourceforge.net. It has some nice feature additions compared to the original one.
Alexander Skwar
-- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 12 hours 6 minutes
attached mail follows:
Does PHP currently support SOAP? If so, where is the documentation on it (couldn't find it on the site)? If not, when will it be supported? Thanks!
Sean McCormack
Lead Web Developer, Liaison
voice: 512.345.0020 x 189
email: smccormack
liaison.com
> Automating Catalog Content for Commerce... http://www.liaison.com/
attached mail follows:
Sean McCormack wrote:
>
> Does PHP currently support SOAP? If so, where is the documentation on it
> (couldn't find it on the site)? If not, when will it be supported? Thanks!
>
> Sean McCormack
> Lead Web Developer, Liaison
> voice: 512.345.0020 x 189
> email: smccormack
liaison.com
Do a search on freshmeat.net for Soap. I think you'll find someone who've made an parser for soap. BTW, Soap is just XML, so find more info about Soap and use the XML functions of PHP to generate and parse the messages sent.
-- Paul K Egell-Johnsen Developer/PR Manager eZ systems as http://ez.no/
attached mail follows:
Checkout the following list of SOAP implementations:
http://www.soapware.org/directory/4/implementations
You should find at least two implementations for PHP there.
Josh Hoover
KnowledgeStorm, Inc.
jhoover
knowledgestorm.com
Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify the process for you. KnowledgeStorm - Your IT Search Starts Here
> Sean McCormack wrote: > > > > Does PHP currently support SOAP? If so, where is the > documentation on it > > (couldn't find it on the site)? If not, when will it be > supported? Thanks!
attached mail follows:
Visit: 1)http://freshmeat.net/search/?site=Freshmeat&q=php+soap§ion=projects
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Sean McCormack" <smccormack
liaison.com>
To: <php-general
lists.php.net>
Sent: Monday, August 27, 2001 6:32 PM
Subject: [PHP] PHP and SOAP/XML-RPC
> Does PHP currently support SOAP? If so, where is the documentation on it
> (couldn't find it on the site)? If not, when will it be supported? Thanks!
>
>
> Sean McCormack
> Lead Web Developer, Liaison
> voice: 512.345.0020 x 189
> email: smccormack
liaison.com
>
> > Automating Catalog Content for Commerce...
> http://www.liaison.com/
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
I know it's not specifically what you're looking for, but it may help further the discussion.
We offer PHP training courses. While it's not 'certification' in the sense that we're not a 'well-known, respected' authority, we provide a hands-on environment where you learn a series of skills - from "hello world" thru connecting to a database, add/edit/delete info from a db, and a bit more (user authentication techniques, etc). While we're not accredited in anyway, it has been helpful to many of our students who need the helping hand and/or something more than a book/magazine.
We'd love to work with others in the PHP community to help develop a set of certification standards, though there doesn't seem to be a big outcry for it right now from the community.
Christian Dechery wrote:
> I know this is a recurrent question around here... but it's always > nice to ask: > > Is there (or is it in process of...) any kind of certification for PHP. > > I live in Brazil and have been developing with PHP+Mysql for over a > year, but there are no courses around here... none. And in part, it's > because there is no certification, or proof of any kind from a > respected or well-known organization.
--------------------------------------- michael kimsal http://www.tapinternet.com/php/ php training courses 734-480-9961
attached mail follows:
Hi all,
I have a newbie question, I hope somebody can help me out.
I have an HTML form (query.html) that has a drop down menu of all 50 states and 3 checkboxes of 3 years (1999, 2000 and 2001), I want users to be able to select one state and any year(s) they want (they can choose one or more years). I have a MySQL DB that has 3 tables, each table has data for one year (i.e. states99, states00 and states01). I want to be able to have the results.php script connect to the database, make a query from multiple tables and display it to an HTML table, for example: State | 1999 | 2000 | or State | 1999 | 2001 ---------------------- AL |23,010|12,567| . . .
Thank you for your time.
Mouncef
attached mail follows:
<?php $res = mysql_query("SELECT sd.state_name,s99.count,s00.count,s01.count FROM states_data sd LEFT JOIN states99 s99 USING(state_id) LEFT JOIN states00 s00 USING(state_id) LEFT JOIN states01 s01 USING(state_id) "); while($ar=mysql_fetch_assoc($res)){//look at PHP docs to see if mysql_fetch_assoc is there in your PHP foreach ($ar as $k => $v){ $str.=sprintf('|%20s',$v).; } echo $str."<br>\n" } ?>
Hope this make a little help.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Mouncef Belcaid" <mouncef
uswest.net>
To: <php-general
lists.php.net>
Sent: Monday, August 27, 2001 7:08 PM
Subject: [PHP] Multiple MySQL Tables --> HTML Tables
> Hi all,
>
> I have a newbie question, I hope somebody can help me out.
>
> I have an HTML form (query.html) that has a drop down menu of all 50
> states and 3 checkboxes of 3 years (1999, 2000 and 2001), I want users
> to be able to select one state and any year(s) they want (they can
> choose one or more years). I have a MySQL DB that has 3 tables, each
> table has data for one year (i.e. states99, states00 and states01).
> I want to be able to have the results.php script connect to the
> database, make a query from multiple tables and display it to an HTML
> table, for example:
> State | 1999 | 2000 | or State | 1999 | 2001
> ----------------------
> AL |23,010|12,567|
> .
> .
> .
>
> Thank you for your time.
>
> Mouncef
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Don't forget to mysql_free_result($res) after the "while", if you have other PHP statements before the end of the script.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Mouncef Belcaid" <mouncef
uswest.net>
To: <php-general
lists.php.net>
Sent: Monday, August 27, 2001 7:08 PM
Subject: [PHP] Multiple MySQL Tables --> HTML Tables
> Hi all,
>
> I have a newbie question, I hope somebody can help me out.
>
> I have an HTML form (query.html) that has a drop down menu of all 50
> states and 3 checkboxes of 3 years (1999, 2000 and 2001), I want users
> to be able to select one state and any year(s) they want (they can
> choose one or more years). I have a MySQL DB that has 3 tables, each
> table has data for one year (i.e. states99, states00 and states01).
> I want to be able to have the results.php script connect to the
> database, make a query from multiple tables and display it to an HTML
> table, for example:
> State | 1999 | 2000 | or State | 1999 | 2001
> ----------------------
> AL |23,010|12,567|
> .
> .
> .
>
> Thank you for your time.
>
> Mouncef
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hello. I am reading in text files in a php-script and am getting path errors.
I have set the php-path in php.ini to /home/web/public_html/cgi-bin/chanet/ and am trying to call a file in /home/web/public_html/cgi-bin/chanet/daten/. I use the path ../../cgi-bin/chanet/daten/ to call the files (the reason for leaving the directory twice is that I have another place where my webpage is running with a different structure).
I get the following error:
Warning: Failed opening '../../cgi-bin/chanet/daten/menu.dat' for inclusion (include_path='.:/usr/share/php:/home/web/public_html/cgi-bin/chanet') in /home/web/public_html/inhalt/chanet.php4 on line 80
However, when I set the php-path just to /home/web/public_html/cgi-bin/ and call the files with ../cgi-bin/chanet/daten/, it works.
I have to test set all the rights in public_html to 777, so I don't think it's a rights problem.
Am I not allowed to call up directories which require me to go up two directories??
Thanks for any help! Carsten
attached mail follows:
Ok on a pc when I have cookies turned off I am still able to access my session variables, but on a mac I can not. Is there a difference between the way session variables are stored on each platform? And if a session is indeed a cookie, then why does the session still work on pc's with cookies disabled?
Rick
attached mail follows:
Wanted: PHP developer to join a small but growing techie website. Basic PHP
and mySQL experience necessary. Email technik
jargonnet.com for more
information
Note: this is a non-profit website
attached mail follows:
i use win98se, where could i get a .DLL or .SO file to accelerate PHP like Zend opt??
thank you!!!
attached mail follows:
Sorry for the length of the link:
"Using PHP with Web databases" http://www-105.ibm.com/developerworks/education.nsf/web-onlinecourse-bytitle/B363B3AB5700BDE486256AAF003AA401?OpenDocument
-- teodor
attached mail follows:
Hi,
I want to read a file on my web server in a .php script using fopen and I don't want to set read permissions on this file for everyone. However it seems that the PHP module has that same access to the filesystem that everyone would have. I can only read this file if I set read permissions for everyone. Can I change the access right of the PHP module on the server's filesystem without lowering security and if so, how can change this?
Thanks in advance,
Pascal Chouinard
pascalc
croesus.com
attached mail follows:
If Apache/php runs under nobody user, than make all files read only by the group of nobody, and no other users to be in this group.
Andrey Hristov IcyGEN Corporation http://www.icygen.com 99%
----- Original Message -----
From: "Pascal Chouinard" <pascalc
croesus.com>
To: <php-general
lists.php.net>
Sent: Monday, August 27, 2001 8:06 PM
Subject: [PHP] permissions when using fopen
> Hi,
>
> I want to read a file on my web server in a .php script using fopen and
> I don't want to set read permissions on this file for everyone. However it
> seems that the PHP module has that same access to the filesystem that
> everyone would have. I can only read this file if I set read permissions for
> everyone. Can I change the access right of the PHP module on the server's
> filesystem without lowering security and if so, how can change this?
>
> Thanks in advance,
>
> Pascal Chouinard
> pascalc
croesus.com
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net
> For additional commands, e-mail: php-general-help
lists.php.net
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Guys, why isn't this working? :)
SELECT * FROM links WHERE name LIKE "%te%" OR description LIKE "%te%" OR url LIKE "%te%" AND approved="1" LIMIT 5
I am using a PHP script to add items to the database and a small search file to grab them. Thing is, I want the above to grab ONLY ones that have approved = 1. In the database they are all = 0. Is there a problem with my SQL query?
Jeff
attached mail follows:
This line seems a little odd: $files_to_include[count($files_to_include)] = $file;
I would change it to: $files_to_include[] = $file;
Could be a bit of a bug. I am able to run your script on my server, so the error could also be coming from one of the files you are trying to include. Are you running an old version of php?
Robert V. Zwink http://www.zwink.net/daid.php
-----Original Message-----
From: Jaxon [mailto:jaxon
salamander.net]
Sent: Friday, August 24, 2001 11:29 AM
To: php-general
lists.php.net
Subject: [PHP] fatal input in flex scanner
okay... I have a function that includes multiple files in a directory - it was working but I changed something and I'm now getting a "Fatal error: input in flex scanner failed"
can anyone see where I messed up?
cheers, jaxon ----------------------------------- function group_include($directory) { $handle=opendir("$directory"); while ($file = readdir($handle)) { //load files in $directory into array if ($file != ".." && $file != ".") { $files_to_include[count($files_to_include)] = $file; } }
//clean up and sort closedir($handle); if (is_array($files_to_include)) { while (list ($key, $val) = each ($files_to_include)) { include "$directory/$val"; } } }
//include common and page specific modules
$common_include_dir="modules/common"; $page_include_dir="modules/page";
group_include($common_include_dir); group_include($page_include_dir);
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribelists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
The line: echo "$r[ $i ]";
does not need quotation marks. You should change it to: echo $r[ $i ];
I removed the quotation marks and your script ran fine on my server. If this doesn't help post more information.
Robert Zwink http://www.zwink.net/daid.net
-----Original Message-----
From: Frank Loewenthal [mailto:frank.loewenthal
freesurf.ch]
Sent: Friday, August 24, 2001 11:44 AM
To: php-general
lists.php.net
Subject: [PHP] functions returning arrays II
A lot of answers about the typing error $r[ i ] resp. $r[ $i ]
Sorry, this was only wrong in my mail. But this is not the solution.
Hi
Perhaps I am confused, but is it not possible to return arrays in PHP?
Example:
function getArray() { $ret = array('hallo','you'); return $ret; }
$r = getArray();
for( $i=0;$i < count($r); $i++) echo "$r[ $i ]";
Does not work! The array shows 2 Elements, but they are emty
Hm... Where is do mistake?
Regards Frank
-- SFI Technology Services AG Dr. F. Loewenthal Stettbachstrasse 10 CH-8600 Dübendorf Switzerlandfrank.loewenthal
sfi.ch www.sfi.ch +41/1-824 49 00
-------------------------------------------------------
-- SFI Technology Services AG Dr. F. Loewenthal Stettbachstrasse 10 CH-8600 Dübendorf Switzerland
frank.loewenthal
sfi.ch www.sfi.ch +41/1-824 49 00
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
-------------------------------------------------------
-- SFI Technology Services AG Dr. F. Loewenthal Stettbachstrasse 10 CH-8600 Dübendorf Switzerland
frank.loewenthal
sfi.ch www.sfi.ch +41/1-824 49 00
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe
lists.php.net For additional commands, e-mail: php-general-help
lists.php.net To contact the list administrators, e-mail: php-list-admin
lists.php.net
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]