[PHP] PHP-MySQL connection problem

2002-07-29 Thread Manisha
Hi, My server is running on shared server which has support for PHP 4.1.2. I installed mySQL for our shared server. I also installed phpMyAdmin. Both are running properly. But I am facing following problems 1) If there is any error in the script - It is not getting displayed - screen is

[PHP] libphp4.so

2002-07-29 Thread Peter
howdy, i've got it all configured correctly .. well it doesn't spit any errors out on make but when i got to view a web page it opens a down load box ..so i added this LoadModule php4_modulelibexec/libphp4.so to httpd.conf as per the manual and restarted apache but it didn't start

Re: [PHP] Logging out with authentication

2002-07-29 Thread Peter Janett
I looked at how phpMyAdmin did it, and came up with this. 1) Put this at the top of your main page: // this handles the log out if (isset($PHP_AUTH_USER) $old_usr == $PHP_AUTH_USER) { header('WWW-Authenticate: Basic realm=Your Protected Area Name'); header('HTTP/1.0 401 Unauthorized');

[PHP] Re: Logging out with authentication

2002-07-29 Thread JJ Harrison
You could redirect to a file outside the 'realm' by using header(location: ) or just linking to it. -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Ray Todd Stevens [EMAIL PROTECTED] wrote in message 3D44690D.25129.D620734@localhost">news:3D44690D.25129.D620734@localhost... I am working on a

[PHP] Re: PHP + Form + Session Problem. Please help

2002-07-29 Thread JJ Harrison
I could take a guess. I would imagine that you are not closing all of your browser windows. This means that the session cookie was being kept. First I recommend using session_destroy(); at the end of your session work. Also writting your script as if register globals was off would probably fix

RE: [PHP] Oracle 8i SQL Problem..

2002-07-29 Thread Rudolf Visagie
Oracle 9i would be happy with the left join syntax but not 8i. -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 6:09 AM To: 'Nick Oostveen'; Frank S. Kicenko; [EMAIL PROTECTED] Subject: RE: [PHP] Oracle 8i SQL Problem.. You'll prob. need to

[PHP] Re: Reg-Vulnerabilities in PHP

2002-07-29 Thread JJ Harrison
I don't know. php_info();? But why use PHP 4.0.6 ? We are up to PHP 4.2.2 now(Which was just realeased due to a security bug). -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Senthilvelavan [EMAIL PROTECTED] wrote in message

[PHP] Reg patch for PHP4.0.6

2002-07-29 Thread SenthilVelavan
Hello Folks, I have applied a patch from http://www.php.net/do_download.php?download_file=rfc1867.c.diff-4.0.6.gz for PHP 4.0.6. Is my patched PHP4.0.6 is compatible to PHP4.2.2. If not please list the features or bugs that are not fixed with my patch applied version. Which

[PHP] Picking up Data of Previous Date from Table

2002-07-29 Thread Thomas Edison Jr.
Glory! I have one Table (Transactions), having a Date Column, with date stored as -MM-DD I have another Table (Holdings), having a Date Column, with date stored as -MM-DD Now i'm joining the two tables, to get data from both the tables and display on the page. The query i'm using is

[PHP] Re: Reg patch for PHP4.0.6

2002-07-29 Thread Manuel Lemos
Hello, On 07/29/2002 04:44 AM, Senthilvelavan wrote: Hello Folks, I have applied a patch from http://www.php.net/do_download.php?download_file=rfc1867.c.diff-4.0.6.gz for PHP 4.0.6. Is my patched PHP4.0.6 is compatible to PHP4.2.2. If not please list the features or bugs

RE: [PHP] PHP-MySQL connection problem

2002-07-29 Thread John Holmes
My server is running on shared server which has support for PHP 4.1.2. I installed mySQL for our shared server. I also installed phpMyAdmin. Both are running properly. But I am facing following problems 1) If there is any error in the script - It is not getting displayed - screen is

[PHP] Re: pdflib, NEED HELP with function problem (newby)

2002-07-29 Thread Richard Lynch
PDF_set_text_pos($p, 80, 670); PDF_show($p, Requirements:); works just fine outside of a function but if I put the same thing inside a function like so function help() { PDF_set_text_pos($p, 80, 670); PDF_show($p, Test:); } I get this error: Warning:

[PHP] Re: slow reading from socket

2002-07-29 Thread Richard Lynch
Hi I am building (or attemting to build) an msn messenger class. I am having problems reading from the socket. I open a connection with fsockopen(), i then write commands to the socket with fputs(). I am reading wth fgets(). It is all fine if I am reading one line returned by the server, the

[PHP] Re: what is the .Xauthority file

2002-07-29 Thread Richard Lynch
I just connected to my web server and found that there was a new file named .Xauthority, which I didn't created. Does anyone know what this file is? Can I delete it? If you tried to run X (X-Windows) at some point, that file would be created, I think... man X might, eventually, if you dig,

[PHP] Re: Possible to have optional values in function?

2002-07-29 Thread Richard Lynch
is it possible to have optional values in a PHP function? some of the built in ones have optional parameters. Yes. And it's documented in the manual: http://php.net/functions And it's just like C anyway, mostly, so you could have tried it and had an answer faster than asking thousands of

[PHP] Re: phpinfo()

2002-07-29 Thread Richard Lynch
hi all!! below is the display of one of my configuration of php on the first server.. my question is that possible for me to hide out all the environment variables such as user, hossttype.. editor... term etc and how? Try this: ?php unset($_ENV); phpinfo(); ? Also, there *might* be

[PHP] Ming Sprite confusion

2002-07-29 Thread Richard Lynch
Please cc me on answers, as I'm way behind in this list... I have a perfectly good Ming (Flash) movie coming out of PHP, but it's a bit large... I'd like to put this thing on a diet. I figured I could do it with a Sprite for the tiny portion that's animated, but I'm not getting quite what I

[PHP] Re: PHP 4.2.2 and Apache LoadModule issue

2002-07-29 Thread Richard Lynch
Hi All. I am having a weird problem... my PHP is outputting a libphp4.a and libphp4.la modules and I can't get Apache to recognize this type of file. Is there a way to tell PHP to generate a .so module? Or how can I get Apache to use the .a and .la modules? I *think* PHP outputs .so *ONLY* if

[PHP] Re: my application is not able to communicate with qmail sever !

2002-07-29 Thread Richard Lynch
I am running my PHP application running on apache webserver.I am using Qmail(installed on Linux operating system) as an SMTP server..The problem is..I am not able to send any mails from my application using Qmail.Whereas I am able to send mails from my application using SendMail..My PHP

[PHP] Re: Using cookies with PHP

2002-07-29 Thread Richard Lynch
Does anyone have examples on how to use cookies with PHP? Yes. The manual has examples. Lots. And there are a ton of them on every PHP code archive I've ever seen. I'm just getting into this and would like to know the difference between stored cookies and non-stored per session cookies.

[PHP] Re: including just created file

2002-07-29 Thread Richard Lynch
$cache_file_name = cache/$id/$tid. ($showall ? '_all.php' : '.php'); $cache_dir_name= cache/$id; if(!file_exists($cache_file_name) || filectime($cache_file_name) + 30 time() ) { If you may have loaded/altered the file system between calls to this directory/file,

[PHP] Re: Changing a variable's value when a link is clicked

2002-07-29 Thread Richard Lynch
Is there a way to change the value of a global variable when someon clicks a a href URL link on a web page? Not really... Or, more properly, Yes, but it wouldn't be the same global from PHP script you're thinking of Let's look at HTTP in slow-motion: 1. Browser requests URL. 2. Server gets

[PHP] Re: How reliable is pcntl support?

2002-07-29 Thread Richard Lynch
I've recently had a need to write a standalone script that needs to fork off a number of children during its operation, and I'd like to use PHP since I've already written most of the functions in a web application I did in PHP. But, I'm now not so sure if that's feasible. It can certainly be

[PHP] Re: PostgreSQL

2002-07-29 Thread Richard Lynch
How can i enable PostgreSQL module? I have installed PHP 4 on IIS5, Windows 2000 I don't *think* PostgreSQL runs under Windows, really... You can maybe install the CygWin stuff (a Linux emulator under Windows) and get that to work, but: 1. Don't expect good performance. CygWin ain't a

[PHP] Re: PHP Integration...

2002-07-29 Thread Richard Lynch
1) Integration with Outlook (yes the application will only ever be run on windows). Define Integration... :-) Does it need to read the user's Outlook mailbox files or something? Or does it just need to send/receive email? Or what? I'll give as many answers as I can, but this is not really a

[PHP] Re: filling an array(2)

2002-07-29 Thread Richard Lynch
h. Ok. Can somebody explain this one? Why won't it work correctly? for($m=1;$m=5;$m++){ $div_idd[$m]=${'row-sub' . $m . 'd'}; } Can it not be done with a 3 parter? The columns in the table that $row gets, are sub1d, sub2d, sub3d, sub4d and sub5d. Or is it the - that is messing it

[PHP] Re: PHP UPGRADE on LINUX

2002-07-29 Thread Richard Lynch
We have to upgrade our PHP to the latest stable version on Redhat Linux 7.3. We have lots of user using our PHP so what are all the precautions and steps involved while doing this operations without disturbing their existing program. At a minimum, we gotta know what version you are *ON*...

[PHP] Re: Red Hat 7.2 enabling MySQL on preinstalled PHP

2002-07-29 Thread Richard Lynch
I installed PHP when I installed Red Hat 7.2 without MySQL. I have now added MySQL but I can't figure out how to enable it in PHP. Can anyone help? There are three possibilities: 1. PHP already has MySQL support, and you're done. 2. You need to install a different PHP RPM or tarball to get

[PHP] Re: calling user-defined php functions from a href tag

2002-07-29 Thread Richard Lynch
There MUST be some creative way to call a user-defined PHP function from an a href tag. No, there mustn't :-) Does anyone have any suggestions? For example: == html a href=?php joe(); ? Click here to start function joe(). /a

[PHP] Re: portal / content management

2002-07-29 Thread Richard Lynch
Hi Can anyone recommend a good portal system / content management system (polls, forums, etc.) I have tried phpnuke but am bound to the standard layout of it i.e content in the centre and blocks on the left or right. phpnuke has all kinds of skins and templates and whatnot with different

[PHP] Re: File Browser like Win Explorer in php

2002-07-29 Thread Richard Lynch
I am wondering if anyone has created or know where I can get a code for browsing files and directory in using php in linux. The one I am looking for is file browsing capability that is similar to Window Explorer, meaning you can expand and collapse directory. I just don't want to re-invent the

[PHP] Re: Pulling a data from array of checkboxes

2002-07-29 Thread Richard Lynch
I am passing a value of checkboxes in a form to a new page like this (see example here: http://www.gibsonusa.com/test/check/) In a new page how can I pull the data from a MySQL database according to each value I passed from a previous page? In other words: Assume that the value of a checkbox

[PHP] Re: Sending a File to User's Browser

2002-07-29 Thread Richard Lynch
Hello, I need a user to save an image file to their disk. Normally when someone clicks on an link to a .jpg file, the fil will display on the same browser window, since it is capable of displaying such files. Now, I don't want this to happen, I need to be able to show the user the Save As..

[PHP] Re: Extra spacing with br in HTML

2002-07-29 Thread Richard Lynch
I am using a textarea to pass information to PHP. I want to be able to include HTML tags inside the text area. I am using ln2br() to properly convert line breaks to HTML. This is where my issue comes up. Lets say I have ul liBlar/li /ul ln2br() will crunch that and put out: ulbr /

[PHP] Re: php 'mail()' security

2002-07-29 Thread Richard Lynch
How can I make my form which entered by a user, then sent to a company employee, secure, not vulnerable attack? What kind of attack?... Rule #1. NEVER trust data coming in from the user. Things to maybe check: The email should be within a certain reasonable length. Their subject should not

[PHP] Re: PHP/MySQL Search Engine Query Question

2002-07-29 Thread Richard Lynch
I am currently working on a website that is implemented using PHP and MySQL. The site currently has a simple search engine that allows a shopper to type in a search string that is stored in $search. For example, if a shopper types in 1972 Ford Mustang $string =1972 Ford Mustang Using the

[PHP] Re: file_name

2002-07-29 Thread Richard Lynch
I 'm trying to work with file upload, I already read several sites who refer that php will set the variable file_name automaticly,. I made 2 tries one on line 6 and other on line 7 of the atached code, but both does not work. Why I receive the folowing errors, and how can I correct Notice:

[PHP] Re: cant send data from a website to another

2002-07-29 Thread Richard Lynch
Hi newsgroup friends, my name is mike and im qite new to php. i have one problem: i cant send date via a form action=example.php method=post. so in the the php file called example, i write echo $nameofthefield, but the data isnt send, so nothing is written in the browser! what can i do? Read

[PHP] Re: Help reg. create user and allocate space

2002-07-29 Thread Richard Lynch
I am using PHP-4.1.1, postgresql on Linux. I want the following functionality, I dont know how to implement it. Each time a new user registeres, I want to create mail account by the name he specifies and allocate him some space of the server, say 2mb. How this is incorporated ? Woof. DANGER

[PHP] Re: Oracle 8i SQL Problem..

2002-07-29 Thread Richard Lynch
Hi, This really isn't a PHP issue..sorry. I'm having a nightmare with Oracle 8i (pos!). I'm writing common SQL which works for MSSQL 2K and seems correct for Oracle... but keeps giving me a Error.. ORA-00933 SQL command not properly ended on the following query... SELECT grp.grpdescrip,

[PHP] Re: Site Search

2002-07-29 Thread Richard Lynch
I'm wondering what is a good general approach to enabling site-wide searches on any topic on a 100% PHP-powered portal-type site for a tertiary institution (yet to be built). Most if not all content will be contained in a database, spread across potentially many different tables. How can all

[PHP] Re: REGEX for phone #

2002-07-29 Thread Richard Lynch
I'm using a regular expression (below) to check phone numbers. I'm getting an error that I can't make sense of. $regex = ^((\(\d{3}(\) -))?*\d{3}(- )\d{4},?*)+$; Output I'm getting = Warning: REG_BADRPT in /home/basemen/public_html/verify_order.php on line 28 Anyone know what this means? I

[PHP] Re: REGEX for credit card number

2002-07-29 Thread Richard Lynch
Does anyone have a regular expression that works to validate credit card numbers? http://php.net/links.php has links to code archives that will give you tons of them. Ditto for the phone numbers post I'm about to read. NOTE: Making users not be able to use phone numbers like 1-800-MY-STUFF

[PHP] Re: need help with uploading images

2002-07-29 Thread Richard Lynch
I'm trying to get an uploader to work, where you check to make sure it's a jpeg file that's being uploaded, and no other files allowed. the server is unix linux using php4.1 http://php.net/getimagesize -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound

[PHP] Re: Adding slashes when magic quotes is off?

2002-07-29 Thread Richard Lynch
I'm making a website for a friend, and trying to do everything the right way. I want to add slashes to EGPCS values. I know how to use this, but one of the comments on the get_magic_quotes_gpc entry in the manual points out that it wouldn't work with arrays in these values - and they have a

[PHP] Re: sessions and https

2002-07-29 Thread Richard Lynch
Do sessions not work when using an https connection? It seems I'm losing my data between pages. You will need to pass the Session ID from page to page any time the user crosses the HTTP/HTTPS boundary. Actually, once you pass it, it will stick around on both, but you may want to be sure and

[PHP] Re: Nope it didn't work :(

2002-07-29 Thread Richard Lynch
I've been trying a few things that should actually work and for some strange reason they aren't. It's a strange one indeed. jpg is not a MIME type though (just thought I'd let you know that) but nevertheless it should work, but for some weird reason it isn't. I'll keep plugging away at it till I

[PHP] Re: PHP-MySQL connection problem

2002-07-29 Thread Richard Lynch
My server is running on shared server which has support for PHP 4.1.2. I installed mySQL for our shared server. I also installed phpMyAdmin. Both are running properly. But I am facing following problems 1) If there is any error in the script - It is not getting displayed - screen is becoming

[PHP] Re: libphp4.so

2002-07-29 Thread Richard Lynch
howdy, i've got it all configured correctly .. well it doesn't spit any errors out on make but when i got to view a web page it opens a down load box ..so i added this LoadModule php4_modulelibexec/libphp4.so to httpd.conf as per the manual and restarted apache but it didn't start

[PHP] ENCRYPT() in MySQL

2002-07-29 Thread Justin French
Hi all, Sorry to be slightly OT, but I've prolly answered 1000 OT posts in the last year, and this IS related for all those without mycrypt, so... I'm on a shared server which does not have mcrypt... not good, since i want to temporarily store credit card numbers in an encrypted manner, either

[PHP] slm

2002-07-29 Thread TUBA UGRAS
Merhaba, Tolga, eger bu mesaj sana ulasirsa bana e-mail yollar misin :) ben tuba... TUBA UÐRAÞ [EMAIL PROTECTED] _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx --

[PHP] Create a link where http://

2002-07-29 Thread Jesse Lawrence
Hello there, I'm putting together a message board, and would like to automatically turn any instance of http://whatever into a link, without requiring the viewers to enter html. I'm thinking regex is probably the way to go with this, but I'm not really seeing how to do it. If someone could

Re: [PHP] calling user-defined php functions from a href tag

2002-07-29 Thread Brent Baisley
Actually, this works very similar to Javascript in that you can use javascript to parse the URL and thus read values from the previous page. PHP will declare the variables with the values based on the URL, you don't even have to parse it. If your URL/HREF is like this:

[PHP] Re: Create a link where http://

2002-07-29 Thread lallous
? $mem = Hello world! http://www.helloworld.com\n Hello world! ftp://ftp.server.com\n Hello world www.helloworld.com; // code starts here $mem = preg_replace (/\s+([http:|ftp:]{0,1}\S+\.\S+)/me, ' A href=\'. (ereg('^[http:|ftp:]','\\1') ? '\\1\\\1/A' : 'http://\\1\;http://\\1/A'), $mem);

Re: [PHP] Call func with variable num params (Dont confuse with making func variable params)

2002-07-29 Thread Brent Baisley
Pass your parameter as an array rather than a variable. Then you traverse the array to get all your values. On Friday, July 26, 2002, at 09:38 PM, Mathieu Dumoulin wrote: Ok, here i made a function that can accept an unknown number of params. In fact, it's a data interface for a mysql

[PHP] PHP counterpart to 4GuysFromRolla?

2002-07-29 Thread Paul Dionne
Is there a PHP counterpart to this site: http://www.4GuysFromRolla.com/ I always thought it was a great resource, easy to use, and full of information. I have not found anything nearly as comparable for PHP so far. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: PHP counterpart to 4GuysFromRolla?

2002-07-29 Thread lallous
www.phpbeginner.com http://www.zend.com/zend/tut/ . . . Paul Dionne [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there a PHP counterpart to this site: http://www.4GuysFromRolla.com/ I always thought it was a great resource, easy to use, and full of

RE: [PHP] PHP counterpart to 4GuysFromRolla?

2002-07-29 Thread Jay Blanchard
[snip] Is there a PHP counterpart to this site: http://www.4GuysFromRolla.com/ [/snip] http://www.phpbuilder.com ? Jay Monday is an awful way to spend 1/7th of your life * * Want to meet other PHP developers * * in your area? Check out: * *

Re: [PHP] PHP counterpart to 4GuysFromRolla?

2002-07-29 Thread Jason Wong
On Monday 29 July 2002 20:42, Paul Dionne wrote: Is there a PHP counterpart to this site: http://www.4GuysFromRolla.com/ I always thought it was a great resource, easy to use, and full of information. I have not found anything nearly as comparable for PHP so far. www.phpbuilder.com is

[PHP] Re: Extra spacing with br in HTML

2002-07-29 Thread Kevin Breit
On Mon, 2002-07-29 at 05:29, Richard Lynch wrote: That creates a lot of white space when that HTML is rendered. How do I tell PHP not to put line breaks in a situation like that? You can't really have the user putting in HTML and then you adding in nl2br() as well... If you're gonna let

[PHP] Brain Fart- table formatting help

2002-07-29 Thread Brian V Bonini
I'm having a total brain fart and can not seem to get the right logic for this... I'm trying to format the output of a db query with alternating row colors, the thing is the usual if ($i%2) {} will not work here because the alternating colors do not necessarily fall on odd or even rows. The one

RE: [PHP] Brain Fart- table formatting help

2002-07-29 Thread Jay Blanchard
[snip] I'm trying to format the output of a db query with alternating row colors, the thing is the usual if ($i%2) {} will not work here because the alternating colors do not necessarily fall on odd or even rows. [/snip] ?php $i = 0; while($exrows = mysql_fetch_object($dbcdrex)){

Re: [PHP] Create a link where http://

2002-07-29 Thread Analysis Solutions
On Mon, Jul 29, 2002 at 08:12:33AM -0400, Jesse Lawrence wrote: would like to automatically turn any instance of http://whatever into a link, without requiring the viewers to enter html. The mailing list archive: http://groups.google.com/groups?group=php.general Good search terms: hyperlink

Re: [PHP] Re: PostgreSQL

2002-07-29 Thread 1LT John W. Holmes
I don't *think* PostgreSQL runs under Windows, really... You can maybe install the CygWin stuff (a Linux emulator under Windows) and get that to work, but: Can anyone confirm that PG will run under CygWin? Will it communicate with PHP running on Windows, too? I'm just looking for a way to

[PHP] Re: File Browser like Win Explorer in php

2002-07-29 Thread Reuben D. Budiardja
On Mon, 2002-07-29 at 05:15, Richard Lynch wrote: I am wondering if anyone has created or know where I can get a code for browsing files and directory in using php in linux. The one I am looking for is file browsing capability that is similar to Window Explorer, meaning you can expand and

[PHP] Good books on sessions

2002-07-29 Thread Petre
What are good books/websites about sessions. I'm looking for more advanced stuff, I have the Luke Welling/Laura Tompson book, and have read the manual, but I still have issues that are unresolved. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: REGEX for phone #

2002-07-29 Thread Analysis Solutions
Hi Richard: On Mon, Jul 29, 2002 at 05:02:49AM -0500, Richard Lynch wrote: For starters, if Perl wants \ PHP needs \\ since \ is special in both languages. I'm curiuos what you're talking about. The manual says nothing about this in the PCRE section: Example 1. Examples of valid

[PHP] Re: inserting info into db

2002-07-29 Thread lallous
You can save the answers in sessions or cookies and then insert them all in one bunch. Elias, Tyler Durdin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a DB that will take answers to an 82 question survey, but i have the survey divided into 4 html

[PHP] inserting info into db

2002-07-29 Thread Tyler Durdin
I have a DB that will take answers to an 82 question survey, but i have the survey divided into 4 html pages(forms) of 20 or so question per page. The people taking the survey are not required to fill out every question on the survey. i was wondering how i can insert the data into the db this

Re: [PHP] Re: inserting info into db

2002-07-29 Thread Reuben D. Budiardja
You can save each page of the survey to somekind of temporary table in the database, and assign a session_id to it. So everytime the user click Go to Next Page, for example, the page actually submit the form, process it using php, save it in a temporary table and use session_id to identify it,

Re: [PHP] Ming Sprite confusion

2002-07-29 Thread Rasmus Lerdorf
You would probably stand more chance of an answer on the ming-fun mailing list. -Rasmus On Mon, 29 Jul 2002, Richard Lynch wrote: Please cc me on answers, as I'm way behind in this list... I have a perfectly good Ming (Flash) movie coming out of PHP, but it's a bit large... I'd like to

Re: [PHP] Good books on sessions

2002-07-29 Thread Rasmus Lerdorf
What issues? Just ask. -Rasmus On Mon, 29 Jul 2002, Petre wrote: What are good books/websites about sessions. I'm looking for more advanced stuff, I have the Luke Welling/Laura Tompson book, and have read the manual, but I still have issues that are unresolved. Thanks -- PHP

RE: [PHP] Brain Fart- table formatting help

2002-07-29 Thread Brian V Bonini
Isn't that the same thing essentially? See, from the time ($row-show_title) is true until it is true again is not a fixed number so the only constant is that if ($row-show_title) is true then the tr background color will be on. Then I need to alternate the background color between on and off

[PHP] Patch 4.2.2

2002-07-29 Thread Sonket
I download Patch for 4.2.1 to become to 4.2.2 I apply it : cd /usr/local patch -p0 path/to/patch it seems the patch is correctly installed, but when the result of phpinfo() tells me that the installed version is 4.2.1 yet ! NEWS file is modified, etc, but i don't know if this patch is

[PHP] PHP 4.2.2 vpopmail

2002-07-29 Thread Jakub Zawierucha
I have little problem with vpopmail functions from PHP 4.2.2. When I use vpopmail_auth_user ( blah, foo.bar.pl, secret string ); I get no correct return value ( echo vpopmail_auth_user ( blah, foo.bar.pl, secret string ); - give me no result ). This values are 100% good. I have Apache with

Re: [PHP] Picking up Data of Previous Date from Table

2002-07-29 Thread Analysis Solutions
On Mon, Jul 29, 2002 at 01:03:55AM -0700, Thomas Edison Jr. wrote: SELECT * FROM transactions,holdings where transactions.isinno=holdings.isinno AND transactions.clientid='$clientid' AND holdings.clbal!=0 GROUP BY holdings.isinno ORDER BY shares Now for this purpose i'm facing a simple

[PHP] Dates and Date()

2002-07-29 Thread Christopher J. Crane
I believethisto be one way to find out yesterday's date: $tomorrow = mktime (0,0,0,date(m) ,date(d)-1,date(Y)); However, I would like to have a snippet of code to tell me how to get the date of today - 10 days ago. if today is jul 29, 2002, how do I get the date funtion to tell me 10 days

Re: [PHP] Dates and Date()

2002-07-29 Thread Rasmus Lerdorf
$ts = strtotime(-10 days); On Mon, 29 Jul 2002, Christopher J. Crane wrote: I believethisto be one way to find out yesterday's date: $tomorrow = mktime (0,0,0,date(m) ,date(d)-1,date(Y)); However, I would like to have a snippet of code to tell me how to get the date of today - 10 days

Re: [PHP] Dates and Date()

2002-07-29 Thread Analysis Solutions
On Mon, Jul 29, 2002 at 10:51:39AM -0400, Christopher J. Crane wrote: I believethisto be one way to find out yesterday's date: $tomorrow = mktime (0,0,0,date(m) ,date(d)-1,date(Y)); However, I would like to have a snippet of code to tell me how to get the date of today - 10 days ago. You

RE: [PHP] Brain Fart- table formatting help

2002-07-29 Thread Jay Blanchard
[snip] Isn't that the same thing essentially? See, from the time ($row-show_title) is true until it is true again is not a fixed number so the only constant is that if ($row-show_title) is true then the tr background color will be on. Then I need to alternate the background color between on and

RE: [PHP] Patch 4.2.2

2002-07-29 Thread Matt Babineau
Did you restart Apache? I am an Apache Newbie, but I would think you would need to simple restart apache to take the old PHP out of memory so it can load the new one? Matt Babineau MCWD / CCFD - e: [EMAIL PROTECTED] p: 603.943.4237 w:

Re: [PHP] Dates and Date()

2002-07-29 Thread Andrey Hristov
- Original Message - From: Christopher J. Crane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 29, 2002 5:51 PM Subject: [PHP] Dates and Date() I believethisto be one way to find out yesterday's date: $tomorrow = mktime (0,0,0,date(m) ,date(d)-1,date(Y)); However, I

Re: [PHP] Brain Fart- table formatting help

2002-07-29 Thread 1LT John W. Holmes
So only increase $i when $row-show_title is true. if($row-show_title) { $i++; } $bgcolor = ($i 1) ? '#FF' : '#CC'; ---John Holmes... - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: Jay Blanchard [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 29, 2002

Re: [PHP] Patch 4.2.2

2002-07-29 Thread Sonket
yes, yes, and the version don't change... Matt Babineau wrote: Did you restart Apache? I am an Apache Newbie, but I would think you would need to simple restart apache to take the old PHP out of memory so it can load the new one? Matt Babineau MCWD / CCFD

Re: [PHP] ENCRYPT() in MySQL

2002-07-29 Thread Analysis Solutions
On Mon, Jul 29, 2002 at 10:06:29PM +1000, Justin French wrote: I'm on a shared server which does not have mcrypt... not good, since i want to temporarily store credit card numbers in an encrypted manner, either in a MySQL database, or in a text file. Uh, what are you going to do with the cc

[PHP] Array variable in Javascript PHP

2002-07-29 Thread Sheni R. Meledath
Hello: In a form I am using a series of check boxes for a number of lists. Some calculations has to be done on the client side using Javascript depending upon the check box values. For this I am using a single variable name (array) for the check boxes in a list and another for the next list

[PHP] Array variable in Javascript PHP

2002-07-29 Thread Sheni R. Meledath
Hello: In a form I am using a series of check boxes for a number of lists. Some calculations has to be done on the client side using Javascript depending upon the check box values. For this I am using a single variable name (array) for the check boxes in a list and another for the next list

[PHP] Re: filling an array(2)

2002-07-29 Thread Steve Buehler
That did the trick. Thank you SO MUCH. Steve At 03:48 AM 7/29/2002 -0500, Richard Lynch wrote: h. Ok. Can somebody explain this one? Why won't it work correctly? for($m=1;$m=5;$m++){ $div_idd[$m]=${'row-sub' . $m . 'd'}; } Can it not be done with a 3 parter? The columns in

Re: [PHP] Array variable in Javascript PHP

2002-07-29 Thread Danny Shepherd
Try using: input type=checkbox id=list1 name=list1[] value=Education onclick=addList() Education input type=checkbox id=list1 name=list1[] value=Profession onclick=addList() Profession That's what I used when doing something pretty similar to you. HTH Danny. - Original Message -

Re: [PHP] Array variable in Javascript PHP

2002-07-29 Thread Martin Clifford
PHP cannot read a JavaScript array, simple as that. There are many workarounds, depending upon your situation. You can, for instance, create a function that is called onsubmit, that will take any values in checked checkboxes and put them into a comma-delimitted string inside a hidden form

RE: [PHP] Re: Table formatting -- PARTIALY SOLVED

2002-07-29 Thread César Aracena
Thnx a lot Martin and all, this worked. Anyway, apart of this being a logical solution (I almost kill myself for not thinking it before), why is that the FOR looping (before using that division operator) worked in such a strange way? Isn't it supposed to stop looping if nothing else is fetched

RE: [PHP] Stopping Multiple Entries in mySQL DB

2002-07-29 Thread Thomas Edison Jr.
Hi, Ok i cant actully do this. I have many multiple entries already in the table which i do not wish to delete. And it won't alter table with these multiple entries. So what i need is a PHP Engineered solution, where my PHP code would check for existing entries and deny entry Thanks, T.

[PHP] major problem using mv command to a directory

2002-07-29 Thread electroteque
hi guys i have a big problem i need to fix , i was moving a tar ball to another dir , using mv ImageMagick-i686-pc-linux-gnu.tar.gz /home/usr, i now cannot move into the usr directory, it has somehow appended the tar ball into the driectory strucuture and cant undo this ? please help -- PHP

RE: [PHP] Brain Fart- table formatting help

2002-07-29 Thread Brian V Bonini
Ah, well... that was not clearly explained in your first post. You wanted alternating rows colors, and that is what I gave you. Let's see if I understand the question; For each show_title there are multiple rows of data, but they do not match row counts from show to show? You want the

Re: [PHP] Re: PostgreSQL

2002-07-29 Thread Danny Shepherd
Checkout this FAQ - http://www.ejip.net/faq/postgresql_win_setup_faq.jsp HTH Danny. - Original Message - From: 1LT John W. Holmes [EMAIL PROTECTED] To: Richard Lynch [EMAIL PROTECTED]; Hadi [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 29, 2002 2:24 PM Subject: Re: [PHP]

Re: [PHP] Stopping Multiple Entries in mySQL DB

2002-07-29 Thread 1LT John W. Holmes
Ok i cant actully do this. I have many multiple entries already in the table which i do not wish to delete. And it won't alter table with these multiple entries. So what i need is a PHP Engineered solution, where my PHP code would check for existing entries and deny entry So do it...

Re: [PHP] Re: Help reg. create user and allocate space

2002-07-29 Thread Rick Widmer
At 04:55 AM 7/29/02 -0500, Richard Lynch wrote: I am using PHP-4.1.1, postgresql on Linux. I want the following functionality, I dont know how to implement it. Each time a new user registeres, I want to create mail account by the name he specifies and allocate him some space of the

RE: [PHP] Re: Table formatting -- PARTIALY SOLVED

2002-07-29 Thread César Aracena
I just found a new problem when using the solution Martin tells me below... if I take out one record from the DB, leaving just 3 objects, the web page displays: row1 = 2 objects in two columns row2 = 1 object in the first column and a *NOT DISPLAYED* image in the 2nd column... how can I override

Re: [PHP] Dates and Date()

2002-07-29 Thread Christopher J. Crane
Ok here is what I did. $Hist_Time = gmstrftime('%m:%d:%Y', strtotime(-10 days)); Now I am wondering if there is a way to look for only the last day business days and be returned in an array? - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: Christopher J. Crane [EMAIL

Re: [PHP] inserting info into db

2002-07-29 Thread Rick Widmer
At 01:56 PM 7/29/02 +, Tyler Durdin wrote: I have a DB that will take answers to an 82 question survey, but i have the survey divided into 4 html pages(forms) of 20 or so question per page. The people taking the survey are not required to fill out every question on the survey. i was

  1   2   >