[PHP] problem using extension.

2003-03-03 Thread Joe Wong
Hello, I have some problem using an extension written by myself. Here are the details: OS. RedHat 7.2 Apache: 1.3.20-16 (out of the box version ) PHP 4.3.0 compiled with: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Text File open and display

2003-03-03 Thread Chris Blake
Greetings learned PHP(eople), There have been a number of postings recently on opening and reading files, and whilst I have read `em all I fail to make sense of it all. Basicaly...I have a text file with entries in it...I wish to display the contents of this file line by line in an HTML table :

Re: [PHP] fread problem

2003-03-03 Thread Ernest E Vogelsinger
At 05:46 03.03.2003, Paul Cohen said: [snip] Here is the code in my file and was taken directly from the manual: $filename = test.php; $handle = fopen ($filename, r); $contents = fread ($handle, filesize ($filename)); fclose ($handle);

Re: [PHP] problem using extension.

2003-03-03 Thread Ernest E Vogelsinger
At 09:49 03.03.2003, Joe Wong said: [snip] Hello, I have some problem using an extension written by myself. Here are the details: OS. RedHat 7.2 Apache: 1.3.20-16 (out of the box version ) PHP 4.3.0 compiled with:

RE: [PHP] Text File open and display

2003-03-03 Thread Niklas Lampén
You get a file to an array of lines with file(). Example: ? $myFile = file(text_file.txt); // Now $myFile is an array looking like // [0] = row 1; // [1] = row 2; // [2] = row 3; // . for ($i = 0; $i count($myFile); $i++) { print Row .($i+1).: .$myFile[$i]; }; ? Niklas

RE: [PHP] Text File open and display

2003-03-03 Thread Chris Blake
Muchos grassy arse...works perfectly On Mon, 2003-03-03 at 11:06, Niklas Lampén wrote: You get a file to an array of lines with file(). Example: ? $myFile = file(text_file.txt); // Now $myFile is an array looking like // [0] = row 1; // [1] = row 2; // [2] = row 3; // .

[PHP] php as php3 perhaps with htaccess

2003-03-03 Thread Cranky
Hello, I have a website and all my files are *.php3 I would like to change the extensions of all files to *.php My problem is for the search engine and links to my site. Because the site is well referenced in the search engine with files liek *.php3 So if I rename all files in .php, the links

Re: [PHP] Zend Encoder

2003-03-03 Thread Zeev Suraski
At 18:51 25/02/2003, Thomas Johnsson wrote: 1. Zend does not have a way to decode a php file that was encoded using Zend Encoder. (For those of you paying attention to details, note the word decode, not decrypt. Zend Encoder does not encrypt. US gov't lawyers, please take note :) Are you not

Re: [PHP] 2 questions !

2003-03-03 Thread Chris Hewitt
Justin French wrote: I'm sure there's a way to check the owner of a file, but not (from what i know) a way to check who apache is running as. On linux ps aux | grep httpd will list as the first item the user the apache processes are running as. Ignore the one with root. On other unices the

Re: [PHP] php as php3 perhaps with htaccess

2003-03-03 Thread Ernest E Vogelsinger
At 10:21 03.03.2003, Cranky said: [snip] I have a website and all my files are *.php3 I would like to change the extensions of all files to *.php So I would like to know if there is a way perhaps with a .htaccess file to say that the file .php3 must be

Re: [PHP] problem using extension.

2003-03-03 Thread Ernest E Vogelsinger
At 10:35 03.03.2003, Joe Wong said: [snip] My last posting was interrupted. The details are here: I have created an extension on top of a C++ library If I put the module name into php.ini extension=XYZ, apache failed to load If I try to use 'dl' to load

Re: [PHP] php as php3 perhaps with htaccess

2003-03-03 Thread Cranky
Thanks for this reply. But I can not use the mod-rewrite because my site is on a shared hosting. Another idea ? Thanks Ernest E Vogelsinger [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] At 10:21 03.03.2003, Cranky said: [snip] I

Re: [PHP] php as php3 perhaps with htaccess

2003-03-03 Thread Ernest E Vogelsinger
At 11:29 03.03.2003, Cranky said: [snip] Thanks for this reply. But I can not use the mod-rewrite because my site is on a shared hosting. Another idea ? [snip] Ask your sysadmin to install the mod-rewrite for your

[PHP] IP Addesses on local network

2003-03-03 Thread Chris Blake
Greetings, Th command echo gethostbyaddr(ip.number.inserted.here); returns the name of the server when it`s an internet address. Is there a similar command that will return host names on a local network I tried using the above command putting in a LAN address, but it just returned the IP

Re: [PHP] IP Addesses on local network

2003-03-03 Thread Dan Hardiker
echo gethostbyaddr(ip.number.inserted.here); returns the name of the server when it`s an internet address. Is there a similar command that will return host names on a local network I tried using the above command putting in a LAN address, but it just returned the IP address. This

Re: [PHP] Where to publish extension?

2003-03-03 Thread Niels Andersen
Not sure how you define an extension, but you could take a look at my web site www.phpscriptsearch.com and see if it applies to listing it there. But like I said, it depends what you mean by extension. Extension like in binary that is either an integral part of PHP or a loadable module. As

[PHP] formtext

2003-03-03 Thread DIKSHA NEEL
HI EVERYBODY, i was trying to put a text field in a form in my php script but it's giving me the following error: Parse error: parse error in /var/www/html/bdoi_change/f1.php on line 10 the code is as follows: html head title /title /head /body h1Business Directory Of India/h1 pre ?php form

[PHP] formtext

2003-03-03 Thread DIKSHA NEEL
HI EVERYBODY, i was trying to put a text field in a form in my php script but it's giving me the following error: Parse error: parse error in /var/www/html/bdoi_change/f1.php on line 10 the code is as follows: html head title /title /head /body h1Business Directory Of India/h1 pre ?php form

[PHP] Re: IP Addesses on local network

2003-03-03 Thread Niels Andersen
Do you have a DNS server on you network? Without it, it will not work. Chris Blake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings, Th command echo gethostbyaddr(ip.number.inserted.here); returns the name of the server when it`s an internet address. Is there a similar

RE: [PHP] formtext

2003-03-03 Thread Jon Haworth
Hi Diksha, Parse error: parse error in /var/www/html/bdoi_change/f1.php on line 10 html head title /title /head /body h1Business Directory Of India/h1 pre ?php form You can't use HTML directly when you're inside a PHP block - het rid of the ?php on line 9, or use echo from line

Re: [PHP] Free email service Plus get Paid while using it!!!!

2003-03-03 Thread David T-G
Steve -- ...and then steve adamian said... % % I thought you would enjoy this new web site ... Actually, I have no interest in it unless it so happens that it is written in PHP and we can discuss the source code. % ... % If you will decide to join please use my User ID rudeboy311 ... Well,

[PHP] info required reg. PHP

2003-03-03 Thread yogendra lingsugur
Hello ! I have got 2 doubts/questions for clarification. 1) Can we display an alert box using PHP. The objective is to fire back the user for his incorrect submission with an alert message. 2) I would like to know the max. number of records or max. space a database (mentioned below) can

[PHP] info required reg. PHP

2003-03-03 Thread yogendra lingsugur
Hello ! I have got 2 doubts/questions for clarification. 1) Can we display an alert box using PHP. The objective is to fire back the user for his incorrect submission with an alert message. 2) I would like to know the max. number of records or max. space a database (mentioned below) can

RE: [PHP] info required reg. PHP

2003-03-03 Thread Niklas Lampén
1) No you can't. Use javascript for that. 2) This information is easy to find from web. Read datasheets or use google. Niklas -Original Message- From: yogendra lingsugur [mailto:[EMAIL PROTECTED] Sent: 3. maaliskuuta 2003 14:32 To: [EMAIL PROTECTED] Subject: [PHP] info required reg.

RE: RE: [PHP] formtext

2003-03-03 Thread Jon Haworth
Hi Diksha, Parse error: parse error, expecting `','' or `';'' in /var/www/html/bdoi_change/f1.php on line 11 the code is: ?php echoform Please enter other login id:input type=text name=login /form; You need to escape the quotes inside the string, or use single quotes to define it.

RE: [PHP] info required reg. PHP

2003-03-03 Thread Jon Haworth
Hi, 1) Can we display an alert box using PHP. No, you need to use Javascript's alert() function. PHP is server-side only. 2) I would like to know the max. number of records or max. space a database (mentioned below) can provide. Oracle, MySQL and SQL Server are limited only by the space

RE: RE: [PHP] formtext

2003-03-03 Thread Jon Haworth
Hi Diksha, Please excuse the line wrapping in my last post - you may have to copy 'n' paste into a text editor to see it as it should be :-) Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] info required reg. PHP

2003-03-03 Thread bbonkosk
Answer to number 1: I'm sure you could, but why would you want to when Javascript is more suited for this type of processing. If you don't know javascript google for some tutorials or for alert boxes, and I'm sure you will find plenty of examples. for #2: For Mysql check this:

[PHP] eval help

2003-03-03 Thread neko
Hi guys, My current task involves passing a string into a function that is able to reference variables defined within that function for the final output. The idea is that a function iterates through objects and eval's the string so that the objects data (name etc) is substituted in the string.

Re: [PHP] eval help

2003-03-03 Thread Ernest E Vogelsinger
At 14:47 03.03.2003, neko said: [snip] $someVar = brtesting for node - wootah, \$evalTestArr[TAG_PAGENAME] then in some other function that gets passed this string ... $evalTestArr[TAG_PAGENAME] = hello anna marie gooberfish!; $str = $someVar;

[PHP] Re: eval help

2003-03-03 Thread neko
note that the following php: ?php /* eval testing SM 3/3/2003 1:28PM */ $name = Scott; $arr[] = Dude; $arr2[name] = Broness!; echo($arr2['name']); // test $str = brHello, $name; $str2 = brHello, $arr[0]; $str3 = brHello, $arr2['name']; eval (\$evaldString = \$str\;); echo $evaldString;

Re: [PHP] Re: eval help

2003-03-03 Thread Dan Hardiker
Hi, $arr2[name] = Broness!; .. $str3 = brHello, $arr2['name']; .. eval (\$evaldString = \$str3\;); echo $evaldString; Your almost there... just remember one very simple rule - if in doubt, break out. Meaning, if you're having variable resolution issues, then just break out of the string.

[PHP] Reports with PHP Mysql

2003-03-03 Thread Manoj Nahar
Hi there, Any class or libraries for generating, formatting reports with PHP Mysql? Manoj --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: eval help

2003-03-03 Thread neko
Thanks Dan - I just worked this out before reading your solution! :) $str4 = brHello, .$arr2['name']; cheers and thanks to all - lets see how that goes within my framework now :) neko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL, Apache and UPDATE, INSERT and DELETE

2003-03-03 Thread Frans Bakker
Hello friends, Thanks for the help with the file upload, that has been solved by simply setting the write permissions on the corresponding directories. Another thing: I have developed my PHP application on a Windows machine with a MySQL server database. However, it was meant for a Linux server

[PHP] PHP Oracle

2003-03-03 Thread Simon
Hi, i have one big Oracle database, 20GB. Is it better to comunicate directly to Oracle with PHP, or to export data to MySQL. How secure is PHP Oracle, can they communicate well? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: eval help

2003-03-03 Thread neko
Actually, I just realised that what I want to accomplish is different from my example - the main issue is with scope: ?php /* eval testing 3 SM 33/3/2003 2:32PM */ func1(); function func1() { echo(brwe're in the pipe, 5-5-5.); $str = brHello, \$name; $str2 = brHello, \$arr[0];

[PHP] Re: eval help

2003-03-03 Thread neko
?php /* eval testing 3 SM 33/3/2003 2:32PM */ define(NAME_TAG, name); func1(); function func1() { echo(brwe're in the pipe, 5-5-5.); $str = brHello, \$name; $str2 = brHello, \$arr[0]; $str3 = brHello, \$arr2[.NAME_TAG.]; echo doEvalWithVarsInScope($str); echo

Re: [PHP] PHP Oracle

2003-03-03 Thread Reuben D. Budiardja
On Monday 03 March 2003 09:29 am, Simon wrote: Hi, i have one big Oracle database, 20GB. Is it better to comunicate directly to Oracle with PHP, or to export data to MySQL. How secure is PHP Oracle, can they communicate well? I don't see why you would want to export data to MySQL first. PHP

[PHP] Thank you! [GD Libraries]

2003-03-03 Thread Anthony Ritter
Thank you to all that came to my aid while I was muddleing through my attempts to install GD Libraries. Since I had various versions of PHP from textbook CD's - I downloaded PHP Triad which happened to be PHP version 4.1.1 I changed two lines in the php.ini file and ran the phpinfo() function

Re: [PHP] MySQL

2003-03-03 Thread Larry E. Ullman
This is OT, I'm considering buying the MySQL, Second Edition Paul DuBois book. I'm using MySQL 3.23. Should I be buying the first edition DuBois book instead or does BuBois cover both 3 and 4 in the second edition? Is there a huge difference between 3 and 4? Here's a URL for the second

[PHP] Automatic Table Creation

2003-03-03 Thread Awlad Hussain
I have a mysql table containing about 100 record, alphabetically ordered. How would i display them in browser in a 3 columns, doesn't matter how long the rows is as the number of records will grow in the database table. the records should be in alphabetically order, for example: aaa bbba

[PHP] Using sapi/embed

2003-03-03 Thread Mark Newnham
Does anyone have a simple example of using the sapi/embed option from an external c or c++ program, including compiling/linking? TIA Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File array mailing list pharse error

2003-03-03 Thread WebDev
Hello again I worked on it so long now I have to come back to you it gives me an Parse error: Parse error: parse error, expecting `'('' in members_read_send.php on line 5 Iam so sorry to bug u so much but can u help me finish here please? ?php $lines = file(data/default2.users); for each

[PHP] Re: eval help

2003-03-03 Thread neko
ok - my latest in the eval saga is this: I want to be able to eval a function call anywhere in the string supplied, and the function call is not in scope when the string is defined. So -- somewhere in my code I wanted something like this: $string = brtesting nodename: \$node-getName()

[PHP] PHP on IIS session problems

2003-03-03 Thread Victor Stan
I get these errors from a simple session_start(); script. Warning: session_start() [function.session-start]: open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2 Warning: session_start()

RE: [PHP] PHP on IIS session problems

2003-03-03 Thread Jon Haworth
Hi Victor, Warning: session_start() [function.session-start]: open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2 Pay attention to the error messages. This one explains exactly what you're doing

[PHP] XML Question

2003-03-03 Thread Diana Castillo
what does harvest mean? what would the function harvest do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP on IIS session problems

2003-03-03 Thread Rich Gray
I get these errors from a simple session_start(); script. Warning: session_start() [function.session-start]: open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2 Warning: session_start()

Re: [PHP] Automatic Table Creation

2003-03-03 Thread Jonathan Pitcher
Awlad, I would guess you are trying to create an HTML table to display the records. $Row = The results returned from. mysql_fetch_array(). $Total = count($Row); $TotalInEachRow = round(($Total/3)); if (($TotalInEachRow * 3) $Total) { $TotalInEachRow ++; // Planning for the Remainder

Re: [PHP] PHP on IIS session problems

2003-03-03 Thread 1LT John W. Holmes
I get these errors from a simple session_start(); script. Warning: session_start() [function.session-start]: open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2 Do you have a /tmp folder on your

[PHP] Re: Restate: using php to rotate ad banners

2003-03-03 Thread Philip Hallstrom
The other problem is that if I open two browser windows to your site, one after the other, and see two banners, and then click on the first one, am I going to go to the site for the second one? Yes, that is one of the main problems. Would using sessions help end this? No, since

Re: [PHP] File array mailing list pharse error

2003-03-03 Thread 1LT John W. Holmes
I worked on it so long now I have to come back to you it gives me an Parse error: Parse error: parse error, expecting `'('' in members_read_send.php on line 5 Iam so sorry to bug u so much but can u help me finish here please? ?php $lines = file(data/default2.users); for each ($lines as

[PHP] MySQL, Apache, SELECT, UPDATE etc. 2

2003-03-03 Thread Frans Bakker
Hello, In addition to my previous message the following: I have developed a PHP application on a Windows machine with a MySQL server database. However, it was meant for a Linux server running Apache, where it runs now. After checking with the server administrator it turns out that pages with

Re: [PHP] XML Question

2003-03-03 Thread Joseph W. Goff
Sorry, but I am unaware of this function. It is not a native function to php, maybe it is a custom function that is part of a library that you are using. You would have to contact them for documentation on thier functions. - Original Message - From: Diana Castillo [EMAIL PROTECTED] To:

Re: [PHP] Automatic Table Creation

2003-03-03 Thread 1LT John W. Holmes
The easiest way would be nested tables. Your three columns would each have a nested table within them where you loop through 1/3 of the results. Some simple math functions and the result of mysql_num_results() should tell you how many to loop through in each table. table tr td table

Re: [PHP] Automatic Table Creation

2003-03-03 Thread Awlad Hussain
Thanks Jonathan, I'll have a go with your codes. Thanks very much awlad - Original Message - From: Jonathan Pitcher [EMAIL PROTECTED] To: Awlad Hussain [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, March 03, 2003 4:17 PM Subject: Re: [PHP] Automatic Table Creation Awlad, I

[PHP] Session variable under PHP 4.0.6

2003-03-03 Thread Henry Grech-Cini
Hi All, I'm having a problem with session variables under PHP 4.0.6 on a secure server. I ran phpinfo and have attached the resulting page after the main body of this message. My test code looks like this Filename: index.php Page Start -- ?php session_start();

RE: [PHP] Session variable under PHP 4.0.6

2003-03-03 Thread Johnson, Kirk
In the first file, replace this line: $HTTP_SESSION_VARS['variable']=the variables value; with these two lines: $variable = the variables value; session_register('variable'); This is because 'register_globals' is enabled in the php.ini file. Kirk -Original Message- From: Henry

[PHP] [ANN] TemplateTamer 1.0.3 released

2003-03-03 Thread rush
Hello, After several months of beta, TemplateTamer 1.0 has been released, and it can be downloaded from the TemplateTamer web site: http://www.templatetamer.com/ rush -- http://www.templatetamer.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Oracle

2003-03-03 Thread 1LT John W. Holmes
i have one big Oracle database, 20GB. Is it better to comunicate directly to Oracle with PHP, or to export data to MySQL. How secure is PHP Oracle, can they communicate well? Why would you send it to MySQL? Just get PHP and Oracle talking and go with that. ---John Holmes... -- PHP General

RE: [PHP] PHP on IIS session problems

2003-03-03 Thread Victor Stan
Ok, thanks guys for your help, I sort of figured that's the problem, but I didn't want to touch the ini settings without being sure, and getting some advice from people that know. Thanks again, great help. I made the changes, now how do I restart php? So the changes are used? - Vic

[PHP] Phpadsnew?

2003-03-03 Thread MIKE YRABEDRA
Has anyone else had problems with this app opening tons of processes and never closing them? -- Mike Yrabedra President 323, Inc. Home of The MacDock and The MacSurfshop [http://macdock.com] : [http://macsurfshop.com] VOICE: 770.382.1195 iChat/AIM: ichatmacdock

Re: [PHP] PHP on IIS session problems

2003-03-03 Thread 1LT John W. Holmes
You need to restart IIS. c:\ net stop iisadmin c:\ net start w3svc or use the control panel. ---John Holmes... - Original Message - From: Victor Stan [EMAIL PROTECTED] To: 1LT John W. Holmes [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 03, 2003 12:54 PM Subject: RE: [PHP]

[PHP] changing colors on buttons

2003-03-03 Thread Sunfire
is there a way you can change the text color on buttons as well as the background color for a button? i have a button that looks like: input type=button name=edit value=edit onclick=window.location='edit.php'; onkeypress=window.location='edit.php' so is there a way to change text color and

[PHP] where do you recommend I put useful code for people to use?

2003-03-03 Thread Henry Grech-Cini
Hi All, I've written some javascript that serializes javascript variables so that they can be sent to PHP and unserialized there. Is this silly thing to have done? i.e. is it already done or superfluous for some reason? Or, if it is not, where would I put the code to share it with others. Thing

RE: [PHP] changing colors on buttons

2003-03-03 Thread Barajas, Arturo
Use CSS: input { color: Navy; background: LightBlue; } (I'm writing from memory, but the essence is that.) ((HTH)) -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 -Original Message- From: Sunfire [mailto:[EMAIL

Re: [PHP] changing colors on buttons

2003-03-03 Thread Chris Hayes
At 18:13 3-3-03, you wrote: is there a way you can change the text color on buttons as well as the background color for a button? you do that by making a css style for the button, plenty of examples on the net, if you can figure it out from a german site try

Re: [PHP] changing colors on buttons

2003-03-03 Thread 1LT John W. Holmes
is there a way you can change the text color on buttons as well as the background color for a button? i have a button that looks like: input type=button name=edit value=edit onclick=window.location='edit.php'; onkeypress=window.location='edit.php' so is there a way to change text color and

Re: [PHP] post xml

2003-03-03 Thread qt
Dear Sirs, I am trying to post xml file to http address but no result. I saw your script at the below but I can not understand How can send file? Can you help Best Regards Mincu Alexandru [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] yes you can connect to the server from your PHP

[PHP] Still no luck running a PHPCLI script from CRON

2003-03-03 Thread Justin Michael Couto
Ok, by looking at my cron logs it looks like cron is trying to run my PHP CLI script. However, it is not running it. I only have one line of code that isn't commented out and the line simply sends me an email using the PHP mail() function. Tom suggested that maybe the script is running, but

[PHP] Problems posting

2003-03-03 Thread Niels Andersen
When I post something here, it first appears several hours later. How can it be so? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problems posting

2003-03-03 Thread Henry Grech-Cini
Did you send this post at 17:17 and did it arrive at 17:22? Niels Andersen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When I post something here, it first appears several hours later. How can it be so? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP on IIS session problems

2003-03-03 Thread Victor Stan
K, thanks, I tried stopping just the web sites from the control panel, but I guess I had to stop the whole thing and restart. - Vic -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 11:07 AM To: Victor Stan; [EMAIL PROTECTED] Subject: Re:

RE: [PHP] MySQL

2003-03-03 Thread Dan Sabo
Thanks Larry, What are some of the more active MySQL lists? Do you have a URL or two? Thanks, Dan -Original Message- From: Larry E. Ullman [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 9:52 AM To: Dan Sabo Cc: [EMAIL PROTECTED] Subject: Re: [PHP] MySQL This is OT, I'm

Re: [PHP] Still no luck running a PHPCLI script from CRON

2003-03-03 Thread Dan Hardiker
Ok, by looking at my cron logs it looks like cron is trying to run my PHP CLI script. However, it is not running it. I only have one line of code that isn't commented out and the line simply sends me an email using the PHP mail() function. One thing to keep in mind when working with crontab

Re: [PHP] Session variable under PHP 4.0.6

2003-03-03 Thread Henry Grech-Cini
Thanks that works in my testing example. But why? The manual says: Caution If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered() and session_unregister(). But in index2.php I am using $HTTP_SESSION_VARS and it works?! Need a bit of

Re: [PHP] MySQL

2003-03-03 Thread Larry E. Ullman
What are some of the more active MySQL lists? Do you have a URL or two? http://www.mysql.com/documentation/lists.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] xml file posting

2003-03-03 Thread qt
Dear Sirs, I am trying to post xml file to http address but I mixed up all. Any source to read this item. I can not realize that shoul I write the file on the server before or I can send without writing. Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] post xml file

2003-03-03 Thread qt
Dear Sirs, I am trying to post a xml file to following http. But I can not. where can I find some source to read. https://xxx.xxx.xxx.xx/servlet/com.oks.buing.xml.detdrd Any help welcome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP shopping carts

2003-03-03 Thread Dan Sabo
Hi, What I'm looking for is either an open source or commercial solution which is supported by either commercial or OS add on modules. I've looked at OS commerce and X cart so far, wanted to look at a few more. I'm hoping to find one which has a hotel booking or reservation system either as a

[PHP] News Content

2003-03-03 Thread Jason Paschal
Anyone know of any pre-built modules or whatnot that provide some news content and/or links and captions via PHP/MySQL that can be integrated with minimal disruption to a site? (A prerequisite being that it acts legally in terms of gathering the info. ;) Thank you, Jason

RE: [PHP] Session variable under PHP 4.0.6

2003-03-03 Thread Johnson, Kirk
That Caution message is not the full story, read some more on register_globals. If register_globals is On in php.ini, then do the following: - use session_register() to create your session variables; - use the global variable to access the variable, not the $HTTP_SESSION_VARS array. Example:

[PHP] Keeping existing data in textarea's

2003-03-03 Thread Mirco Ellis
Hi, I have a developed a simple Helpdesk for our small company. When users log calls they get an alert message warning them that they must fill in all the fields if they have missed a field. At the moment if they happen to forget a field, they receive the alert message, but then have to start all

RE: [PHP] Keeping existing data in textarea's

2003-03-03 Thread Barajas, Arturo
Mirco, What I do is (in a JavaScript function): window.location = ?= $_SERVER['PHP_SELF'] ???= $_SERVER['QUERY_STRING'] ?; and then populate the fields this way: input type=text value=?= $_GET['thefield'] ? or textarea?= $_GET['thearea'] ?/textarea HTH -- Un gran saludo/Big regards...

Re: [PHP] Keeping existing data in textarea's

2003-03-03 Thread Greg Donald
On Mon, 3 Mar 2003, Mirco Ellis wrote: Hi, I have a developed a simple Helpdesk for our small company. When users log calls they get an alert message warning them that they must fill in all the fields if they have missed a field. At the moment if they happen to forget a field, they receive the

Re: [PHP] Keeping existing data in textarea's

2003-03-03 Thread Jonathan Pitcher
It is really easy to stop Javascript from going to the next page. To pop open the alert box I am assuming you call a javascript function. INPUT Type=Submit Name=Submit Value=Create Workorder onclick=return VerifyForm(this.form) Usually you would do onclick=VerifyForm(this.form) but by

Re: [PHP] Keeping existing data in textarea's

2003-03-03 Thread 1LT John W. Holmes
Hi, I have a developed a simple Helpdesk for our small company. When users log calls they get an alert message warning them that they must fill in all the fields if they have missed a field. At the moment if they happen to forget a field, they receive the alert message, but then have to start

[PHP] processing pop3 inbox

2003-03-03 Thread Henry Grech-Cini
Hi All, I need to process the inbox. Any pointers, I don't use Perl and would like to use PHP. Also I do not have PHP compiled for a comand line so I'll probably use a crontab and unix text based web browser to invoke the PHP page to process the inbox. TIA Any help much appreciated. Henry --

[PHP] ICQ # validation

2003-03-03 Thread Liam Gibbs
Maybe I'm off my rocker, but I don't see how this can't work. I'm trying to validate an ICQ number, and assuming a valid one is between 7 and 9 numbers. My line of code is this: if(ereg(^[0-9]{7,9}$, $_REQUEST[icqnumber])) { print(a-okay!); } else { print(error msg); } I've submitted

[PHP] Re: PHP shopping carts

2003-03-03 Thread Henry Grech-Cini
Hi, Please let me know if you find one thats any good? Henry Dan Sabo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, What I'm looking for is either an open source or commercial solution which is supported by either commercial or OS add on modules. I've looked at OS commerce

[PHP] max_execution_time and set_time_limit() problem.

2003-03-03 Thread Eric Wood
I'm uploading a large file through my web page and after 30 seconds, the fails with an error. I bumbed the max_execution_time parameter in /etc/php.ini to 600 seconds and restarted apache. Still errors at 30 seconds. I added set_time_limit(600); to various place in my file upload handling

Re: [PHP] ICQ # validation

2003-03-03 Thread 1LT John W. Holmes
Use single quotes around your pattern. if(ereg('^[0-9]{7,9}$',... With the double quotes, PHP is probably seeing the $ and looking for a variable, even though it's at the end of the string. ---John Holmes... - Original Message - From: Liam Gibbs [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: [PHP] ICQ # validation

2003-03-03 Thread David Otton
On Mon, 3 Mar 2003 14:00:43 -0500, you wrote: Maybe I'm off my rocker, but I don't see how this can't work. I'm trying to validate an ICQ number, and assuming a valid one is between 7 and 9 numbers. My line of code is this: if(ereg(^[0-9]{7,9}$, $_REQUEST[icqnumber])) { print(a-okay!); }

Re: [PHP] News Content

2003-03-03 Thread David Otton
On Mon, 03 Mar 2003 13:09:39 -0500, you wrote: Anyone know of any pre-built modules or whatnot that provide some news content and/or links and captions via PHP/MySQL that can be integrated with minimal disruption to a site? (A prerequisite being that it acts legally in terms of gathering the

[PHP] Bitwise operator question

2003-03-03 Thread Dan Sabo
Hi, I'm reading the description of Bitwise Operators on page 81 of Professional PHP 4, the Wrox book. In the highlighted example on that page, the line of code... $user_permissions = CREATE_RECORDS | ALTER_RECORDS; the description in the book says that this line is building a set of user

[PHP] Re: Bitwise operator question

2003-03-03 Thread Philip Hallstrom
Here's how I think about it... CREATE_RECORDS = 1 in decimal and 0001 in binary. ALTER_RECORDS = 4 in decimal and 0101 in binary. that line returns a binary string where *any* of the bits are 1, so line them up: 0001 | 0101 = 0101 which is 5. On Mon, 3 Mar 2003, Dan Sabo wrote: Hi,

[PHP] RE: Bitwise operator question

2003-03-03 Thread Dan Sabo
Hi Phillip, Don't U mean 0001 | 0100 = 0101 ? Dan -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 2:33 PM To: Dan Sabo Cc: [EMAIL PROTECTED] Subject: Re: Bitwise operator question Here's how I think about it...

[PHP] All Code Executing Even After header() Redirect

2003-03-03 Thread Monty
At the top of every page in my site I have a snippet of code that authenticates the user by checking for valid SESSION vars and their contents. If they don't, they are redirected with a header() statement to a log-in page like this: include_once(function_library.php); session_start();

[PHP] Help with SQL statement

2003-03-03 Thread Sarah Heffron
I have a database that holds a start date and an end date and I have a form with a start date and an end date. The report would be to get everything in the database's date ranges that overlap the form's date range. I am having trouble figuring out how to get this to work, any help is appreciated.

  1   2   >