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 - Original Message - From: "Dave" <[EMAIL PROTECTED]> To: "Ben Quinn" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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, 2); > > > >$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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: How to disable access to the site
if (!isset($HTTP_COOKIE_VARS[$cookiename])) exit(); > -Original Message- > From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 27, 2001 9:49 AM > To: [EMAIL PROTECTED]; 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: How to disable access to the site
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Web 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, 2); > $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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Web fetching script
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:[EMAIL PROTECTED]] Sent: 27. elokuuta 2001 10:41 To: Dave; [EMAIL PROTECTED] 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 - Original Message - From: "Dave" <[EMAIL PROTECTED]> To: "Ben Quinn" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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, 2); > > > >$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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: How to disable access to the site
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] how to sort search results by relevance?
How to sort search results of php-mysql site by relevance? <>< <>< <>< <>< God is our provider ><> ><> ><> ><> http://www.body-builders.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: how to sort search results by relevance?
In article <3B8A1D6A.4295.2947D@localhost>, [EMAIL PROTECTED] (Yura) wrote: > How to sort search results of php-mysql site by relevance? See the mysql manual's chapter on FULLTEXT indexes. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: character encoding
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: APC and WIN 32
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: [PHP-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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] appear in Text file
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 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 from txt file to my input box's value? or anyway that i can delete the when the data is greb from input box to txt file?? Thanks a lot Jack [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> To: "Ben Quinn" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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, 2); > > $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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sizeof(int)
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ftp_get
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" <[EMAIL PROTECTED]> To: "MBK" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> 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 - [EMAIL PROTECTED] > WhiteCrown Networks - More Than White Hats > Web Application Security - www.whitecrown.net > */ > > - Original Message - > From: MBK <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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" <[EMAIL PROTECTED]> > | To: "MBK" <[EMAIL PROTECTED]> > | Cc: <[EMAIL PROTECTED]> > | 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 - [EMAIL PROTECTED] > | > WhiteCrown Networks - More Than White Hats > | > Web Application Security - www.whitecrown.net > | > */ > | > > | > - Original Message - > | > From: MBK <[EMAIL PROTECTED]> > | > To: <[EMAIL PROTECTED]> > | > 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: [EMAIL PROTECTED] > | For additional commands, e-mail: [EMAIL PROTECTED] > | To contact the list administrators, e-mail: [EMAIL PROTECTED] > | > | > | > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] The future of PHP
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] 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 [EMAIL PROTECTED] -Original Message- From: George E. Papadakis [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Shell or http?
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 http://www.icygen.com 99% - Original Message - From: "Jon Farmer" <[EMAIL PROTECTED]> To: "George E. Papadakis" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] > > -Original Message- > From: George E. Papadakis [mailto:[EMAIL PROTECTED]] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[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
Re: [PHP] Print..
From: Daniel Antonio de Lima <[EMAIL PROTECTED]> Date: Tue, Aug 27, 2019 at 07:55:33AM -0300 Message-ID: <001d01d55cc5$f38cc7a0$[EMAIL PROTECTED]> 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 > > 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 -- * R&zE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Print..
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() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Print..
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: > >From: Daniel Antonio de Lima <[EMAIL PROTECTED]> >Date: Tue, Aug 27, 2019 at 07:55:33AM -0300 >Message-ID: <001d01d55cc5$f38cc7a0$[EMAIL PROTECTED]> >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 > > > > > > > > > >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 > > > >-- > >* R&zE: > > >-- >-- Renze Munnik >-- DataLink BV >-- >-- E: [EMAIL PROTECTED] >-- 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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Cannot index a string index - Why?
> > 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: 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:[EMAIL PROTECTED]] > Sent: Monday, August 27, 2001 4:26 AM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] RE: [PHP-DEV] Question about PDF lib.
Try http://groups.yahoo.com/pdflib/ - Original Message - From: "Criegern, Phillipp von (PDV)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] overlaying alpha channel png over jpeg
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: Best regards, -- Vahan Yerkanian[EMAIL PROTECTED] Vice President, Design & Development Website @ http://www.abideweb.com/ AbideWeb Technologies, LLC Phone +3741 238650 | Mobile +3749 416358 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Web fetching script
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:[EMAIL PROTECTED]] Sent: 27. elokuuta 2001 11:41 To: Php-General Cc: Niklas Lampén; [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> To: "Ben Quinn" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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, 2); > > $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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Print..
>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 [EMAIL PROTECTED] -Original Message- From: MBK [mailto:[EMAIL PROTECTED]] Sent: 27 August 2001 01:59 To: Daniel Antonio de Lima; [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Print..
From: MBK <[EMAIL PROTECTED]> 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. > 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 -- * R&zE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] The future of PHP
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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 t
[PHP] Re: Thinking about going to ASP
How about Mono from Ximian? -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "Reductor" <[EMAIL PROTECTED]> wrote in message 008001c12df9$e96806e0$eb00a8c0@mum">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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] authentication
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 [EMAIL PROTECTED] -
Re: [PHP] authentication
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 > [EMAIL PROTECTED] > - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] 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 - From: MBK <[EMAIL PROTECTED]> To: Daniel Antonio de Lima <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Thinking about going to ASP
Mind giving some more infro on this :D ?!? - Original Message - From: "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> wrote in message > 008001c12df9$e96806e0$eb00a8c0@mum">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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Error while passing parameters as path
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:[EMAIL PROTECTED]] > Sent: Sunday, August 26, 2001 9:07 AM > To: Anas Mughal > Cc: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Print..
Oops, my bad. I always check bigmanual.html, also from php.net couldn't find it in there. - Original Message - From: "hassan el forkani" <[EMAIL PROTECTED]> To: "MBK" <[EMAIL PROTECTED]>; "Daniel Antonio de Lima" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >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: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Print..
From: Daniel Antonio de Lima <[EMAIL PROTECTED]> Date: Tue, Aug 27, 2019 at 10:03:31AM -0300 Message-ID: <00c001d55cd7$d37e6e20$[EMAIL PROTECTED]> 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 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. -- * R&zE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PCRE Multiline modifier
hello world\nI love you all!"; $re = "/(.+?)<\\/pre>/im"; preg_match_all($re, $mem, $match); var_dump($match); ?> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] What is it with _vti?
> -Original Message- > From: Seb Frost [mailto:[EMAIL PROTECTED]] > Sent: Sunday, August 26, 2001 6:49 PM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What development environment do you use for PHP?
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 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dedicated Hosting
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Update 2 documents with only 1 POST?
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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PCRE Multiline modifier
I think that is the solution: hello world\nI love you all!"; $re = "/(.+?)<\\/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) "hello world" } [1]=> array(1) { [0]=> string(11) "hello world" } } In this case it's better your pattern to be : "|(.+?)|is" / was changed to |, and there is no need to escape. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "_lallous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 5:43 PM Subject: [PHP] PCRE Multiline modifier > >$mem = "hello world\nI love you all!"; > $re = "/(.+?)<\\/pre>/im"; > > preg_match_all($re, $mem, $match); > > var_dump($match); > ?> > > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] 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:[EMAIL PROTECTED]] > > Sent: Sunday, August 26, 2001 6:49 PM > > To: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL: Updating ID auto_increment fields
It there are not many gaps, do it by hand. Another algorithm is to make a script: 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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] What is it with _vti?
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:[EMAIL PROTECTED]] Sent: 27 August 2001 15:27 To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] > > Sent: Sunday, August 26, 2001 6:49 PM > > To: [EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Session not timing outafter 180 minutes
> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Controlling Printing output
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, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Thinking about going to ASP
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" <[EMAIL PROTECTED]> wrote in message 003901c12ef8$fd9a4ec0$eb00a8c0@mum">news:003901c12ef8$fd9a4ec0$eb00a8c0@mum... Mind giving some more infro on this :D ?!? - Original Message - From: "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> wrote in message > 008001c12df9$e96806e0$eb00a8c0@mum">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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dedicated Hosting
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > = 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP mysql 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP mysql admin?
Try phpMyAdmin http://phpwizard.net/ Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Joseph Bannon" <[EMAIL PROTECTED]> To: "PHP (E-mail)" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] 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: [EMAIL PROTECTED] > Automating Catalog Content for Commerce... http://www.liaison.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Controlling Printing output
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Certification
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP mysql admin?
Thanks. I'll give it a try. Joseph -Original Message- Try phpMyAdmin http://phpwizard.net/ - Original Message - > Are there any free PHP mysql database admin programs out there? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: PHP and SOAP/XML-RPC
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: [EMAIL PROTECTED] 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] 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 |orState | 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] path error while calling files
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: PHP and SOAP/XML-RPC
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. [EMAIL PROTECTED] 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!
Re: [PHP] PHP and SOAP/XML-RPC
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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > > Automating Catalog Content for Commerce... > http://www.liaison.com/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sessions and Cookies on Macs
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP DEVELOPER NEEDED
Wanted: PHP developer to join a small but growing techie website. Basic PHP and mySQL experience necessary. Email [EMAIL PROTECTED] for more information Note: this is a non-profit website -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help me!
i use win98se, where could i get a .DLL or .SO file to accelerate PHP like Zend opt?? thank you!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Introduction cource @ IBM
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] 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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] permissions when using fopen
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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Multiple MySQL Tables --> HTML Tables
$v){ $str.=sprintf('|%20s',$v).; } echo $str."\n" } ?> Hope this make a little help. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Mouncef Belcaid" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 |orState | 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Multiple MySQL Tables --> HTML Tables
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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 |orState | 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP mysql admin?
yes, phpMyAdmin is the very best! greetings, gert mellak == eMail: [EMAIL PROTECTED] http://www.mellak.com Andrey Hristov <[EMAIL PROTECTED]> schrieb in im Newsbeitrag: 017a01c12f0c$3f013000$[EMAIL PROTECTED] > Try phpMyAdmin > > http://phpwizard.net/ > > Andrey Hristov > IcyGEN Corporation > http://www.icygen.com > 99% > > - Original Message - > From: "Joseph Bannon" <[EMAIL PROTECTED]> > To: "PHP (E-mail)" <[EMAIL PROTECTED]> > 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: The future of PHP -- accessory libraries
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:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 6:11 AM To: Geoff Caplan; [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] > Sent: Monday, August 27, 2001 4:26 AM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP/mySQL query problem...
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
[PHP] Re: authentication
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: [EMAIL PROTECTED] http://www.mellak.com Wilbert Enserink <[EMAIL PROTECTED]> schrieb in im Newsbeitrag: 006601c12ef5$aff7c380$[EMAIL PROTECTED] 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 [EMAIL PROTECTED] - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP mysql admin?
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] fatal input in flex scanner
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:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 11:29 AM To: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] functions returning arrays II
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:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 11:44 AM To: [EMAIL PROTECTED] 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 Switzerland [EMAIL PROTECTED] www.sfi.ch +41/1-824 49 00 --- -- SFI Technology Services AG Dr. F. Loewenthal Stettbachstrasse 10 CH-8600 Dübendorf Switzerland [EMAIL PROTECTED] www.sfi.ch +41/1-824 49 00 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] --- -- SFI Technology Services AG Dr. F. Loewenthal Stettbachstrasse 10 CH-8600 Dübendorf Switzerland [EMAIL PROTECTED] www.sfi.ch +41/1-824 49 00 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: The future of PHP
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Question about PDF lib.
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:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 3:59 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: authentication
I think that this depends on GPC setting. If first is get, and then cookie I think there is no problem because $allowed from GET will be overwritten by the session variable which is read from session_892147jshfjksahfdjk8978 file because $PHPSESSID==892147jshfjksahfdjk8978 . But is better to use $HTTP_SESSION_VARS or whatever was the name of the array with registered variables. Also for GET or POST variables to use $HTTP_GET_VARS and $HTTP_POST_VARS Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Sheridan Saint-Michel" <[EMAIL PROTECTED]> To: "Gert Mellak" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 9:27 PM Subject: Re: [PHP] Re: authentication > It seems like there would be several problems with doing it this way. > The most obvious is what happens when someone types in > http://www.yoursite.com/protected.php?allowed=true > > In addition to that, how can you tell who is viewing the page? > With this setup everyone passes an identical set of info to the server. > > I would suggest, instead, passing their username and some sort of > simple session id ( could be as simple as md5(time()); ) variable and > comparing these against stored values in a DB. > > I have examples of this here: > Main Script - http://www.zend.com/codex.php?id=393&single=1 > Header File - http://www.zend.com/codex.php?id=397&single=1 > > Sheridan Saint-Michel > Website Administrator > FoxJet, an ITW Company > www.foxjet.com > > - Original Message - > From: "Gert Mellak" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 27, 2001 1:06 PM > Subject: [PHP] Re: authentication > > > > 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: [EMAIL PROTECTED] > > http://www.mellak.com > > > > > > > > > > Wilbert Enserink <[EMAIL PROTECTED]> schrieb in im Newsbeitrag: > > 006601c12ef5$aff7c380$[EMAIL PROTECTED] > > 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 > > [EMAIL PROTECTED] > > - > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP/mySQL query problem...
Yes, there is a problem. -- SELECT * FROM links WHERE 1=1 and ( name LIKE "%te%" OR description LIKE "%te%" OR url LIKE "%te%" ) AND approved="1" LIMIT 5; -- --- Jeff Lewis <[EMAIL PROTECTED]> wrote: > 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 > = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Regular Expression Problem and PHP 4 (urgent) --- continued
Well my first solution didn't really work the way I needed it too so here goes again... Data returned from server process looks like following... Header datadatadatadata[link]datadatadata{link}data[link] datadata{link}data[link]datadatadata{link}data[link] datadatadatadata[link]datadatadata{link}data[link] Closer I need to grep the values between [] and {} to turn them into a links. (BTW I need to retain the values for use in JS) Any suggestions? Thanks, Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] clause
Hi, Can somebody help me out? My where clause is completely being ignored. More specifically the <>. I tried to use != and that didn't work either. However, when I substitute it with an = , It fuctions correctly. Right now, the output is all the users.uid and all the users.username from the table users. H E L P ! $connection = @mysql_connect("l", "c", "c") or die("Couldn't connect."); $db = @mysql_select_db($db_name, $connection) or die("Couldn't select database."); $sql = "SELECT distinct users.uid , users.username FROM users, picks WHERE picks.users_uid <> users.uid "; $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); while ($row = mysql_fetch_array($result)) { $uid = $row['uid']; $username = $row['username']; $option_block .= "$username"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] clause
Hello Jeremy, you are using two tables, but you are not joining them. What's you goal? --- Jeremy Morano <[EMAIL PROTECTED]> wrote: > Hi, > > Can somebody help me out? > My where clause is completely being ignored. > More specifically the <>. I tried to use != and that > didn't work either. > However, when I substitute it with an = , It fuctions > correctly. > > Right now, the output is all the users.uid and all the > users.username from > the table users. > H E L P ! > > > > $connection = @mysql_connect("l", "c", "c") or > die("Couldn't connect."); > > $db = @mysql_select_db($db_name, $connection) or > die("Couldn't select > database."); > > $sql = "SELECT distinct users.uid , users.username > FROM users, picks > WHERE picks.users_uid <> users.uid > "; > > $result = @mysql_query($sql,$connection) or die("Couldn't > execute query."); > > > while ($row = mysql_fetch_array($result)) { > $uid = $row['uid']; > $username = $row['username']; > > $option_block .= " value=\"$uid\">$username"; > } > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] clause
I don't know if this will help but why not to try $sql = "SELECT distinct users.uid , users.username FROM users LEFT JOIN picks USING(uid) WHERE picks.users_uid <> users.uid Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Jeremy Morano" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 9:52 PM Subject: [PHP] clause > Hi, > > Can somebody help me out? > My where clause is completely being ignored. > More specifically the <>. I tried to use != and that didn't work either. > However, when I substitute it with an = , It fuctions correctly. > > Right now, the output is all the users.uid and all the users.username from > the table users. > H E L P ! > > > > $connection = @mysql_connect("l", "c", "c") or die("Couldn't connect."); > > $db = @mysql_select_db($db_name, $connection) or die("Couldn't select > database."); > > $sql = "SELECT distinct users.uid , users.username > FROM users, picks > WHERE picks.users_uid <> users.uid > "; > > $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); > > > while ($row = mysql_fetch_array($result)) { > $uid = $row['uid']; > $username = $row['username']; > > $option_block .= "$username"; > } > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Regular Expression Problem and PHP 4 (urgent) --- continued
Some time spent to try but now i think it works: "; $a='datadatadatadata[link1]datadatadata{link2}data[link3]'; // $a='datadata{link1}data[link2]datadatadata{link3}data[link4]'; $pattern='/((\[)|\{)(.+?)(?(2)\]|\})/'; echo $a."\n"; echo $pattern."\n"; preg_match_all($pattern,$a,$matches,PREG_MATCH_ORDER); var_dump($matches); ?> Produces : datadatadatadata[link1]datadatadata{link2}data[link3] /(\[)|\{(.+?)(?(1)\]|\})/ array(3) { [0]=> array(3) { [0]=> string(1) "[" [1]=> string(7) "{link2}" [2]=> string(1) "[" } [1]=> array(3) { [0]=> string(1) "[" [1]=> string(0) "" [2]=> string(1) "[" } [2]=> array(1) { [0]=> string(5) "link2" } } Also works with the commented string. Explanation : Looking for more than one using preg_match_all. Matching for [ or {, [ is in () because at the end we test if we found [ so we look for ] otherwise { is found so we look for matching }. (?(1) true|false) is 1 as a backreference is set so we found [. Hope this will help you. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Ross Nielsen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 9:42 PM Subject: [PHP] Regular Expression Problem and PHP 4 (urgent) --- continued > Well my first solution didn't really work the way I needed it too so here > goes again... > > Data returned from server process looks like following... > > Header > datadatadatadata[link]datadatadata{link}data[link] > datadata{link}data[link]datadatadata{link}data[link] > datadatadatadata[link]datadatadata{link}data[link] > Closer > > I need to grep the values between [] and {} to turn them into a links. > (BTW I need to retain the values for use in JS) > Any suggestions? > > Thanks, > Ross > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] About the $allowed problem
called with : http://192.168.1.11/test2.php?allowed=5000 returns : int(3306) >From php.ini : variables_order = "EGPCS" ; This directive describes the order in which PHP registers ; GET, POST, Cookie, Environment and Built-in variables (G, P, ; C, E & S respectively, often referred to as EGPCS or GPC). ; Registration is done from left to right, newer values override ; older values. register_globals = On ; Whether or not to register the EGPCS variables as global ; variables. You may want to turn this off if you don't want ; to clutter your scripts' global scope with user data. This makes ; most sense when coupled with track_vars - in which case you can ; access all of the GPC variables through the $HTTP_*_VARS[], ; variables. ; You should do your best to write your scripts so that they do ; not require register_globals to be on; Using form variables ; as globals can easily lead to possible security problems, if ; the code is not very well thought of. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] About the $allowed problem
On Mon, 27 Aug 2001, Andrey Hristov wrote: > session_start(); > if (!session_is_registered("allowed")){ > $allowed=3306; > session_register("allowed"); > } > var_dump($allowed); > ?> > > called with : > http://192.168.1.11/test2.php?allowed=5000 > > returns : > int(3306) Ok, remeber, on the first run the var isn't registered, then you set it to "3306", on the subsequents calls it restore the value on the "session_start();" then the value "3306" will replace the "5000". Try puting the "var_dump" before the "session_start", or try testing "$HTTP_GET_VARS[allowed]" . Antonio. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Antonio S. Martins Jr. - System Analist | "Only The Shadow Knows | | WorldNet Internet Maringa - PR - Brasil | what evil lurks in the | | E-Mail: [EMAIL PROTECTED] | Heart of Men!" | | [EMAIL PROTECTED] | !!! Linux User: 52392 !!! | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ This e-mail message is 100% Microsoft free! /"\ \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: About the $allowed problem
In article <030d01c12f2f$49ca7d20$0b01a8c0@ANDreY>, [EMAIL PROTECTED] (Andrey Hristov) wrote: > session_start(); > if (!session_is_registered("allowed")){ > $allowed=3306; > session_register("allowed"); > } > var_dump($allowed); > ?> > > called with : > http://192.168.1.11/test2.php?allowed=5000 > > returns : > int(3306) That sets the value of the global variable $allowed to 5000, but of course setting a variable isn't the same thing as session registering a variable. Did you perhaps mean to test for... if(!isset($allowed)) ...instead? -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] fatal input in flex scanner
New version, but it's CGI :( It's causing all sorts of problems. Thanks for the help, but I've killed this method in favor of including a file that includes the files :) best, jaxon > -Original Message- > From: Robert V. Zwink [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 27, 2001 2:08 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] fatal input in flex scanner > > > 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:[EMAIL PROTECTED]] > Sent: Friday, August 24, 2001 11:29 AM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Database backup
Thanks a lot. - Original Message - From: "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> To: "Alex Sofronie" <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 6:22 PM Subject: Re: [PHP] MySQL Database backup > Alex, > > i'm using the crontab of linux to run a php script: > > in crontab: "wget -q > http://localhost/backup/backup.php. > > This script uses the MyPHPAdmin > (http://phpwizard.net/projects/phpMyAdmin/) dump, he > "fopen" the php script of MyAdmin (tbl_dump.php) and > write to a file the "result". This is the script > > > function backup($url, $file) > { > if (file_exists($file)) > unlink($file); > if ($fd = fopen($url, "r")) > { > $aux = fread($fd, 1000); > fclose($fd); > $fd = fopen($file, "aw" ); > fwrite($fd, $aux); > fclose($fd); > } else { > $fd = fopen("logs.txt", "aw"); > fwrite($fd, "\n\nErro na URL: $url\n\n"); > fclose($fd); > } > } > $file = "fiesc.sql"; > $url = > "http://$vendaval/libs/phpadmin2/tbl_dump.php?drop=1&showcolumns=yes&use_bac kquotes=1&what=data&server=1&lang=pt-br&db=fiesc"; > backup($url, $file); > -- > > see you, > > Augusto > > > > > --- Alex Sofronie <[EMAIL PROTECTED]> escreveu: > I > tried find a solution to backup a mysql database > > using php but i didn't > > find anything but the binary file transfer solution > > (just open and binary > > copy all the files in my database directory). But > > this is not a desired > > solution because it involves some security holes > > that I cannot afford. > > Can anyone tell me where can i learn more about > > this? Or some simple :) and > > security holes free solution? > > > > Thanks all. > > Alex Sofronie > > [EMAIL PROTECTED] > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > > ___ > Yahoo! GeoCities > Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo! GeoCities. É fácil e grátis! > http://br.geocities.yahoo.com/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] clause
HEllo, I think this will better work. What Jeremy wants to do is to OUTER joing the tables: SELECT distinct users.uid , users.username FROM users LEFT OUTER JOIN picks using(uid) may do the trick. If you say letf join and the use ids not equal in the where, then I think it's same as saying: where uid = pid and uid != pid and will always be false. REF: http://www.mysql.com/doc/J/O/JOIN.html --- Andrey Hristov <[EMAIL PROTECTED]> wrote: > I don't know if this will help but why not to try > $sql = "SELECT distinct users.uid , users.username > FROM users LEFT JOIN picks USING(uid) > WHERE picks.users_uid <> users.uid > > Andrey Hristov > IcyGEN Corporation > http://www.icygen.com > 99% > > - Original Message - > From: "Jeremy Morano" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 27, 2001 9:52 PM > Subject: [PHP] clause > > > > Hi, > > > > Can somebody help me out? > > My where clause is completely being ignored. > > More specifically the <>. I tried to use != and that > didn't work either. > > However, when I substitute it with an = , It fuctions > correctly. > > > > Right now, the output is all the users.uid and all the > users.username from > > the table users. > > H E L P ! > > > > > > > > $connection = @mysql_connect("l", "c", "c") or > die("Couldn't connect."); > > > > $db = @mysql_select_db($db_name, $connection) or > die("Couldn't select > > database."); > > > > $sql = "SELECT distinct users.uid , users.username > > FROM users, picks > > WHERE picks.users_uid <> users.uid > > "; > > > > $result = @mysql_query($sql,$connection) or > die("Couldn't execute query."); > > > > > > while ($row = mysql_fetch_array($result)) { > > $uid = $row['uid']; > > $username = $row['username']; > > > > $option_block .= " value=\"$uid\">$username"; > > } > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > = Mehmet Erisen http://www.erisen.com __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Generating Variables
Hi I am trying to auto generate some sql strings. The resulting string should look like this: update $table_name set var1='$var1', var2='$var2' . where id=$id I used a foreach loop to get the keys from a table and in each foreach loop I tried the following. foreach($myrow as $key=>$val) { $var_list .= " $key = '\$$key', "; } The first php page is the "table generator"; VIEW_ALL.PHP "; $myrow = mysql_fetch_assoc($result); echo""; foreach($myrow as $key=>$val) { echo "$key"; } echo""; $count = 2; while($myrow_2 = mysql_fetch_assoc($result_2)) { $id = $myrow_2["id"]; if ($count == 2) { $bgcol = "#FF"; $count = $count - 1; } else { $bgcol = "#EFEFEF"; $count = $count + 1; } echo""; foreach($myrow_2 as $key=>$val) { echo"$val"; } echo"Edit"; echo""; } echo""; ?> Goes through to EDIT.PHP "; echo""; foreach($myrow as $key=>$val) { echo"$key$val"; $var_list_1 .= "$key = '\$$key',"; $count_fields = $count_fields + 1; } echo""; $count = strlen($var_list); $new_count = $count - 1; $var_list_1[$new_count] = ""; echo""; echo""; echo""; ?> And this goes to UPDATE.PHP "; echo "$sql_1 "; echo "result: $result"; ?> This is where the problems comes in, the SQL is not brought over correctly, rather is written "as-is" with the single quotes \-ed out, can someone plz help me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] line by line
Hi All, I need to get info from a flat file line by line. What I need to do is get 3 separate lines and then a paragraph. Can someone point me to a tutorial or info on the subject. TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]