Re: [PHP] Send Output to Printer?

2003-03-26 Thread Leif K-Brooks
PHP is server-side; it can't do anything to the client. You'll need to use javascript, or some other client-side technology. Nicole wrote: anyone know of a good tutorial for using PHP to send output to a printer? have a report that returns paged display (e.g., 20 rows max per page) ... too man

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
Thanks to those that have helped thus far. To clarify what we need: Our CRM system (really a prospect gathering system) needs to internally hosted, be realtime and needs to be updated automatically. Our website (hosted externally) is *one of many* tools which we are going to use to gather informat

[PHP] SHA-1 + RSA + base64

2003-03-26 Thread Veniamin Goldin
Hi all, I need some help, I have a request to encode string with SHA-1, then with RSA and at the end with base64, There no problems with SHA-1 and base64, but i can't find any functions to encode using RSA. md5 seems to be not what I'm looking for. I heard also, that there should be special

[PHP] Send Output to Printer?

2003-03-26 Thread Nicole
anyone know of a good tutorial for using PHP to send output to a printer? have a report that returns paged display (e.g., 20 rows max per page) ... too many rows to show on one page. need a print button that will send all the output directly to the printer and print all pages not talking abo

[PHP] imap_headerinfo() - problem

2003-03-26 Thread thomas
hi all, i have a problem I have an email if in "to" or "cc" have more than 100 addresses when I tried to call the function: imap_headerinfo() ($info = @imap_headerinfo($this->conn, $msg_id);), the browser return: "zero sized reply" or "The page cannot be displayed" (in IE) any ideea? hav

[PHP] How do i valadate an email address?

2003-03-26 Thread Philip J. Newman
How would i check that an e-mail has the right parts in it. for example. username @ domain . ext Thanks / Jim Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] user permission system (integer to small)

2003-03-26 Thread Torsten Rosenberger
Hello I have some trouble with user permission. I build the system like the permission in the phplib. admin = 1 news= 2 news_create = 4 news_delete = 8 . . . then ich can check ($user_perm & $perm == $perm ) But the problem ist that the permissions now over BIGINT. So i ca

[PHP] Parse out special strings

2003-03-26 Thread Richard Sumilang
I need to parse out strings from a long piece of string for templating purposes. The criteria is to find all strings that start with {, end with }, and only contain text or underscores between the two brackets. No numbers or other special characters can be between to the brackets to qualify it.

[PHP] Help on preg_split

2003-03-26 Thread Jim
Hi! Could someboy please help me with this simple task (at least I though it would be simple): I need to split a string with two dates in into two datestrings, and there might be whatever between the dates, e.g. $datestring = "010101a020202", or $dateting = " 010101+020202 " Then I

[PHP] Strtotime weirdness

2003-03-26 Thread Liam Gibbs
When I have a date, March 31, 2003, and I want to subtract 1 month using strtotime, I find it will literally subtract a month, so March 31, 2003 minus one month will result in February 31, 2003, or rather, March 3, 2003. Is there any way of making March 31, 2003 minus one month equal February 28

[PHP] stream from curl

2003-03-26 Thread Kalin Mintchev
sorry - i forgot to change the subject apologize.. On Thu, 27 Mar 2003, Kalin Mintchev wrote: > > > hello, > > how can i get the output file from the curl function to stream - to be > processed like from fopen or fsockopen? > > thanks... > > -- PHP General Mailing List (http://www.php.ne

RE: [PHP] Checkbox

2003-03-26 Thread Kalin Mintchev
hello, how can i get the output file from the curl function to stream - to be processed like from fopen or fsockopen? thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Checkbox

2003-03-26 Thread David Pearson
Just be wary that not all browsers will honor the readonly flag (Netscape 4 for example). In looking at this I found a tutorial at http://www.estek.net/estek/idocs/forms/_INPUT_DISABLED.html . I tested it in IE 6, NS 7.02 and Opera 7. None of these browsers prevented me from checking and uncheck

Re: [PHP] can i ask?

2003-03-26 Thread tech
On Wednesday 26 March 2003 06:19 am, M.N. Ikhwan S. wrote: > ScriptAlias /php/ "c:/php/" > AddType application/x-httpd-php .php > Action application/x-httpd-php "/php/php.exe" > > i'm using apache 2.0 as my web server. and i'm about to ask these > question, where am i going to put these three l

[PHP] Re: Retrieving newly created ID from MySQL?

2003-03-26 Thread Foong
hello just call: mysql_insert_id(); right after you execute a insert statement Foong "Ben Cheng" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If I have a MySQL table with an auto-incrementing ID field, is there an > easy way to retrieve the new ID after I insert a new row into

Re: [PHP] Retrieving newly created ID from MySQL?

2003-03-26 Thread Leif K-Brooks
The manual is your friend! :) Have a look at http://www.php.net/manual/en/function.mysql-insert-id.php. Ben Cheng wrote: If I have a MySQL table with an auto-incrementing ID field, is there an easy way to retrieve the new ID after I insert a new row into the table? For example, if I insert a

[PHP] Retrieving newly created ID from MySQL?

2003-03-26 Thread Ben Cheng
If I have a MySQL table with an auto-incrementing ID field, is there an easy way to retrieve the new ID after I insert a new row into the table? For example, if I insert a row into a table with ID, Title, & Content fields, is there a way I can get the ID value without doing a separate select w

RE: [PHP] html_quickform - array question

2003-03-26 Thread John W. Holmes
> echo "The month: $thedate['m']"; echo "The month: {$thedate['m']}"; or echo "The month: $thedate[m]"; ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] help please was: openssl php 4.3.1

2003-03-26 Thread Kalin Mintchev
here is a real example: $fp = fopen ("http://store.el.net/index.html";, "r"); while (!feof($fp)) { echo fgets ($fp,4096); } this works fine... if you try it with https you'll get an error - file not found from php if you try the same url with https in the any browser you wont have any

Re: [PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
Great. Thanks. - Charles On Wednesday, March 26, 2003, at 09:48 PM, Leif K-Brooks wrote: Yes, but you can't put put the single quoted array key directly in the double-quotes string, try: $thedate = $lr_form->getSubmitValue('lr_pub_date'); echo "The month: {$thedate['m']}"; Charles Kline wrot

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread daniel
possibly a permissions problem , dir needs to be 777 and owned by httpd >= Original Message From "Jennifer Goodie" <[EMAIL PROTECTED]> = >http://www.php.net/manual/en/features.file-upload.php > >From the page listed above: "Related Configurations Note: See also the >file_uploads, upload_ma

Re: [PHP] html_quickform - array question

2003-03-26 Thread Leif K-Brooks
Yes, but you can't put put the single quoted array key directly in the double-quotes string, try: $thedate = $lr_form->getSubmitValue('lr_pub_date'); echo "The month: {$thedate['m']}"; Charles Kline wrote: Okay. I think I understand. So I do something like this: $thedate = $lr_form->getSubmit

Re: [PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
Okay. I think I understand. So I do something like this: $thedate = $lr_form->getSubmitValue('lr_pub_date'); echo "The month: $thedate['m']"; Is that what you meant? - Charles On Wednesday, March 26, 2003, at 09:31 PM, Leif K-Brooks wrote: Are you trying to print/echo it? That converts it to

Re: [PHP] html_quickform - array question

2003-03-26 Thread Leif K-Brooks
Are you trying to print/echo it? That converts it to a string first. Either print_r it, var_dump it, or do something else with it. Charles Kline wrote: hi all, using html_quickform (pear) and it has a date type that passes the date info like this: array(24) { ["lr_pub_date"]=> array(3) {

RE: [PHP] Mail Header - id this PHP

2003-03-26 Thread John W. Holmes
> I am trying to format the mail header that will be send by mail(). > > One thing that I noticed was it only accept for the first no. of lines or > charracters (???) See sample 1 & 2. > > Is this a php problem (4.2.2) or has something to do the mailer ??? > > This script is working on (4.2.1) b

RE: [PHP] auto_prepend_file

2003-03-26 Thread John W. Holmes
> Trying to use > php_value auto_prepend_file /path/to/file/checkauth.php > in an .htaccess file. > > I've used this before without problems, however with this instance, I > keep getting a message in my browser which says: > Redirection limit for this URL exceeded. Unable to load the requested >

[PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
hi all, using html_quickform (pear) and it has a date type that passes the date info like this: array(24) { ["lr_pub_date"]=> array(3) { ["m"]=> string(1) "3" ["d"]=> string(2) "12" ["Y"]=> string(4) "2003" } I am used to getting this data like: $form->getSubmitVal

[PHP] Mail Header - id this PHP

2003-03-26 Thread John
Hello, I am trying to format the mail header that will be send by mail(). One thing that I noticed was it only accept for the first no. of lines or charracters (???) See sample 1 & 2. Is this a php problem (4.2.2) or has something to do the mailer ??? This script is working on (4.2.1) but is in

RE: [PHP] Uploading Files Via PHP

2003-03-26 Thread Jennifer Goodie
http://www.php.net/manual/en/features.file-upload.php >From the page listed above: "Related Configurations Note: See also the file_uploads, upload_max_filesize, upload_tmp_dir, and post_max_size directives in php.ini" I would read that manual page as it deals with file uploading support. -Or

Re: [PHP] Uploading Files Via PHP

2003-03-26 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Are you getting any errors through PHP? Set error reporting to E_ALL then try. On Wednesday 26 March 2003 04:41 pm, Vernon wrote: > Is there some thing that needs to be turned on in the php.ini in order to > be able to upload photos VIA php? I ha

RE: [PHP] auto_prepend_file

2003-03-26 Thread Jennifer Goodie
You're looping endlessly because SESSION is not getting registered anywhere. -Original Message- From: Kevin Heflin [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 5:16 PM To: php-general Subject: [PHP] auto_prepend_file Trying to use php_value auto_prepend_file /path/to/file/ch

Re: [PHP] auto_prepend_file

2003-03-26 Thread Kevin Heflin
On Wednesday, March 26, 2003, at 07:15 PM, Kevin Heflin wrote: Trying to use php_value auto_prepend_file /path/to/file/checkauth.php in an .htaccess file. I've used this before without problems, however with this instance, I keep getting a message in my browser which says: Redirection limit for

[PHP] auto_prepend_file

2003-03-26 Thread Kevin Heflin
Trying to use php_value auto_prepend_file /path/to/file/checkauth.php in an .htaccess file. I've used this before without problems, however with this instance, I keep getting a message in my browser which says: Redirection limit for this URL exceeded. Unable to load the requested page. my check

[PHP] Re: HELP ME NEW FRIENDS....

2003-03-26 Thread Mike Mannakee
Simple example here. You have a page that submits to your php script. The form on the page is coded like this: This, when used, submits to your script, which will have code something like this: wrote in message news:[EMAIL PROTECTED] > HI > > my English is no too god ...but > > i need inf

Re: [PHP] register globals :|

2003-03-26 Thread Leif K-Brooks
Only per-directory, by putting a .htaccess file in that directory which turns RG on. Sebastian wrote: Hmm .. might be easier to use an .htaccess. Is it possible to enable Register Global just for the script and not the site? I heard it's possible to enable it on just one directory (where the scr

RE: [PHP] Using includes with page locations

2003-03-26 Thread Jennifer Goodie
oops, it should read: "/messages/index.php" instead of (not and) "messages/index.php" That make make what I said really confusing -Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 4:45 PM To: Vernon; [EMAIL PROTECTED] Subject: RE: [PHP] Usi

RE: [PHP] Using includes with page locations

2003-03-26 Thread Jennifer Goodie
You could just make all of your links relative to the webroot. "/index.php" instead of "index.php" and "/messages/index.php" and "messages/index.php" I don't know why you would want to use PHP to do this for you, it is a pretty basic HTML concept. -Original Message- From: Vernon [mailto:

[PHP] Uploading Files Via PHP

2003-03-26 Thread Vernon
Is there some thing that needs to be turned on in the php.ini in order to be able to upload photos VIA php? I have the same script on one machine with the right permissions on the upload dirs on one machine and am moving to another machine which is not being uploaded. Funny thing is I'm not getting

[PHP] Using includes with page locations

2003-03-26 Thread Vernon
Please forgive the ignorance of this question but I am trying to use an include for a site navigation menu and am having a hard time figuring out how to point at the route of the site. For instance I may have home set as index.php, but if my users are in messages/index.php that will always bring t

RE: [PHP] Possible to check quality / compression of a JPEG ?

2003-03-26 Thread daniel
would exif work ? or maybe the binary jhead would work, it gets information out fo jpeg files , but they maybe have to be generated only from digital cameras i dont know. >= Original Message From "Juan Antonio Ruiz Zwollo" <[EMAIL PROTECTED]> = >Hello: > >Is it possible with PHP to chec

Re: [PHP] substr() on part an ereg() capture

2003-03-26 Thread Justin French
A that makes more sense!! Am trying everyone's suggestions now... Justin French on 27/03/03 3:32 AM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: > Forgot to mention this is to be run after > eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", " href=\"\\1://\\2\\3\" {$t}\">\

[PHP] Possible to check quality / compression of a JPEG ?

2003-03-26 Thread Juan Antonio Ruiz Zwollo
Hello: Is it possible with PHP to check at what quality/compression a JPEG file has been saved? I.e. I have "dummy.jpg" that I got from somewhere else and I want to know with what quality it was saved. The second Note of the User Contributed Notes on the PHP manual regarding the function imagejpe

RE: [PHP] Problem with setcookie function

2003-03-26 Thread Jennifer Goodie
TRy URL Encoding the string. -Original Message- From: Tomás Liendo [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:46 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem with setcookie function Hi people I'm a beginner... I'm trying to pass variables between pages, I need use a v

Re: [PHP] Web server request redirection

2003-03-26 Thread Jan Walter
Ray Hunter wrote: > Are both servers running on the same computer? If so you can send data > via the port number they are on. They are two: 1/ php+apache/linux webserver (reachable from outside) 2/ iis/w2k running web service (behind firewall) > You can also create scripts that receive post data an

[PHP] Problem with setcookie function

2003-03-26 Thread Tomás Liendo
Hi people I'm a beginner... I'm trying to pass variables between pages, I need use a variable that I get in the first page, 3 or 4 pages later on. For this I'm using the setcookie function: setcookie("name", "Jhon Malbeck"); The problem is that I receipt only the value "Jhon" Why I don't receipt

Re: [PHP] register globals :|

2003-03-26 Thread Kevin Stone
- Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Wednesday, March 26, 2003 3:45 PM Subject: [PHP] register globals :| > Is there any work-around to get a scipt that requires globals to be ON work > when globals is OFF? > > Its a small sc

Re: [PHP] register globals :|

2003-03-26 Thread Sebastian
Hmm .. might be easier to use an .htaccess. Is it possible to enable Register Global just for the script and not the site? I heard it's possible to enable it on just one directory (where the script resides). cheers, - Sebastian - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]

[PHP] register globals :|

2003-03-26 Thread Sebastian
Is there any work-around to get a scipt that requires globals to be ON work when globals is OFF? Its a small script so it shouldn't be too hard... I just don't know what to look for or what has to be changed so it works again... (since i moved servers...) Thanks for any help. cheers, - Sebastian

[PHP] RE: Mac IE File download problem - any solutions?

2003-03-26 Thread Daniel Leighton
Hi Phillip, If you see the original message it's already in there (it was snipped out in the replies). Here is the code: header('Content-Type: application/octet-stream'); header('Content-Length: '. filesize($file_info['full_file_path'])); header('Content-Disposition: att

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Leif K-Brooks
No, you misunderstand. The key is simply a string. Just as "print foo;" is wrong, $array[foo] is wrong (unless foo is a constant, of course). If you do "print '$variable';", it will print the literal string "$variable". It will not print the value of $variable. You should either use double

[PHP] HELP ME NEW FRIENDS....

2003-03-26 Thread Hector Huaranga Segales
HI my English is no too god ...but i need information about forms with PHP, data base query, i need examples plz... thanks in advanced

RE: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Jennifer Goodie
>Actually I didn't. ;-) >$GLOBALS[$key] is incorrect and depricated AFAIK. >$GLOBALS['$key'] (with the single quotes) is the proper way to write these Wouldn't it need to be $GLOBALS["$key"] because single quotes tell the parser not to expand variables? I think you are misinterpreting the part o

RE: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Johnson, Kirk
I think you either want to use no quotes or double quotes, but not single quotes. Double quotes will interpolate the variable, single quotes will not, i.e. $key becomes a string literal rather than a variable. No quotes will work, although the docs seem to indicate it is deprecated syntax. Not ever

RE: [PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Daevid Vincent
Actually I didn't. ;-) $GLOBALS[$key] is incorrect and depricated AFAIK. $GLOBALS['$key'] (with the single quotes) is the proper way to write these types of associative arrays/hashs. For shits and giggles however I tried your way and it made no difference to the code. Still didn't work right. >

Re: [PHP] ISP Blues

2003-03-26 Thread Anthony Ritter
Marek, For testing purposes, on my home computer with php 4.1.1 and Apache Server, the script works fine. Now, I'd like the script to work on my ISP's server which hosts my site. They use MS IIS. What are the correct steps for them to install the php_gd.dll file on their server since that same s

Re: [PHP] ISP Blues

2003-03-26 Thread Marek Kilimajer
Try executing dl('php_gd.dll'); first (before calling any gd functions), also check the output of phpinfo() if they have gd enabled Anthony Ritter wrote: The following script works fine when I test it at home using localhost on: MS Win 98 Apache Server PHP 4.1.1 php_gd.dll I then publish the scri

Re: [PHP] What am I not understanding about $GLOBALS['myvar'] vsglobal $myvar?

2003-03-26 Thread Marek Kilimajer
Daevid Vincent wrote: This one does NOT work the way I would expect it to? function clearContactVars() { foreach ($GLOBALS as $key => $value) { if ( substr($key,0,8) == "contact_" ) { //echo "GLOBALS['$key'] = $va

[PHP] ISP Blues

2003-03-26 Thread Anthony Ritter
The following script works fine when I test it at home using localhost on: MS Win 98 Apache Server PHP 4.1.1 php_gd.dll I then publish the script to my web at my ISP's MS IIS server which is the host and get an undefined function call of: ImageCreate() The ISP has said that they have installed

Re: [PHP] openssl php 4.3.1

2003-03-26 Thread Kalin Mintchev
how are we doing on this?!?... this'd be my last try to seek help here... i did on a few other mailing lists and forums but nobody has anything to say... i guess i'd never get ssl connection with php regardless of what it's in the documentation on the php.net site... On Tue, 25 Mar 2003, Kalin

[PHP] What am I not understanding about $GLOBALS['myvar'] vs global $myvar?

2003-03-26 Thread Daevid Vincent
How come this function works, but the one below does not?? function clearContactVars() { global $contact_id; $contact_id = ""; global $contact_timestamp;$contact_timestamp = ""; global $contact_incept; $cont

RE: [PHP] getimagesize

2003-03-26 Thread Dan Rossi
@getimagesize ? -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 5:04 AM To: [EMAIL PROTECTED] Subject: [PHP] getimagesize anyway to not get an error when doing getimagesize if you get this response? HTTP request failed! HTTP/1.1 404 Not Fo

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
> But isn't it so much easier to type in that one line HTML + javascript than > trying to get an image of a checked check box.. unless you have that > handy, you'd have to eg. take a snapshot, or draw something, then save the > file as an image file...hmm... > > and as you said, the effect

RE: [PHP] Checkbox

2003-03-26 Thread Sysadmin
I agree...and like John said, as long as you don't accept any changes when you process the form you should be good to go... -Original Message- From: Tim Burden [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 2:25 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Checkbox Just using

Re: [PHP] Default setting garbage

2003-03-26 Thread Tim Burden
Obviously PHP got confused with your data types. I'll bet that $basedate had been set to "5". Try this instead: GetNextDate("4", "2003-03", 5); Now I bet $frequency is 5 and $basedate is "" - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> Newsgroups: php.general To: "php lis

[PHP] Re: php.ini question

2003-03-26 Thread Tim Burden
does phpinfo(32) show the $action variable anywhere? If so just use the global array variable it shows up under. Personally I'd just use the $_GET['action'] alias. You can safely turn register_globals on if you're the only guy that runs scripts on that server and your scripts will never have to ru

Re: [PHP] Checkbox

2003-03-26 Thread Tim Burden
Just using the readonly flag in the input tag is the easiest method, I think. - Original Message - From: "Reuben D. Budiardja" <[EMAIL PROTECTED]> Newsgroups: php.general To: "CPT John W. Holmes" <[EMAIL PROTECTED]>; "shaun" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, Marc

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 02:11 pm, CPT John W. Holmes wrote: > >On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > > > is it possible to have a checkbox that if it is specified to be > checked > > > > when the page is being formulated then it cannot be unchecked? > > > > > > No. N

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
>On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > > is it possible to have a checkbox that if it is specified to be checked > > > when the page is being formulated then it cannot be unchecked? > > > > No. No... No. > > > > If you already know you don't want it to be unchecked, the

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 01:43 pm, CPT John W. Holmes wrote: > > is it possible to have a checkbox that if it is specified to be checked > > when the page is being formulated then it cannot be unchecked? > > No. No... No. > > If you already know you don't want it to be unchecked, then don't show

Re: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Jason Wong
On Wednesday 26 March 2003 22:31, Steve Jackson wrote: > After much searching I found this > http://marc.theaimsgroup.com/?l=php-general&m=104210703824057&w=2 > This > http://marc.theaimsgroup.com/?l=php-general&m=104219587732145&w=2 > > And others with process in the body and subject line but not

Re: [PHP] again: IIS vs Apache

2003-03-26 Thread Daniel Guerrier
The the LAMP platform is supposed to more stable but If it ain't broke why fix it? --- [EMAIL PROTECTED] wrote: > Hi, I'm new here. I imagine that this question was > made a lot of times in this > list, but reading the archive i couldnt find a > recently answer to this > question: > >I wa

Re: [PHP] Checkbox

2003-03-26 Thread CPT John W. Holmes
> is it possible to have a checkbox that if it is specified to be checked > when the page is being formulated then it cannot be unchecked? No. No... No. If you already know you don't want it to be unchecked, then don't show a checkbox. That's why we have PHP, so you can create your page DYNAMICAL

Re: [PHP] MySQL's connection information.

2003-03-26 Thread Ray Hunter
Ed A good practice is to have your configuration files out of the webserver document directory. You should set the include_path in the php.ini file to include the directory where your configuration file is located at. You can also change the permission to 600 and change the owner to whatever user

Re: [PHP] Selecting date range from database

2003-03-26 Thread CPT John W. Holmes
> I am trying to select a date range in this format from a database 1-Mar-03 > to 26-Mar-03. The date is stored in a mySQL database in that format and when > doing a normal select it just selects the dates as if they are numbers. > > How can I make this select work the way I want it to work? I am u

Re: [PHP] Default setting garbage

2003-03-26 Thread Jason Wong
On Thursday 27 March 2003 02:04, Liam Gibbs wrote: > > I'll guess that you're trying to access $frequency outside of the > > function, after you've called it, right? If so, read up on variable > > scope in the manual. > > No, I'm trying to access it inside the function. This is what I have (or an >

Re: [PHP] Checkbox

2003-03-26 Thread Reuben D. Budiardja
On Wednesday 26 March 2003 09:16 am, shaun wrote: > Hi, > > is it possible to have a checkbox that if it is specified to be checked > when the page is being formulated then it cannot be unchecked? When you write the page, if the checkbox is checked initially, write also a javascript to prevent it

Re: [PHP] Default setting garbage

2003-03-26 Thread CPT John W. Holmes
> > I'll guess that you're trying to access $frequency outside of the > > function, after you've called it, right? If so, read up on variable > > scope in the manual. > > No, I'm trying to access it inside the function. This is what I have (or an > example, since I don't have it right in front of m

Re: [PHP] Installation

2003-03-26 Thread John Nichel
RTFM http://www.php.net/manual/en/install.windows.php Download http://www.php.net/downloads.php For Apache http://httpd.apache.org For MySQL http://www.mysql.com Daniel Perry wrote: Dear Sir I require a complete installation package if possible. I am operating XP Pro, but unfortunately n

[PHP] Re: php.ini question

2003-03-26 Thread Towel Boy
does phpinfo(32) show the $action variable anywhere? If so just use the global array variable it shows up under. Personally I'd just use the $_GET['action'] alias. You can safely turn register_globals on if you're the only guy that runs scripts on that server and your scripts will never have to ru

[PHP] Starting/Reviving a Workshop

2003-03-26 Thread David Duong
Hello, I'm thinking about reviving a 'workshop' I had a while back because of a recent post I found at a forum. The foundation is already set up, and I would like to see how many people are interested. This workshop is for CGI scripts mainly PHP and Perl, but PHP takes precedence over Perl. Everyth

Re: [PHP] Getting Results for a month from a date field

2003-03-26 Thread Marek Kilimajer
|MONTH(date)| Returns the month for |date|, in the range |1| to |12|: SELECT * FROM employees WHERE MONTH(hiredate)='$month' Hunter, Jess wrote: I have a field named "hiredate" and it is in the typical MySQL format (-MM-DD) what I am trying to do it be able to create a query that when I

Re: [PHP] php.ini question

2003-03-26 Thread Philip Olson
Regarding the location of php.ini, read this: http://www.php.net/faq.installation.php#faq.installation.findphpini Next, learn about using external variables in PHP: http://www.php.net/variables.external Now, regarding your example of: file.php?action=3 You'll notice that you can use eithe

Re: [PHP] Installation Problem

2003-03-26 Thread Ray Hunter
Maybe have this: LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php I would load the module first and then add the type...might not make a bit of difference. -- Ray On Wed, 2003-03-26 at 03:24, bob pilly wrote: > Hi > > Im trying to install php-4.3.1 as a dynamic

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Ray Hunter
your best bet might be to use xml (soap) or to do mysql replication. http://www.mysql.com/doc/en/Replication_HOWTO.html Now if you have a web db saying that the db is used for web access only and then you have an internal (intranet) db, i am supposing that it is behind some firewall. If not then

[PHP] Re: Checkbox

2003-03-26 Thread Towel Boy
Try the readonly flag Haven't tried it, no guarantees... "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > is it possible to have a checkbox that if it is specified to be checked when > the page is being formulated then it cannot be unchecked? > > -- PHP General

[PHP] sybase error

2003-03-26 Thread bob pilly
Hi all I have installed php 4.3.2 RC1 with the --with-sybase=/pathtomysysbase dir configure switch. I have had no installation problems but now when i go to load a page with the sybase_connect() function call in it i get the following error: Fatal error: Call to undefined function: sybase_connec

[PHP] RE: Mac IE File download problem - any solutions?

2003-03-26 Thread Philip Hallstrom
You might try... header("Content-Disposition: attachment; filename=$filename"); maybe? On Tue, 25 Mar 2003, Daniel Leighton wrote: > Actually, I think you may have misunderstood. On Mozilla (Mac), Netscape (Mac) and > Safari the script works exactly as I have intended: sending the "Content-Ty

[PHP] getimagesize

2003-03-26 Thread Diana Castillo
anyway to not get an error when doing getimagesize if you get this response? HTTP request failed! HTTP/1.1 404 Not Found -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php.ini question

2003-03-26 Thread Joe Kupiszewski
I didn't do the installation, but the phpinfo() shows the following: version - 4.2.3 ./configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-regex=system' '--without-gd' '--without-mysql' '--with-zlib' '--with-mysql=/usr/local' '--pre

Re: [PHP] Default setting garbage

2003-03-26 Thread Liam Gibbs
> I'll guess that you're trying to access $frequency outside of the > function, after you've called it, right? If so, read up on variable > scope in the manual. No, I'm trying to access it inside the function. This is what I have (or an example, since I don't have it right in front of me right now

[PHP] MySQL's connection information.

2003-03-26 Thread Edmond Baroud
Hi all, I've been using php in a local Unix environement where I never had to worry about read permissions of users/groups on my db connection's config file which contains the user and password. I'm trying to think of a possible solution for my connection properties in a shared/hosting environe

[PHP] Getting Results for a month from a date field

2003-03-26 Thread Hunter, Jess
I have a field named "hiredate" and it is in the typical MySQL format (-MM-DD) what I am trying to do it be able to create a query that when I put in a particular month it will give me the results regardless of the year the person was hired. This is so I can generate a "anniversary" report to

RE: [PHP] Passing data between the web to an Intranet

2003-03-26 Thread Steve Jackson
> Manually? What I meant was that it's pretty easy to send an > email to a server > and have a script process the email. Thus the script will > parse the contents > of the mail and update the db accordingly. Search the > archives for "process > mail", I have some old posts which outline how t

[PHP] Web server request redirection

2003-03-26 Thread Jan Walter
Hi, I have written a small webservice in M$ VS.NET (for some "political" reasons), which needs IIS to run. I would like not to open M$ IIS server for outer requests, but enable access just through linux/apache(/php) webserver instead. Is there any simple way, how to resend (at least POST/GET)

[PHP] Selecting date range from database

2003-03-26 Thread Jeff Lewis
I am trying to select a date range in this format from a database 1-Mar-03 to 26-Mar-03. The date is stored in a mySQL database in that format and when doing a normal select it just selects the dates as if they are numbers. How can I make this select work the way I want it to work? I am using the

php-general Digest 26 Mar 2003 17:27:57 -0000 Issue 1961

2003-03-26 Thread php-general-digest-help
php-general Digest 26 Mar 2003 17:27:57 - Issue 1961 Topics (messages 141052 through 141084): imap_open Error 141052 by: Brian Mitchell Re: NewB Q on Arrays. 141053 by: chris 141057 by: Frappy John Re: session id 141054 by: Uttam Re: ho to remove an empty s

Re: [PHP] substr() on part an ereg() capture

2003-03-26 Thread Marek Kilimajer
Forgot to mention this is to be run after eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])", "\\1://\\2\\3", $str); as it only replaces long strings within tags Marek Kilimajer wrote: $str = preg_replace('|(]*>[^<]{55})[^<]+()|','$1...$2', $str); Justin French wrote: Hi, I have

Re: [PHP] Zip Way of life.

2003-03-26 Thread Marek Kilimajer
So use PclZip class, it is pure php without the need to have nay special extension installed Vincent M. wrote: Daevid Vincent wrote: You could use the exec() or shell_exec() and just do it via command line method... Yes but gunzip does not work when there are more than one file in the zip file

[PHP] Checkbox

2003-03-26 Thread shaun
Hi, is it possible to have a checkbox that if it is specified to be checked when the page is being formulated then it cannot be unchecked? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Installation

2003-03-26 Thread Joel Colombo
Here is the whole setup simple step-by-step even for PERL if you want ! http://www.ricocheting.com/server/apache.html Joel "Daniel Perry" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear Sir > > I require a complete installation package if possible. I am operating > XP Pro, b

  1   2   >