RE: [PHP] Newbie Question.. (MySQL/PHP)

2001-09-06 Thread Jack Dempsey
sure, am actually doing this right now ;-) It depends on how fancy you want to get...if you don't mind slicing off in the middle of a word, you can just do this: $preview_text = substr($text,0,200) . '. . .'; //gets the first 200 characters and adds an ellipsis afterwards if you want to make sure

Re: [PHP] Newbie Question.. (MySQL/PHP)

2001-09-06 Thread David Robley
On Fri, 7 Sep 2001 16:49, [EMAIL PROTECTED] wrote: > Hey guys, > > I have a mysql database of articles, and what i'd like to do is make 1 > page that shows a brief sneak peak of each article, so what I would do > is, show the first 50 or so words of each article and then add an > elipses at the e

[PHP] Re: Assigning PHP Session ID's as cookie with a time set to it?

2001-09-06 Thread Richard Lynch
Read php.ini Also read http://php.net/session -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - Fro

[PHP] Re: Executing a CGI script from a PHP script

2001-09-06 Thread Richard Lynch
Try using virtual instead of exec, I think... Otherwise, I'm guessing you want to walk through all of $HTTP_ENV_VARS and build up a command line with each one being set followed by a ; and then your actual CGI to run. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PR

[PHP] Re: PHP4 Session Handling

2001-09-06 Thread Richard Lynch
> 1) Added this line into the .htaccess file: php_value session.save_handler > user I would have expected this to work, since it happens before PHP gets involved... > 2) session_module_name("user"); > 3) ini_set("session.save_handler", "user"); Speculation: These would not work *if* the php.in

[PHP] Newbie Question.. (MySQL/PHP)

2001-09-06 Thread nate
Hey guys, I have a mysql database of articles, and what i'd like to do is make 1 page that shows a brief sneak peak of each article, so what I would do is, show the first 50 or so words of each article and then add an elipses at the end. I'm sure it can be done but I wouldn't have a clue where

Re: [PHP] Does PHP work with Sybase ASA?

2001-09-06 Thread Rasmus Lerdorf
Perhaps people expected you to check the docs or the code yourself. If you go to php.net/sybase you will find the functions you need. If you read the user comments on that page you will even find urls to tutorials/faqs on how to install and configure things for PHP to talk to Sybase ASA. eg. ht

[PHP] Does PHP work with Sybase ASA?

2001-09-06 Thread Davor Pleskina
2nd time, seem that last time nobody saw my question... I mean, is there in PHP support for Sybase Adaptive Server Anywhere, any version, like for MySQL and some other databases? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] Re: Function call introspection: possible or not?

2001-09-06 Thread Christopher CM Allen
> > Is there any way for a function to determine the name of the calling > > function? This would be very useful!! Great Idea! -- 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 ad

[PHP] Re: how do I?

2001-09-06 Thread Adrian D'Costa
On Thu, 6 Sep 2001, _lallous wrote: > onMouseOver="info( > Dunno, should this be: onMouseOver="info(' instead? > I mean I see no quotes surrounding the javascript string (that is generated > from PHP). ok, that what a typo. As I said eariler. The script works fine if text in the table is a sin

[PHP] Delivering an authenticated pdf

2001-09-06 Thread George Pitcher
Hi all, I want to be able to, after authentication, read a pdf into a string and then write it out to the client through the browser. I can't do all of the procedure in PHP as it's an add on to a Lasso/Filemaker site. I can handle the transfer between the two processes, I just need to do the wri

[PHP] Re: Question about running php as root

2001-09-06 Thread Richard Lynch
Why do you need the DSO to run as root?... If it's just to do a specific task, it may be easier to write a shell script (or PHP script, or Perl script) and suid it so that "nobody" can do that one specific task that requires root access. -- WARNING [EMAIL PROTECTED] address is an endangered spec

[PHP] Re: newbie looking to sync access with MySQL

2001-09-06 Thread Richard Lynch
> I have a potential customer that just called and would like to create a web > site that would display secure info for their clients. Currently his > employees are using a flat Access database to add, edit and delete records > and he would like to keep it that way. > > Normally I would create a w

[PHP] Re: Very urgent for being help!!!

2001-09-06 Thread Richard Lynch
Use a "cursor" in Oracle. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Duy B <[EMAIL PRO

RE: [PHP] Grabbing dynamic pages

2001-09-06 Thread Joseph Blythe
This is true this is exactly why i try and find a solution here first (with PHP), my bosses attitude was to hire java programmers i said 'why?'. I also noticed getss which strips stuff on the read which is kinda cool too (c: Joseph -Original Message- From: David Robley [mailto:[EMAIL PR

[PHP] Re: Error while saving attachments (jpegs)

2001-09-06 Thread Richard Lynch
Try opening the origianl and downloaded files in a text editor and see if you can spot the differences... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://

RE: [PHP] Grabbing dynamic pages

2001-09-06 Thread Joseph Blythe
hmm just tried exact code still same error, I am going to have to have a little talk to our internet manager as he has done some pretty nasty stuff to our border. what i do find starnge is no errors are produced when I exclude all the query stuff eg: $fp = fopen("http://www.asx.com.au","r";); Th

Re: [PHP] Grabbing dynamic pages

2001-09-06 Thread David Robley
On Fri, 7 Sep 2001 14:44, Joseph Blythe wrote: > Hey all, > > I got a bit of a problem I need to be able to grab info (which has been > approved) from the Australian Stock Exchange Website (www.asx.com.au) > all they say about this in the information they sent me is: > > "To obtain your share pri

RE: [PHP] Grabbing dynamic pages

2001-09-06 Thread Rasmus Lerdorf
This script worked fine for me here: http://www.asx.com.au/scripts/nd_ISAPI_50.dll/asx/research/CompanyInfoSearchResults.jsp?searchBy=asxCode&allinfo=on&asxCode=asx&companyName=&principalActivity=&industryGroup=0","r";); while(!feof($fp)) echo fgets($fp,1024); fclose($fp); ?> Firewall in the way

[PHP] Re: How to implement e-mail facility?

2001-09-06 Thread Balaji Ankem
hi! , mine is windows 98 machine. Not linux. anyway i am using my company mail server. I am finding php.ini in c:\pear\tests directory instaed of c:\windows and it does not contain anything. It has following stuff only. >>> ; php.ini for PEAR tests in

RE: [PHP] Grabbing dynamic pages

2001-09-06 Thread Joseph Blythe
Thanks all (c: > Why don't they make this available via XML? Parsing HTML is painful. Was my exact question to them (c: > That just shows a chart. How are you supposed to parse anything out of > that? Hehe I provided the wrong url should something like: http://www.asx.com.au/scripts/nd_ISAP

[PHP] Re: PHP/Java, Receiving Error message.

2001-09-06 Thread Richard Lynch
> Warning: java.lang.NoSuchMethodException: initialize > > Now this method definitely exists. The syntax I am using is as follows: > > $Class = new Java("long.path.to.class"); > >$Method = $Class->initialize("12345", "George", "123 spiff Street", > "suite 121", "Hometown", "USA", "12345", "UP

Re: [PHP] Grabbing dynamic pages

2001-09-06 Thread Rasmus Lerdorf
> "To obtain your share price data you will need to get your IT department > to write a java object or a com active x object to strip out the unnecessary > html so that you are just left with your share price information." Why don't they make this available via XML? Parsing HTML is painful. > I

[PHP] Re: UD4 & PhAkt Users?

2001-09-06 Thread Richard Lynch
> (and whether that's a pain to do) or if just uploading files and testing > that way is a viable alternative. Just upload and test is what *I* would recommend for a beginner. If it's a live site, set up a second directory for development so you can test before you copy over to live. Switching

[PHP] Re: Now Here's a Winner

2001-09-06 Thread Richard Lynch
Different versions of different browsers use different headers or variants of headers to decide how to fill in the file name prompt. You may even want to make the URL that the form ACTION points to be: ACTION=whatever.php/export.csv So that the really dumb browsers will think they are accessing

[PHP] Re: php.ini not being read

2001-09-06 Thread Richard Lynch
Is php.ini readable? Any messages in your Apache error log? Are you 100% sure you really killed Apache and restarted?... I've had cases where I managed to install the new Apache in a different location, and ended up with two different sets of httpd's running. Quite disconcerting. -- WARNING [

[PHP] Grabbing dynamic pages

2001-09-06 Thread Joseph Blythe
Hey all, I got a bit of a problem I need to be able to grab info (which has been approved) from the Australian Stock Exchange Website (www.asx.com.au) all they say about this in the information they sent me is: "To obtain your share price data you will need to get your IT department to write a j

[PHP] Re: Table Search

2001-09-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Devon) wrote: > $result = mysql_query ("SELECT * FROM enet > WHERE TechContact LIKE '$TechContact%'"); You haven't fetched any rows, so the next line isn't coming from the query result. Use one of the mysql_fetch_*()

[PHP] PHP complains when using similar_text() as documented.

2001-09-06 Thread Peter Hutnick
http://www.php.net/manual/en/function.similar-text.php states that the third argument should be a reference. PHP 4.0.6 complains "Warning: Call-time pass-by-reference has been deprecated - argument passed by value;" etc. But that percentage (double) is only available this way . . . Where am I g

Re: [PHP] HTML mail

2001-09-06 Thread Alex Shi
Hi Sid, Following link is an article about sending MIME email in php: http://www.phpbuilder.com/columns/kartic2807.php3 But I think it is too complicated for me to read:((. I suggest you can try following instead: $email_address="[EMAIL PROTECTED]"; $subject="anything you can do"; $email_

RE: [PHP] HTML mail

2001-09-06 Thread Jason Murray
> How would you send HTML mail using the mail() function in PHP. You need to use a MIME email - HTML goes as text/html, and graphics go as file attachments. Simple way to produce a MIME email: http://planetkiller.shadow.net.au/mime-php.txt Jason -- PHP General Mailing List (http://www.php.ne

Re: [PHP] what will be the output for this pgm?

2001-09-06 Thread Sid
Of course there will not be any output. That's because when you type in the directly type the url in the browser there will not be any referer. Try putting a link from another domain to that page and you will get some output then / try visiting the page through a search engine. i.e make the pa

Re: [PHP] Wierd for thingy, help!

2001-09-06 Thread Sid
Of cource you can. In the second page just ask PHP to echo the variable in the space where the text box accepts preset values some thing like this " size="30"> where $variable is a variable that is sent from the previous page. Hope this helps At 11:38 AM 9/4/01 -0700, you wrote: >Ok sorry fo

[PHP] HTML mail

2001-09-06 Thread Sid
hi, How would you send HTML mail using the mail() function in PHP. SID -- 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] Netscape & Cookies

2001-09-06 Thread Jochen Kaechelin
> SetCookie("bilderanzeige",$bilderanzeige,time()+3600*24*30,"/","",0); > > Works fine in IE and Opera! > > Could anyone help, please! > > What's in $bilderanzeige? $bilderanzeige = "ja" or $bilderanzeige = "nein" Jochen -- PHP General Mailing List (http://www.php.net/) To un

RE: [PHP] Netscape & Cookies

2001-09-06 Thread Jason Murray
> SetCookie("bilderanzeige",$bilderanzeige,time()+3600*24*30,"/","",0); > > Works fine in IE and Opera! > Could anyone help, please! What's in $bilderanzeige? Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" -- PHP General Mailing List (http://www

Re: [PHP] Table Search

2001-09-06 Thread Chrisy
[EMAIL PROTECTED] (David Robley) typed on Fri, 7 Sep 2001 10:16:57 +0930, : |On Fri, 7 Sep 2001 10:11, Devon wrote: |> Below is an example of my code which searches a table and prints the |> result, the problem is that it only displays the TechContact where I |> want it to display all the fields

[PHP] Netscape & Cookies

2001-09-06 Thread Jochen Kaechelin
Netscape does not accept the following: SetCookie("bilderanzeige",$bilderanzeige,time()+3600*24*30,"/","",0); Works fine in IE and Opera! Could anyone help, please! Jochen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

[PHP] More info on BCC? (was Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?)

2001-09-06 Thread elists
What's the reasoning behind that number? (330-) I'm about to implement something similar, using BCC (since the emails don't need to be personalized). I've searched in the past for the answers to 2 questions, but haven't had any luck. Can you shed any light on the issue? 1. Is there a limit on

[PHP] Re: multi updates

2001-09-06 Thread Gary
Thanks Chris, it was the missing where statement. Gary Chris Lee wrote: > where's the form, maybe the problem is there. your update query has no where > statment, this isnt syntaxicaly incorrect, its just rare that you need to > update every single element in the database to the same value. eve

Re: [PHP] Table Search

2001-09-06 Thread David Robley
On Fri, 7 Sep 2001 10:11, Devon wrote: > Below is an example of my code which searches a table and prints the > result, the problem is that it only displays the TechContact where I > want it to display all the fields that associated with it in that row > off the colum eg. Mobile, AdminContact etc

Re: [PHP] config options

2001-09-06 Thread Martín Marqués
On Jue 06 Sep 2001 21:39, David Robley wrote: > On Fri, 7 Sep 2001 10:04, Martín Marqués wrote: > > On Jue 06 Sep 2001 21:31, David Robley wrote: > > > On Fri, 7 Sep 2001 09:56, Martín Marqués wrote: > > > > I there a way to get the config options with which the php binary > > > > (as a binary o

[PHP] Table Search

2001-09-06 Thread Devon
Below is an example of my code which searches a table and prints the result, the problem is that it only displays the TechContact where I want it to display all the fields that associated with it in that row off the colum eg. Mobile, AdminContact etc etc Any suggestions? if ($TechContact == "")

Re: [PHP] config options

2001-09-06 Thread David Robley
On Fri, 7 Sep 2001 10:04, Martín Marqués wrote: > On Jue 06 Sep 2001 21:31, David Robley wrote: > > On Fri, 7 Sep 2001 09:56, Martín Marqués wrote: > > > I there a way to get the config options with which the php binary > > > (as a binary or as an apache module)? > > > > > > Saludos... :-) > > >

[PHP] Re: Releasing Your Code

2001-09-06 Thread Chris Lee
www.mediawaveonline.com/examples/ bsd licence, im not to picky, as the url sujests their examples, do what you wish with them, give me credit if you eel its worth it, if you feel not worth it, dont give me credit, I dont care. comments? some have comments, you can figure it out, the code is free

Re: [PHP] config options

2001-09-06 Thread Martín Marqués
On Jue 06 Sep 2001 21:31, David Robley wrote: > On Fri, 7 Sep 2001 09:56, Martín Marqués wrote: > > I there a way to get the config options with which the php binary (as a > > binary or as an apache module)? > > > > Saludos... :-) > > It is one of the things shown by phpinfo() Yes, I know. But i

Re: [PHP] config options

2001-09-06 Thread David Robley
On Fri, 7 Sep 2001 09:56, Martín Marqués wrote: > I there a way to get the config options with which the php binary (as a > binary or as an apache module)? > > Saludos... :-) It is one of the things shown by phpinfo() -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTR

[PHP] Re: this newsgroup via newsgroup program?

2001-09-06 Thread Chris Lee
I use Outlook Express and Im posting this via news.php.net into php.general -- Chris Lee [EMAIL PROTECTED] "Chris Hayes" <[EMAIL PROTECTED]> wrote in message 3B981E0F.25754.4210CA@localhost">news:3B981E0F.25754.4210CA@localhost... > hi, > from http://www.php.net/support.php i get the > imp

[PHP] Re: multi updates

2001-09-06 Thread Chris Lee
where's the form, maybe the problem is there. your update query has no where statment, this isnt syntaxicaly incorrect, its just rare that you need to update every single element in the database to the same value. everything else looks ok, what exactly is the error/warning ? you dont accually need

[PHP] Module/PHP conflict

2001-09-06 Thread Michael Cronström
php_dbg.dll, required for PHPEd as well as DBG debugger, works fine on Windows 98SE, PWS and PHP 4.04. However, when I upgrade to PHP 4.0.6 (CGI binary) and change server to Apache/1.3.20 (Win32) I get the following error 'Content-type: text/html PHP Warning: dbg: Unable to initialize module Mo

Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Kath
Whats your time frame for deployment of the email? You might want to stagnate it out... like loop through 100, pause for 10 secs, do the next 100, pause, repeat. Maybe longer if you could. You could always have it record the number, stop it and adjust higher/lower as required. Also, make sure

Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Mark Charette
From: "Miles Thompson" <[EMAIL PROTECTED]> > > Well, try it - find a willing victim and just do a simple loop. > > Alternately, set up an account with a local, high-bandwidth ISP, batch in > groups of 330-, and use BCC. > > Miles > > At 04:16 PM 9/6/01 -0700, Fotwun wrote: > >Hi, > > > >I need to

RE: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Opec Kemp
Hi, You'd be better off running this process from a command line, i.e. not through your Web Browser as I'm more than certain that it will timeout if you are to send 3000+ emails in a loop :). And then you'll have to start again , and I'm sure your client won't be so happy if they were to get multi

Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Miles Thompson
Well, try it - find a willing victim and just do a simple loop. Alternately, set up an account with a local, high-bandwidth ISP, batch in groups of 330-, and use BCC. Miles At 04:16 PM 9/6/01 -0700, Fotwun wrote: >Hi, > >I need to send a broadcast email to our customers (about 3,000 emails).

[PHP] Re: this newsgroup via newsgroup program?

2001-09-06 Thread CC Zona
In article <3B981E0F.25754.4210CA@localhost>, [EMAIL PROTECTED] (Chris Hayes) wrote: > from http://www.php.net/support.php i get the > impression that i can subscribe to this group via > news.php.net. Indeed i can collect a zillion > newsgroups via that server Then you're not looking at the

[PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-06 Thread Fotwun
Hi, I need to send a broadcast email to our customers (about 3,000 emails). The data is being drawn for the DB, and will be personalized. Obviously, the code to do this is only a few lines. However, I am concerned with the load it will put on the system trying to loop through and mail() 3,000+ ti

Re: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Dennis Moore
I am not clear in what you want to do. I think the simplest solution is to build a table in your favorite database with the tracking number and the vendor. Make another table or switch statement that points to the URL for the vendors tracking mechanism. Now you can just write a function that

[PHP] independent PHP4 on shared Apache?

2001-09-06 Thread Chris Hayes
hi, we have an account with an ISP which is not extremely up to date (PHP3) but we are allowed to install MySQL. Ourselves. (But not on the default space, which is a disaster. Luckily there is a very experienced man, he even used to work for that ISP doing this for us. :-) Still took him 40 h

[PHP] Looking for PHP programmer in San Diego Area

2001-09-06 Thread Brandon Orther
Hello, I am currently working on a full fledge PHP project for my current company. We are looking for 1 to 2 more PHP programmers to finish up this project for the next several months. If you would like more information please respond to my e-mail address and not the User Group Thank you, ---

[PHP] this newsgroup via newsgroup program?

2001-09-06 Thread Chris Hayes
hi, from http://www.php.net/support.php i get the impression that i can subscribe to this group via news.php.net. Indeed i can collect a zillion newsgroups via that server but i cannot find php.general. Neither on news.xs4all.nl. I am using 'Agent'. Chris

[PHP] multi updates

2001-09-06 Thread Gary
I have a form that has name (unique in the table), team, pick, and message. The below is updating all the rows with the same updates. where have I screwed up? $sql = "UPDATE cappers SET team= \"$team\", pick = \"$pick\", message = \"$message\""; //Get Results $sql_result = mysql_query($sql,

Re: [PHP] Releasing Your Code

2001-09-06 Thread Alexander Deruwe
On Thursday 06 September 2001 21:20, James wrote: > Multiple part question to all: I would like to add a 12th question to this: 12) Is it useful to release source for a business application, specifically target to one line of work? Are there any considerations beside the obvious (what license,

Re: [PHP] The future of PHP - PHP Pattern Repository

2001-09-06 Thread Geoff Caplan
Miles > > Fascinating link and series of articles. Well worth reading. > > One of my VFP buddies copies his entire set of classes into every new > project he starts; I've also seen scenarios where to use one or two useful > functions you had to import a whole class structure. > Yes, I think he r

[PHP] Releasing Your Code

2001-09-06 Thread James
Multiple part question to all: 1) Have you released full or partial code to any of your projects? 2) What kind of program was it (web mail, groupware, bulletin board, website template etc)? 3) Why did you (not) release it? 4) What kind of license did you use? GPL? LGPL? BSD? Your own mini

[PHP] how to use fileatime() if the file name contains empty char?

2001-09-06 Thread Zhu George-CZZ010
Hi, Does anyone know how to use fileatime() when the file name contains empty char inside? Thank you very much 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 admi

Re: [PHP] mysql timestamp field

2001-09-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jason Stechschulte) wrote: > > I need an update on my table. but I have a timestamp field called > > t_stamp. When I update a field other than t_stamp field, t_stamp field > > also updates to now(). I need it not to update and saves its value. >

[PHP] output using ClibPDF is blank - RESENT in ASCII

2001-09-06 Thread Don
Hi, I am evaluating ClibPDF and have written a sample rpogram to output some text and a couple of lines to a letter size page. However, the when the PDF loads onto the screen, it is blank. Can anyone tell me what went wrong? The code is below. Am running Apache Server on RedHat Linux 6.2 Tha

[PHP] Re: Line number of error

2001-09-06 Thread Jonathan Hilgeman
Nevermind - found the answer. The current line number is held in the constant __LINE__ and the current file name is held in the constant __FILE__ So I can do the following: print "this is line " . __LINE__ . " in the file " . __FILE__; - Jonathan "Jonathan Hilgeman" <[EMAIL PROTECTED]> wrote in

[PHP] output using ClibPDF is blank

2001-09-06 Thread Don
Hi, I am evaluating ClibPDF and have written a sample rpogram to output some text and a couple of lines to a letter size page. However, the when the PDF loads onto the screen, it is blank. Can anyone tell me what went wrong? The code is below. Am running Apache Server on RedHat Linux 6.2 Th

[PHP] Regular Expressions - A relatively simple search...

2001-09-06 Thread Mike Gifford
Hello, I'm trying to replace a couple of lines of code: $dotpos = 1 - (strlen($userfile_name) - strpos($userfile_name, '.')); $extension = substr($userfile_name, $dotpos); with a simpler regular expression: $extension = eregi_replace( "/.*", "", $userfile_name); However

[PHP] Best Methods for Storing Checkbox Information in a MySQL Database

2001-09-06 Thread Kath
I have some checkboxes on a form. Now I figured out how to store them in a database sandwiched together (like thing1,thing2,thing3,thing4). However, what is the best method for storing them each in an individual field. This is what I'd really like: | userid | otherthing | |1 |azu

Re: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread MailingLists
I don't want the rate, I have that through a 3rd party shipping engine... it's the tracking info I need... unfortunately not just for UPS... FedEx, DHL, Airborne, etc...At 03:09 PM 9/6/2001 -0500, Christopher CM Allen wrote: > > > > > > > > > has anybody written any routines or functions they

Re: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Data Driven Design
The ups tools are quite complicated. You have to open a pipe and the send and retrieve xml documents. Not for the weak of heart. Data Driven Design 1506 Tuscaloosa Ave Holly Hill, Florida 32117 http://www.datadrivendesign.com Phone: (386) 226-8979 Websites That WORK For You - Original Messa

Re: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Christopher CM Allen
> > > > > > has anybody written any routines or functions they'd care to share for > > parsing the tracking information out of UPS, FEDEX, or other shipping > > carriers tracking pages? > > /* Begin FEDX GROUND */ $fp = fopen ("http://grd.fedex.com/cgi-bin/rrr2010.exefunc

RE: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Brian V Bonini
Doesn't UPS provide tools to do this? Not necessarily using PHP but I thought > -Original Message- > From: Dan Harrington [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 06, 2001 3:45 PM > To: Joe Sheble (Wizaerd); General PHP List > Subject: RE: [PHP] Tracking shipments U

[PHP] nested loop confusion

2001-09-06 Thread Jerry Lake
Ok, I will try to explain myself as clearly as possible please let me know if I need to be more so. On my admin page I have a review form. there is a select box that is self populating from a readir. that part works fine. however I would like for the files to not show up if they have been used in

Re: [PHP] PDFLib to generate 2+ page with same content

2001-09-06 Thread Rasmus Lerdorf
> I have used the PDFLib to generate a pdf by myself. I would like to > know how to make a page break and then draw second page which the > content is exactly the first page. > I need to repeat this step 9 times so I can use printer function to > print 9-in-1 page. Why not just put a loop aro

[PHP] PDFLib to generate 2+ page with same content

2001-09-06 Thread Norman
Hi ! I have used the PDFLib to generate a pdf by myself. I would like to know how to make a page break and then draw second page which the content is exactly the first page. I need to repeat this step 9 times so I can use printer function to print 9-in-1 page. Thank you very much !! Regards,

RE: [PHP] Tracking shipments UPS, FEDEX, etc...

2001-09-06 Thread Dan Harrington
No kidding :-) or calculating shipping costs. > -Original Message- > From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 05, 2001 11:47 PM > To: General PHP List > Subject: [PHP] Tracking shipments UPS, FEDEX, etc... > > > has anybody written any routine

[PHP] Line number of error

2001-09-06 Thread Jonathan Hilgeman
Is there any way to print the current line number? i.e. 43 print "blah"; 44 print "this is line $LineNumber"; 45 print "etc"; and have it result in : blahthis is line 44etc ? - Jonathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] mysql_fetch_array

2001-09-06 Thread sagar
hi, just go thru ur code once u'll getout with the bug. $myrow<>mysql_fetch_Array($result2); what is $myrow and to which value should the left part should compare. try this : /sagar - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 06,

[PHP] Unresolved Mistery Error in PHP

2001-09-06 Thread Webmaster
Hi people: I trying to run a script from my shell but I get this error: [root@corotu docs]# ./phorummail php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared object file: No such file or directory Well, some people said to me that usually this library is located in /u

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread ~~~i LeoNid ~~
On Wed, 5 Sep 2001 12:15:34 +0200 impersonator of [EMAIL PROTECTED] (* R&Ze:) planted &I saw in php.general: >This should do the job: > ... You can keep improving:) or you can use piece of my working (except for $Harlem, to which i am not going:) code (I give it for free this time:) No /me, no

RE: [PHP] Re: Mailing, which is faster

2001-09-06 Thread Matthew Loff
Doesn't PHP exec sendmail when mail() is called anyway? (Unless you run another MTA, of course) I would think they'd take the same amount of time, unless there is overhead with using popen() --Matt -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, Septemb

[PHP] PHP regexp powerful?

2001-09-06 Thread Jeff Lewis
I have a lot of scripts written in perl here and have been using PHP a lot now. I am wondering if PHPs regexps are powerful or not. I will show a small section of this code below that I clean up witht he perl scripts. It cleans it almost right up but take a look :) And YES there is actually

[PHP] Problems with Sessions?

2001-09-06 Thread Tim
When I first browse to a site on my LAN, I get links with URLs that look like this: chat/?PHPSESSID=f3d149f79f5196bd709fb3c256dbb3d8 after a refresh, the whoe PHPSESSID goes away. Wondered if there was some setting in php.ini that I've overlooked? I'm running PHP4 with Apache on an Unstable De

SV: [PHP] HTML table creation software

2001-09-06 Thread anders nawroth
I use some rather complex table layouts. I make them with modular programming. Every function that produces a also produces a . And such a function maybe calls another function that also puts a table inside the HTML. And so on ... That way I can keep track on what's happening! Sometimes I also pu

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread
And here is version 5.2! I optimized the search patterns. I found out that there was only a very limited scope of URL's that was matched... So I pretty much fixed that now (see the example). Repeating elements from the patterns have been extracted and put in an array, so that you can easily see t

[PHP] Problem with session controiler files in PHP on Roxen

2001-09-06 Thread Andreas Lundgren
Hello! We installed php 4.0.6 in a Roxen 2.1.625 web server on Solaris 7. Now we have a problem with temporary session files. The session_start() command will abort with the following error message: Warning: open(/tmp/sess_e8771af1171a6cbdf51eebdba5199d25, O_RDWR) failed: m (0) in [path/file.

RE: [PHP] php includes === Dreamweaver library items

2001-09-06 Thread Robert V. Zwink
George Whiffen, a) Nested Loops One problem that I see is that if I have nested loops: {LOOP1_VARIABLE} {LOOP2_VARIABLE} I can assign values and get the predicted result, but if I try to use the fastTemplate method clear_dynamic("loop2") I do not get the predicted re

[PHP] Re: Mailing, which is faster

2001-09-06 Thread Chris Lee
benchamrking is a common question with a common answer, "try it yourself", depending on your situation/hardware/software this will very greatly from machine to machine. -- Chris Lee [EMAIL PROTECTED] "Niklas lampén" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTEC

[PHP] Re: SESSIONS! - please help

2001-09-06 Thread Chris Lee
this allways buggers people up session_register("count"); $count = array(); should be $count = array(); session_register("count"); you have to set the var first before registering it. you should also check if the var is allready registerd ($HTTP_SESSION_VARS[]) if so, dont re-r

Re: [PHP] << Previous / Next Buttons >>

2001-09-06 Thread Chris Lee
I just use LIMIT its alot better, alot less CPU intensive. if (!isset($pos)) $pos = 0 SELECT * FROM product LIMIT 0, $pos $pos++ if ( !((SELECT count(*) FROM product) > $pos) ) Next you get the idea. Chris Lee [EMAIL PROTECTED] "Jeff Oien" <[EMAIL PROTECTED]> wrote in message [EM

Re: [PHP] The future of PHP - PHP Pattern Repository

2001-09-06 Thread Geoff Caplan
Hi > >I'm getting a 404 not found on that URL. Please check it. > Oops - silly typo - and I double checked it too! Here is the address: http://www.geocities.com/SiliconValley/Lab/6888/prpats.htm Actually, this is a pretty interesting site. The root is at: http://www.geocities.com/SiliconVall

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread
Okay... this time an even better solution, without the /e modifier. Think this comes pretty close to some final solution. --- PHP code --- http://www.helloworld.com\n Hello world! ftp://ftp.server.com\n Hello world www.helloworld.com"; /* -- ! Fifth regexp ! -- */ $pattern = array ("~\s

Re: [PHP] The future of PHP - PHP Pattern Repository

2001-09-06 Thread
From: Miles Thompson <[EMAIL PROTECTED]> Date: Thu, Sep 06, 2001 at 01:44:16PM -0300 Message-ID: <[EMAIL PROTECTED]> Subject: Re: [PHP] The future of PHP - PHP Pattern Repository > Geoff, > I'm getting a 404 not found on that URL. Please check it. > Miles You should replace the slash by a

RE: [PHP] << Previous / Next Buttons >>

2001-09-06 Thread Jeff Oien
> Hi, what's the simplest way to provide previous/next buttons that navigate > through individual records of a database? This is for a photo gallery, so I > want to do one record at a time until I'm out of records, then I want the > "next" button to disappear. I've been fiddling with it for a wh

[PHP] HTML table creation software

2001-09-06 Thread Seb Frost
I expect I'll get flamed for being off topic but never mind. I'm fine with creating simple tables and stuff - even nested a couple of levels. But there's so many sites these days with super-complex table layouts. How are these created? Is it just some super-talented table guru who codes the lo

Re: [PHP] book help

2001-09-06 Thread Alexander Deruwe
On Thursday 06 September 2001 16:35, Nikola Veber wrote: > Can anyone who has this book suggest what chapters should > I read first or which topics on php are the most apropriate for a beginner. You shouldn't use the cookbook in that way. Try like this: You are writing whatever application it is

Re: [PHP] password sanity checker

2001-09-06 Thread George Whiffen
A cheap and cheerful rule is to insist on at least one numeric. Then you don't have to bother with a dictionary check! The php to force only alphas and numerics (upper or lower case) and at least one numeric is something like : - if (!ereg("^[a-zA-Z0-9]*[0-9][a-zA-Z0-9]*$",$password)) { $

  1   2   >