Re: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Michael Davey
> Given $myvar = 5; > > If you use session_register('myvar'); > > Then on another page, do you just access it via $myvar? That is exactly how it works - I also have session.auto_start turned on as well. > And if that's the case, isn't it the same to set > > $HTTP_SESSION_VARS['myvar'] = $myvar;

[PHP] compile problem with gd 2.0.1

2002-05-30 Thread Michael Geier
orce-cgi-redirect --with-pear --enable-mailparse --enable-sockets --with-esoob --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/include --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib any help appreciated -- Michael Geier email: [EMAIL PROTECTED] ---

[PHP] Re: Run php function with user click

2002-05-31 Thread Michael Davey
Not really, seeing as PHP is executed at the server and not on the client - you would need JavaScript for this. Mikey "Dave Shacket" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I know how to have my php code run a function within itself. But is there a > w

Re: [PHP] Regular Expressions...

2002-05-31 Thread Michael Sims
On Fri, 31 May 2002 12:32:29 +0100, you wrote: >example of the contents of $file that might pass is: > >advance_racingx_14_4_29.pdf > >another might be, which would not pass is: > >advance_fork10_3_4_11.pdf If you need it to be in that specific order, use the following: if(preg_match("/advance.

[PHP] Re: PHP can not connect to mysql

2002-05-31 Thread Michael Davey
Check permissions on '/var/lib/mysql/mysql.sock' I seem to remember having this problem in the past... Mikey "Andy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, > > I am runningn suse72 and there was a mysql installation with the rpm > installed.

Re: [PHP] Re: PHP can not connect to mysql

2002-05-31 Thread Michael Davey
s > -- > W: www.londontown.com > @: [EMAIL PROTECTED] > -- > > -Original Message- > From: andy [mailto:[EMAIL PROTECTED]] > Sent: 31 May 2002 15:19 > To: Michael Davey; [EMAIL PROTECTED] > Subject: [PHP] Re: PHP can not

[PHP] Class variables and scope

2002-05-31 Thread Michael Davey
Can anyone here shed some light on this issue? I have a class which is responsible for it's own database access and (some of it) is initalised as below: conn = mysql_connect ($host, $user, $pwd) or die ("Unable to connect to database"); $sel = mysql_select_db ($db, $this->con

[PHP] Re: apache2filter.dll

2002-05-31 Thread Michael Davey
It is called php4apache2.dll Mikey "Herman Pool" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I have downloaded PHP4.2.1 because I want to use it with apache 2.0.36 > But there is no php/experimental/apache2filter.dll file in PHP4.2.1 > Did I m

[PHP] gd project question

2002-05-31 Thread Michael Geier
would I get the x|y coordinates for the end of the needle based on a perentage of a half-circle (180 degree arc)? Appreciate any clues or ideas. --- Michael Geier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class variables and scope

2002-05-31 Thread Michael Davey
I am doing that - sorry, should have given you a bit more code... conn = mysql_connect ($host, $user, $pwd) or die ("Unable to connect to database"); $sel = mysql_select_db ($db, $this->conn); if (!$sel) die ("Unable to select database"); return true; }

[PHP] Re: gd project question

2002-05-31 Thread Michael Davey
offset it by -90. Hope this helps... Mikey "Michael Geier" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have the following issue: > > I am making a "gas guage" based on a percentage. > ie. > - a 180 deg

[PHP] bzip/zlib question

2002-05-31 Thread Michael Davey
I have been looking through the documentation for using Bzip2 or zlib compression and have a couple of questions for the group... 1.Which is best to use on terms of: resultant file size, availability of decompression clients & ease of use? 2.Both bzip & zlib documentation makes use of *w

[PHP] Re: Class/Objects

2002-05-31 Thread Michael Davey
I believe so - but why are you passing a the object a reference to itself? > $bar->db_obj->run_some_code($bar); > $bar->tpl_obj->do_this_for_me($bar); If you need to access parts of the object from within, use the $this-> pointer. > It works but was wondering if its 'legal' to use it like this

[PHP] Re: Newbie question : PHP variables are not posted by this

2002-05-31 Thread Michael Davey
Can you send the code that is failing to the list - it will help in working out the problem... Mikey "FréDéRick St-Hilaire" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It a BASIC question, > > With the following: > > ENCTYPE="multipart/form-data"> >

[PHP] Re: diplaying the path

2002-05-31 Thread Michael Davey
$_SERVER['HTTP_REFERRER'] "Kris Vose" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a variable/function in php that will display the url location of the hyper-link that brought them to the current page. Thanks in advance. > > Kris Vose > -- PHP

Re: [PHP] Run php function with user click

2002-05-31 Thread Michael Sweeney
to run a function or php program is to send a request to the server. When you do that the server sends back a response and your broswer refreshes the page. ..michael.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] gd project question

2002-05-31 Thread Michael Geier
m not getting my head around the numbers...is there anywhere on the net that has a good thorough description about a process like this? Thx. mike > -Original Message- > From: Darren Gamble [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 31, 2002 11:40 AM > To: 'Micha

Re: [PHP] bzip/zlib question

2002-05-31 Thread Michael Davey
So does anyone have any advice on adding files rather than strings? On Fri, 31 May 2002, Michael Davey wrote: > I have been looking through the documentation for using Bzip2 or zlib > compression and have a couple of questions for the group... > > 1. Which is best to use

[PHP] Re: SQL question, getting error and not sure why

2002-05-31 Thread Michael Virnstein
select max(nuacteur)+1 AA from acteursenc), (select 'Michael Sweeney' BB from dual) then in the second do: > select max(nuacteur)+1 AA from acteursenc then in the first > commit and in the second: > select max(nuacteur)+1 AA from acteursenc yo'll see, that

[PHP] Re: SQL question, getting error and not sure why

2002-05-31 Thread Michael Virnstein
nly for the first time and then take it out of the shared pool, if you come along with another value. This is massively important! Same for selcet or other queries. No matter what query, use bindvars. You can read much more in the docs and e.g here: http://asktom.oracle.com/pls/ask/f?p=4950:8:F

[PHP] Re: Parsing file's

2002-05-31 Thread Michael Davey
You should normalise your data - have a field in the second csv that links to the first csv and then you can have as many rows as you want associated with the record in the first file. Mikey "Scott" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a csv

Re: [PHP] php, javascript

2002-05-31 Thread Michael Sweeney
ters () and make sure it is interpreted before sending it back to the browser, it should work. Show us the code you're trying that didn't work. Maybe we can give more meaningful answers. ..michael.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variables - Using The Contents Of A Varibale Name Built Dynamically

2002-06-01 Thread Michael Davey
You could give the button the same name in each form - only the fields in between the tags is actually submitted, then put a hidden field in the form that uniquely identifies the data being submitted. Just a thought... it is what I usually do... Mikey "Jason Teagle" <[EMAIL PROTECTED]> wrote i

[PHP] Possible to convert from Hex string to integer?

2002-06-01 Thread Michael Davey
Does anyone know of a function within PHP that will convert a hexadecimal string (without the leading 0x) into an integer? regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reg exp problems

2002-06-01 Thread Michael Sims
On Sat, 1 Jun 2002 16:56:04 +0100, you wrote: >Hi, >I've never used a reg exp, but I was trying to do something simple, and I just can't >seem to do it :) > >I have a varible $fdata which contains the contents of a webpage, and I want to strip >out the tag. > >I try: >$fdata = preg_replace("",

Re: [PHP] Possible to convert from Hex string to integer?

2002-06-01 Thread Michael Davey
Which is so easy to find in the offline manual... "Stuart Dallas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Saturday, June 1, 2002 at 6:29:59 PM, you wrote: > > Does anyone know of a function within PHP that will convert a hexadecimal > > string (witho

Re: [PHP] Alguine me puede Ayudar...S.O.S...mi PHP no sube .....

2002-06-02 Thread Michael Hall
es un mensaje de Prueba con PHP"; %> > > > > > -- n i n t i . c o m php-python-perl-mysql-postgresql Michael Hall [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] massive words

2002-06-02 Thread Michael Davey
Also, if you are really worried about placing too much load on the server, you could use JavaScript to check the form submission on the client side using the same technique... Mikey "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > First, you

[PHP] Re: Variables - Using The Contents Of A Varibale Name Built Dynamically

2002-06-02 Thread Michael Davey
> Won't that treat all radio buttons on the page as one group, instead of > being separate groups for each form? No - the tags "enclose" the data that is being submitted - nothing outside of the tags will reach the script that handles the request. Mikey -- PHP General Mailing List (http://w

Re: [PHP] 'Pure' php vs 'mixed' (html + php)

2002-06-02 Thread Michael Davey
However... >From the point of view of someone who has worked in a company where diesign is separated from development, it is much better to have separate files with HTML templates with special markers (in the library I use, it is HTML comments ) so that the two processes are adequately separated.

Re: [PHP] 'Pure' php vs 'mixed' (html + php)

2002-06-02 Thread Michael Davey
> Point well-made. I suppose doing it the mixed way might have repercussions > later on if/when the site grows. Perhaps while the code is still fresh in my > mid, it might be worth the effort to separate it. > > However, for a good part of the site, I've used CSS for appearance details, > and cont

[PHP] preg_match_all href|src function

2002-06-02 Thread Michael Elms
variations... preg_match_all("|href=\"?([^\"' >]+)|i", $data, $links); I tried the preg_match_all below, but that didn't work... preg_match_all("|(href|src)=([^\"']+)?([^\"' >]+)|i", $data, $links); Any help would be

Re: [PHP] process php script at regular intervals

2002-06-03 Thread Michael Hall
eck the details there. This assumes that you are on a Linux/UNIX server, and that PHP is an Apache module, not a standalone CGI installation (where you could call the script directly without using Lynx). Michael Hall On Mon, 3 Jun 2002, daniel cozzolino wrote: > I want to have a php script pr

[PHP] php4win.com

2002-06-03 Thread Michael Davey
I originally posted this to the PHP-WIN list but there doesn't seem to be anyone there... maybe you guys can help? Does anyone know what has happened to the php4win.com web-site? I have been trying to get there now for the best part of a month and still get site errors. regards, Mikey -- P

Re: [PHP] INT function?

2002-02-20 Thread Michael Sims
At 05:06 PM 2/20/2002 -0800, James Taylor wrote: >$x = 7; >$y = 3; > >$z = $x / $y; > >I want $z to equal 2. In perl it would be > >$z = int($x / $y); This is untested, but: $z = (int) ($x / $y); Should work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] Re: Help needed - need to access a value from DB into all pages

2002-02-21 Thread Michael Kimsal
Janet, I think you probably need to investigate the concept of sessions. You were a bit sketchy on details, but it sounds like this is what you want. If you'd like more help, post to the list, or contact me directly at [EMAIL PROTECTED] (aim:mgkimsal) Wg4- Cook wrote: > Hi there, > > I am st

Re: [PHP] overwriting PHP_SELF and PHP_AUTH_xxxx

2002-02-22 Thread Michael Romagnoli
I have a special set of information retrieved from a while loop that I would like a person to be able to edit and send back into a MySQL table. I know all of the basic MySQL commands for doing such, but the PHP side to get the input from the form to go in is really stumping me. This is what I h

[PHP] Getting the data for MySQL and then putting it back with PHP - at a loss!

2002-02-22 Thread Michael Romagnoli
I have a special set of information retrieved from a while loop that I would like a person to be able to edit and send back into a MySQL table. I know all of the basic MySQL commands for doing such, but the PHP side to get the input from the form to go in is really stumping me. This is what I h

[PHP] Re: Newbie on Sessions/Pages Management

2002-02-23 Thread Michael Kimsal
Alexander P. Javier wrote: > I'm very new to PHP, as a matter of fact, I never had any experience anything about >web-enabled applications development. I've been more into local Visual Basic and MS >SQL Serve devt. If there's any kind soul out there, please HLP > > The question

[PHP] help a newbie out...

2002-02-23 Thread Michael Zornek
I'm getting a parse error with the following on line 9 http://www.applestudentdevelopers.org/testbed/ASD_PrintEmailLink.phps any clue? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Perso

Re: [PHP] help a newbie out... FIXED

2002-02-23 Thread Michael Zornek
Twas 2/23/02 11:27 PM, when "Michael Zornek" <[EMAIL PROTECTED]> said: > I'm getting a parse error with the following on line 9 > > http://www.applestudentdevelopers.org/testbed/ASD_PrintEmailLink.phps > > any clue? Fixed, I figured it out.. I forgot to

[PHP] Re: Email Verification

2002-02-24 Thread Michael Kimsal
Steven Walker wrote: > Does anybody know any good ways (or available code) for verifying email > addresses? > > Checking syntax is not enough.. I'd like to actually be able to test > whether the email address exists. Nothing is 100%, so don't exclude people because you can't verify them. The

[PHP] Re: GD - dynamic PNG generation

2002-02-25 Thread Michael Kimsal
Holy cow that's a big graphic. 20 seconds does sound a tad long, but might not be depending on the server and memory - what are the specs? What might possibly speed it up a bit is to create multiple small versions first (20 one line graphics, for example) and build them all together at the en

[PHP] str_replace and associative arrays

2002-02-25 Thread Michael Crowl
I haven't been able to find any leads on this in the archives, nor in the documentation, so here goes. When feeding an associative array to str_replace as the subject, does it still return an associative array? My instance: extract(str_replace(",","",$result_row)); After pulling an associativ

[PHP] RE: str_replace and associative arrays

2002-02-26 Thread Michael Crowl
later, every parameter to str_replace() can be an array. " > > I tried a test case (php 4.0.0) and found that if I passed an array in as > the subject the search and replace was performed on the string "array". > > Tim Ward > Internet chess www.chessish.com <ht

[PHP] Re: Login to account

2002-02-26 Thread Michael Kimsal
too). If you're looking for a personal site, or learning, or a proof of concept, there are many good code examples and tutorials at places like zend.com and phpbuilder.com. (and weberdev.com if memory servers, right boaz?) :) Good luck. :) Michael Kimsal 734-480-9961 -- PHP Ge

Re: [PHP] "cool" PHP sites

2002-02-27 Thread Michael Egan
, Michael Egan Chris Lott wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > It strikes me that my students really don't have a good grasp of what PHP > is capable of doing, since they are getting bogged down in learning the > minutiae of the language itsel

[PHP] Re: Array or SQL?

2002-02-28 Thread michael kimsal
ndex. It'll handle multiple words in a phrase, and filter out stop words, etc. It's pretty handy, and can return 'relevance', although it won't be '# of times word occured' as you're looking for. Contact me if you want more info. Michael Kimsal http://www.ph

Re: [PHP] Upgrading PHP

2002-02-28 Thread Michael Kimsal
without having to recompile Apache again in the future. It's apparently a small performance hit, but I've not been able to notice any sizable decrease in performance on production servers we work with using the DSO system. Hope that helps. -- Michael Kimsal http

Re: [PHP] can I sandwich html docs with PHP

2002-03-01 Thread Michael Kimsal
t; Peter > I think you'll have to use url rewriting for this. Not as tight integration as mod_perl, but if you have to use it, that's probably your only option at this point. Good luck! Michael Kimsal http://www.phphelpdesk.com Taking the ? out of http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Non printable page

2002-03-01 Thread michael kimsal
Diana Castillo wrote: > Is there any way tomake a page that cannot be printed?? > GZIP the page and force the end user to use Netscape. ??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Non printable page

2002-03-03 Thread Michael Kimsal
Lars Torben Wilson wrote: > On Fri, 2002-03-01 at 20:03, michael kimsal wrote: > >>Diana Castillo wrote: >> >>>Is there any way tomake a page that cannot be printed?? >>> >>> >> >>GZIP the page and force the end user to use Netscape. ?

[PHP] Re: Arrays/OOP

2002-03-05 Thread Michael Kimsal
e code, I can't say for certain, but I suspect that instead of $event_object->init you need to call $this->init. Does that do the trick? Wait - I looked above. $event_object = new event(). What is the class definition for "event"? Could you send more code? Michael Kims

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Michael Kimsal
Joshua E Minnie wrote: > Michael Kimsal wrote: > > Attached you will find the class definition. Thanks in advance.. > > Joshua E Minnie > CIO > [EMAIL PROTECTED] > What version of PHP are you using? I took the file and it seemed to work OK in PHP 4.0

[PHP] Re: Is there a "GoTo Page" Function?

2002-03-05 Thread Michael Kimsal
m call itself, then when it's done, use a HEADER tag with location: to redirect header("Location: newpage.php"); Hope that helps. Michael Kimsal http://www.phphelpdesk.com 734-480-9961 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OOP .. I just don't get it.

2002-03-05 Thread Michael Cronström
Hi ...suggest u take a look at this article by Kevin Yank at SitePoint: http://www.webmasterbase.com/article/662 . I think he is a great author of small and efficient articles! Web inventor Michael Cronstrom At 21:22 05/03/02, you wrote: >Hi > >I've been using php for a w

[PHP] Re: FYI Using Qmail & PHP

2002-03-06 Thread Michael Kimsal
Steven Walker wrote: > For some reason (I don't know why) qmail doesn't like the CRLF. > Probably because Dan Bernstein didn't invent it. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP-Based Authentication Security?

2002-03-06 Thread Michael Kimsal
ring to mind: 1. Do you mean 'authenticated' as in 'Apache-level' authentication, or PHP-level authentication? 2. If you need to have every request go through PHP, perhaps a URL rewriting solution would work - everything it rewritten to go through PHP, then it can decide

[PHP] Re: How are they doing it?

2002-03-06 Thread Michael Kimsal
uest by parsing an email, then sending results back. If anyone gets 'redbook' magazine, you may have read about pillowmail.com - again, a client of ours using PHP and parsing thousands of emails per day with procmail/PHP. Michael Kimsal http://www.phphelpdesk.com 734-480-9961 -- PHP

[PHP] Re: HELP UNIX vs Windows

2002-03-06 Thread michael kimsal
e explode() or split() instead? list($category,$sku,$name,$sub,$price,$etc) = split("|",$cartFile[$i]); (might need to be "\|" instead of "|" - I can't remember, it's late, and I don't have easy access to test it. :0 --- Michael Kimsal http://www.phphelpdesk.com 734-480-9961 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include() and paths

2002-03-06 Thread michael kimsal
going on under the hood with respect to includes under ASP - if you want gorey details let me know. :) After writing all this I see it's basically a rehash of the 9/2/2001 posting in the user comments under include at the php manual site. Is there a reason one of those 3 options isn'

[PHP] Congrats to Rasmus?

2002-03-07 Thread Michael Kimsal
It doesn't seem to have been mentioned here unless my newsfeed is very slow, but phpdeveloper.org has a quick mention of the new addition to Rasmus' family. http://www.phpdeveloper.org/ "Well, everyone's favorite PHP developer multiplied last night - Rasmus Lerdorf now has a son (9.0lbs, 19.2

[PHP] Re: require v. includes

2002-03-07 Thread Michael Kimsal
d more than once during a particular execution of a script, and you want to be sure that it is included exactly once to avoid problems with function redefinitions, variable value reassignments, etc. Michael Kimsal http://www.phphelpdesk.com Taking the ? out of http://www.php.net/) To unsubscribe,

[PHP] Re: User accounts

2002-03-07 Thread Michael Kimsal
e to have the username or password in them at that point (only when they submit their login data). Michael Kimsal http://www.phphelpdesk.com Taking the ? out of http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mcrypt? - Can't find any good info

2002-03-07 Thread Michael Kimsal
CRYPT_BLOWFISH_128, $key, $password, MCRYPT_ENCRYPT); > > print("$code = enc w/ $key"); > } > > encryptPassword("testing"); > ?> > > And i can't find any documentation on what might be causing this... anyone > out there know? > Is mcr

[PHP] Re: PHP vs object.record set

2002-03-07 Thread Michael Kimsal
that going 'back and forth' in a recordset comes at the expense of a great amount of speed. MS and others will tell you that for good performance you should use 'forward only' recordsets, so it's of limited value to many people anyway. -- Mich

[PHP] Re: Dbconnect

2002-03-07 Thread Michael Kimsal
Josiah Wallingford wrote: > I have a file called dbconnect that stores all of my mysql information > (host, user, pass) up until now I have always just used localhost as the > hostname because it was on my local server. My question is what do I have to > do to connect to a different server? Do I j

[PHP] Configuring /etc/syslog.conf to redirect PHP errors to a separate file

2002-03-08 Thread Michael Sims
I'd be extremely grateful for any assistance... ----- Michael Sims mhsims at midsouth dot rr dot com "The Web site you seek Can not be located but Countless more exist." - -- P

Re: [PHP] Configuring /etc/syslog.conf to redirect PHP errors to a separate file

2002-03-08 Thread Michael Sims
At 12:07 AM 3/9/2002 +0800, Jason Wong wrote: > > I'd love to be able to send any errors from PHP to a completely separate > > file, say something like /var/log/php_errors. Does anyone know of a way to > > do this? I gather it has to do with using /etc/syslog.conf to redirect > > messages from a

[PHP] Re: Graphing Question

2002-03-08 Thread Michael Kimsal
Chris Seymour wrote: > Hi All, > Does anyone know of a graphing package that will allow a line graph with > labels on the data points? > > Thanks in advance. > > Chris > Try JPGRAPH at: http://www.aditus.nu/jpgraph/ Michael Kimsal http://www.phphelpdesk.com

[PHP] Re: problem with mysql persistent connections; already read the FAQ!

2002-03-08 Thread michael kimsal
reetds had a problem letting go of handles on the apache exit cycle). In short, if you're looking to load balance a high load, pconnects can help, but smart web serving architecture can help too (possibly moreso all around). > > I did read the alt.comp.lang.php FAQ, but it didn't

[PHP] Re: Can Anyone translate my script to php?

2002-03-10 Thread Michael Kimsal
e, but most versions before have it come by default. The server admin may have disabled it, but by default that happens. If it's not on, you could add a line to make it: --- Michael Kimsal http://www.phphelpdesk.com/ Taking the ? out of http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: A stupid question...

2002-03-10 Thread michael kimsal
e of "adams", "aames", "aston", etc. would all match. I know there's someway to have mysql do a string manipulation to compare just part of a column's data with something, so you could do something similar to a 'substr' in PHP - but it

Re: [PHP] Sessions / MySQL

2002-03-11 Thread Michael Egan
and the more recent 'Professional PHP4' to be invaluable. Hope this helps, Michael Egan Chris Kay wrote: > > I am wanting to store session data in a mysql db.. > I have looked at a few examples and still cant get them to work > > Rather than asking for the answer, I perfer

Re: [PHP] "undefined symbol: compress" during install?

2002-03-11 Thread Michael Sims
At 05:58 PM 3/11/2002 -0500, Erik Price wrote: >Ho! I have just RTFG'd, which I wish I had done before posting. Looks >like I have omitted the --with-zlib parameter in the ./configure of >PHP. I had it last time b/c I was following a tutorial, and omitted it >this time since I didn't think I

[PHP] "Double free" zlib bug ... does PHP need to be recompiled?

2002-03-12 Thread Michael Sims
Some of you may have heard news about the "double free" bug in the zlib libraries that many Linux programs use: http://www.kb.cert.org/vuls/id/368819 http://www.redhat.com/support/errata/RHSA-2002-026.html There is a quote on the Redhat errata page that got me thinking: "Additionally, if you h

[PHP] Re: Get row number from mysql

2002-03-13 Thread michael kimsal
. second person > 3. third person > > and so on and so forth. > > Can anyone advise me on how I should do this? > > thanks, > Tyler > > Why not just put a counter in there? while ($row = mysql_fetch_array($sql)) { ++$counter; $id = $row["

Re: [PHP] regular expression for (NOT 'word')

2002-03-14 Thread Michael Sims
At 05:52 PM 3/14/2002 +0200, Ando Saabas wrote: >Ok let me explain my problem further some. I need the regular expression to >purify the html page from script tags: >I used: $file = eregi_replace("(.*)", " ", $file); >Now this works fine, until theres a webpage like: > >script data. >Some webpage

Re: [PHP] Deleteing folders containing files...

2002-03-15 Thread Michael Sims
At 09:36 AM 3/15/2002 +, Philip Jeffs wrote: >Hi, > >Does anyone know of an 'easy' way to delete folders that contain files and >sub-folders? Here's what I use (use rmdirRf($folderthatcontainsotherstuff)): read())) { if ($filename != "." && $filename != "..") { rmdirRf($

Re: [PHP] Mulitple ini files?

2002-03-15 Thread Michael Sims
At 03:59 PM 3/15/2002 -0600, charlesk wrote: >I have many sites and all are virtual hosts. I would like IIS to specify >the home directory, for html, gifs, jpgs... and all of the php files to be >somewhere else in the filesystem, specified by the php.ini. There is a thread archived on Google t

Re: [PHP] From: Newman, PHP on non PHP servers?

2002-03-16 Thread Michael Geier
create a page on the PHP server that returns the results as an html page... than use an include or frameset to put the results into the geocities page... if it wasn't a geocities site, you could use an SSI include or PHP include. -- Michael Geier CDM Sports, Inc. - Systems Administ

Re: [PHP] replacing all non [a-z] chars possible?

2002-03-17 Thread Michael Sims
At 02:31 PM 3/17/2002 +0100, andy wrote: >Hi there, > >I am wondering if it would be possible to replace all chars which are not >inbetween [a-z] with a valid asccii coresponding to it. I have a db with a >bunch of citynames and I would like to create valid filenames out of those. >The prob is, th

[PHP] empty lines cause http headers?

2002-03-17 Thread Michael Zornek
I'm writing a page that will do a little snooping into a db (based on a previous form submit) and start a session based on the results. The problem is that PHP seems to be sending the HTTP headers when it encounters the first blank line in the code (which I do use to help separate the code a bit)

Re: [PHP] empty lines cause http headers? [FIXED]

2002-03-17 Thread Michael Zornek
Twas 3/18/02 12:21 AM, when "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> said: > Just make sure the blank lines are > > If they're out in the raw HTML area, the headers will get packaged up and > the content output buffer collection will begin. After some investigation I saw an extra space after th

Re: [PHP] object reflection in php?

2002-03-18 Thread Michael Kimsal
his point. With your example, you still need to know the field name, which is what he's trying to avoid. Filippo, I think what you're looking for is: get_object_vars more info at http://www.php.net/manual/en/function.get-object-vars.php Does that help? Michael Kimsal http://www.phphelpdesk.com Taking the ? out of http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] object reflection in php?

2002-03-18 Thread Michael Kimsal
ty to a specific table column in a database, serializing wouldn't help. Michael Kimsal http://www.phphelpdesk.com Taking the ? out of http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $$

2002-03-18 Thread Michael Sims
At 03:58 AM 3/19/2002 +, mm fernandez wrote: >variables begin with a $ sign. but what does it mean if it begins with 2 $ >signs? (i.e. $$var) http://www.php.net/manual/en/language.variables.variable.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] new to php/mysql - insert not working

2002-03-20 Thread Michael Egan
ry in isolation. Good luck, Michael > The following code gets me "document contains no data." I have done a > successfull select from mysql db, but not an insertion. > > I don't know how to troubleshoot this. Any help is much appreciated. > Thanks! > >

[PHP] Re: Advice needed

2002-03-22 Thread michael kimsal
on the pricings of quantity1? Could you explain your problem in more detail (offlist is fine if you want). -- Michael Kimsal http://www.phphelpdesk.com Guaranteed PHP support 734-480-9961 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Drawing graphs - opinions

2002-03-22 Thread michael kimsal
it? Is there something it's missing? -- Michael Kimsal http://www.phphelpdesk.com Guaranteed PHP support 734-480-9961 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] socket functions and singnals

2002-03-24 Thread Michael Govorun
Socket functions, such as socket_read(), socket_accept() blocking signal handling in php-processes. Is it bug? Is there any way to use signals and socket_accept() together? Please, help! -- Michael Govorun -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Why?

2002-03-30 Thread Michael Kimsal
now, they have no specific connotation, but they've been used as placement holder names since at least the early 80's when I started programming. Michael Kimsal http://www.phphelpdesk.com PHP support when you need it 734-480-9961 -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] ask for suggestion about printing

2002-04-01 Thread Michael Kimsal
stributable. It's fine for some situations, but it's not *free* for all uses. There are actually quite a number of scenarios I come across where PDFLIB isn't a 'free' package, but requires someone to pay. "implementing commercial Web services with PDFlib

[PHP] Re: tired by linux - recompiling.._PHP SERVER

2002-04-01 Thread Michael Kimsal
Septic Flesh wrote: > anyone found any webserver for linux to support HTML - PHP - SSL without > much/any compiling . . > just the binary to uncompress and run .??? > > I am really tired by linux.. > > Most Linux distributions come precompiled with PHP and SSL in Apache by default. RedHa

[PHP] Re: Including Picture in PHP

2002-04-02 Thread Michael Virnstein
if the output of graph.php is a URL, your code should work. if graph outputs the image itself, you have to do it a bit different: in the html it should look like: and graph.php should do something like: header("Content-Type: image/gif"); echo $imagecontent; Hope that help

[PHP] Re: preventing "back" button usage?

2002-04-02 Thread Michael Virnstein
This is not possible. You cannot force the browser not to go back in its history, don't even trie to find a solution for this... the question you should ask yourself is not how to disable the browser history but how you can prevent your page by getting screwed by multiple posts. "Erik Price" <[EM

[PHP] PHP that will help me color code, code; like C++ on a HTML page?

2002-04-02 Thread Michael Zornek
As you may see from the footer I run a dev site. I'm interested in finding some PHP that will help me show color syntax-ed code in html. like you could imagine a tutorial about Obj-C .. and code snippets. I'd like to have those snippets color coded for Obj-C syntax. anyone know if this is possib

[PHP] anyone using CVS for PHP dev?

2002-04-03 Thread Michael Zornek
I've been learning a little bit about CVS and am considering using it for dev of some group PHP sites. Anyone doing this? comments? ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.applestudentdevelopers.org Personal

Re: [PHP] anyone using CVS for PHP dev?

2002-04-03 Thread Michael Sims
On Wed, 2002-04-03 at 04:00, Michael Zornek wrote: > I've been learning a little bit about CVS and am considering using it > for dev of some group PHP sites. > > Anyone doing this? comments? I've been using CVS for all of my PHP projects for the past several months. Now

Re: [PHP] strip spaces from inside string

2002-04-05 Thread Michael Virnstein
tespace character: $str = "abc def ghi"; $str = preg_replace("/\s/", "", $str); echo $str.""; // - ?> preg_replace is quite powerful, so if you only want to strip some spaces, you should prefer str_replace. Always think about how many power you need

<    6   7   8   9   10   11   12   13   14   15   >