[PHP] Re: The final script! but still some problems..

2004-01-29 Thread Radwan Aladdin
So what is the problem? - Original Message - From: Radwan Aladdin To: [EMAIL PROTECTED] Sent: Thursday, January 29, 2004 10:40 AM Subject: The final script! but still some problems.. Hi all.. This is the final PHP code that I written.. but there i some problems.. not

[PHP] Integration between ASP PHP.

2004-01-29 Thread francesco
Hi all, is possible to integrate script in ASP with script in PHP? How can I do this? All helps are precious. Best regards.

[PHP] crypt() sources c# port

2004-01-29 Thread gerold kathan
hi there - i have user credentials in my DB encrypted with PHPs crypt() function - and should be able to do some user authentication from a c# client - where can i find the source code of PHPs crypt() function so that i can build the same function in c# ? grettings from vienna , gerold. -- PHP

[PHP] Oracle + PHP

2004-01-29 Thread Luis Moran Ochoa
Hello I have Oracle 9 + RedHat 7 + PHP 4.3.4 + Apache 1.3.29. I've compiled apache and php I've compiled PHP using the documentation and activating OCI. I've build the typical script for starting apache, it's like this: $ORACLE_HOME=blablahblah... more oracle variables

[PHP] Re: Copyrighting PHP, MySql, Apache,perl etc...

2004-01-29 Thread Peter Clarke
Ryan A wrote: Which brings up a little question, any idea of whats ZEND's (or anybody else that matters) opinion of using PHP in a domain name? eg: my-lovely-php-and-apache-website.com Have a look at http://www.php.net/license/ We cannot really stop you from using PHP in the name of your project

Re: [PHP] crypt() sources c# port

2004-01-29 Thread Martin Luethi
download the source code: http://www.php.net/downloads.php or browse online: http://cvs.php.net the crypt() source is under php-src/ext/standard/ g. tinu Thu, 29 Jan 2004 09:54:39 +0100 gerold kathan [EMAIL PROTECTED]: hi there - i have user credentials in my DB encrypted with PHPs crypt()

[PHP] Create a zip archive from a folder

2004-01-29 Thread Matt Palermo
Hello. Does anyone know how I can easily create a zip archive from a folder on my server? I have a library class that will do this for a tar file (I just give it the folder name and the archive name and it creates the tar file for me very easily). I was wondering if there is anything really

[PHP] Size of Arrays

2004-01-29 Thread Gandolf
Hello NG, could anyone tell me how much is be the biggest size of an array - how many values could an array have?! I have to import 100.000 to 10.000.000 values an I have to know where the limit is. Thanks a lot, Sandro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Create a zip archive from a folder

2004-01-29 Thread Daniel Pupius
I have achieved this using the shell_exec() function: $cmd = cd .escapeshellarg($curdir).;zip -r9b . .escapeshellarg($name). *; $result = shell_exec($cmd); This moved the shell into the current directory ($curdir), then creates a new zip file ($name) for the entire directory. I have

[PHP] Storing MS Word documents

2004-01-29 Thread bob pilly
Hi all Im having problems storing a MS word document as an image data type in a MS SQL Server 2000. Im getting as far as the query but i am getting the following error: Warning: mssql_query(): message: Unclosed quotation mark before the character string 'ETH;Iuml;agrave;iexcl;plusmn;aacute;'.

Re: [PHP] Storing MS Word documents

2004-01-29 Thread Stuart
bob pilly wrote: It seems to me that the addslashes isnt working and the query is failing because of this? Has anyone seen this before or know what i am doing wrong? Ive been on this for ages and are not getting anywhere.. Thanks for any help in advance! You don't escape single quotes with MSSQL

Re: [PHP] Storing MS Word documents

2004-01-29 Thread bob pilly
Thanks Stuart. I tried that and i still get this error: Warning: mssql_query(): message: Unclosed quotation mark before the character string 'ÐÏࡱá'. (severity 15) in /var/www/htdocs/searches3.php on line 23 Warning: mssql_query(): message: Line 1: Incorrect syntax near 'ÐÏࡱá'. (severity

Re: [PHP] Size of Arrays

2004-01-29 Thread David T-G
Sandro -- ...and then Gandolf said... % % Hello NG, Hello from the mailing list :-) % could anyone tell me how much is be the biggest size of an array - how many % values could an array have?! % I have to import 100.000 to 10.000.000 values an I have to know where the % limit is. 1) I know

Re: [PHP] Create a zip archive from a folder

2004-01-29 Thread David T-G
Matt -- ...and then Matt Palermo said... % % Hello. Does anyone know how I can easily create a zip archive from a folder I can't say for certain that it will create, but the pclzip class from Vincent Blavet seems pretty good and I use it extensively for extraction. His site is

RE: [PHP] Still error messages!!

2004-01-29 Thread Jay Blanchard
[snip] So why it is making the Distance value = 0 and it doen't update the value in the database. (Because it must update the value in the database by it) [/snip] It is because you are not properly retrieving your query results and placing properly in variables those results. You need to spend

Re: [PHP] Googlebot (not another rtfm-mail)

2004-01-29 Thread Chris Hayes
At 17:58 28-1-04, you wrote: On Wed, Jan 28, 2004 at 11:51:06 -0500, Michael Mulligan wrote: Googlebot visits my site occasionally and follows a lot of my PHP links with long query strings... same here, google has been indexing my php site for over 3 years now :) I find the google site is NOT

Re: [PHP] Size of Arrays

2004-01-29 Thread Stuart
David T-G wrote: 2) Five minutes with a test script would tell you, and I bet google could tell you, so why bother the list with a question you could so easily answer for yourself? Go and try it and then report back where (if at all) it breaks. My bet is that you'l exhaust RAM and swap before

Re: [PHP] Storing MS Word documents

2004-01-29 Thread bob pilly
Have sorted this out now. Theres a bit about storing binary data in the mssql docs: http://uk.php.net/function.mssql-query Just in case anyone wanted to know. --- Stuart [EMAIL PROTECTED] wrote: bob pilly wrote: It seems to me that the addslashes isnt working and the query is failing

[PHP] PH error: Parse error: parse error, unexpected $end

2004-01-29 Thread Denham Eva
Hello List, I am trying to learn PHP and finding it very difficult as the books which I am using's code does not work properly. And I have taken to using the Manual available from PHP.net, but still struggling terribly I have a script which receives data from an HTML form and the idea is to

[PHP] Show Results one at a time ?

2004-01-29 Thread Dave Carrera
Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time. --- Test Function Code --- function TestFunc(){ $cnt = array(1,2,3,4,5,6,7,8,9,10); $i=0; while($i =count($cnt)){ set_time_limit(2); echo

[PHP] form action does not give var value's through.

2004-01-29 Thread Nico Berg
Hi guys, I have two .php files. The one gives his values to the other but they never reach the second file. I am 100% about the code! Is ther something that can be changed in the php.conf on my server? Gr, thank's Nico Berg

Re: [PHP] form action does not give var value's through.

2004-01-29 Thread Stuart
Nico Berg wrote: I have two .php files. The one gives his values to the other but they never reach the second file. I am 100% about the code! Is ther something that can be changed in the php.conf on my server? Without code it's hard to say, but it's likely to be register_globals related. Read

RE: [PHP] Show Results one at a time ?

2004-01-29 Thread Ford, Mike [LSS]
On 29 January 2004 12:51, Dave Carrera wrote: Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time. --- Test Function Code --- function TestFunc(){ $cnt = array(1,2,3,4,5,6,7,8,9,10);

Re: [PHP] Size of Arrays

2004-01-29 Thread David T-G
Stuart, et al -- ...and then Stuart said... % % David T-G wrote: % 2) Five minutes with a test script would tell you, and I bet google could ... % all) it breaks. My bet is that you'l exhaust RAM and swap before you % break php, especially if you actually store something -- like, say, 32 %

RE: [PHP] Show Results one at a time ?

2004-01-29 Thread Dave Carrera
--- updated with Sleep() --- function TestFunc(){ $cnt = array(1,2,3,4,5,6,7,8,9,10); $i=0; while($i =count($cnt)){ //sleep(1); set_time_limit(2); //sleep(1); echo $cnt[$i].str_repeat( , 300) . br /;; sleep(1); ob_flush(); flush(); //sleep(1); $i++; } --- End --- Wherever I put

[PHP] random?

2004-01-29 Thread Chris
$sql = SELECT * FROM agentdb WHERE ((OfficeID 214) and (agentdb.agent_id 1115421) and (agentdb.agent_id 100) and agentdb.agent_id 333)) ORDER BY RAND() LIMIT 1; The above code should generate a random agent upon refresh. It does however seem to favor one agent more than the others.

RE: [PHP] sending a hex string as it is?

2004-01-29 Thread Khoa Nguyen
I guess I confused the matter by mentioning hex. The problem is the same with decimal number; for example ?php $var = 20; echo $var; // This will send 32 30 over the wire, not 14 (hex value of decimal 20) // How do I make it send 14? ? I guess echo function treats

Re: [PHP] Show Results one at a time ?

2004-01-29 Thread Rob Adams
If you're using the command line, ignore this comment. Dave Carrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- updated with Sleep() --- function TestFunc(){ $cnt = array(1,2,3,4,5,6,7,8,9,10); $i=0; while($i =count($cnt)){ //sleep(1); set_time_limit(2); //sleep(1);

RE: [PHP] Fopen and streams

2004-01-29 Thread firephreek
Ok, so, I solved the problem, but haven't necessarily figured it out. I was using fopen() on a unique device, and getting a stream error. Rewrote the func using the basic example for fsockopen. I can now get the data I need without the errors, but now, a new question: If indeed there was some

Re: [PHP] random?

2004-01-29 Thread John W. Holmes
From: Chris [EMAIL PROTECTED] $sql = SELECT * FROM agentdb WHERE ((OfficeID 214) and (agentdb.agent_id 1115421) and (agentdb.agent_id 100) and agentdb.agent_id 333)) ORDER BY RAND() LIMIT 1; It does however seem to favor one agent more than the others. Does anyone have any

[PHP] Finding news items by Month

2004-01-29 Thread Michael Hill
I have a bunch of news items in a database. All of them have a date associated with them. I am trying to make a function that queries the db and tells me which months have newsitems in them(if any at all), and how many each of the months have. I'm a newbie to php, so this is proving very

Re: [PHP] random?

2004-01-29 Thread Ryan A
$sql = SELECT * FROM agentdb WHERE ((OfficeID 214) and (agentdb.agent_id 1115421) and (agentdb.agent_id 100) and agentdb.agent_id 333)) ORDER BY RAND() LIMIT 1; It does however seem to favor one agent more than the others. Does anyone have any suggestions as to why this is

[PHP] Re: random?

2004-01-29 Thread Rob Adams
Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $sql = SELECT * FROM agentdb WHERE ((OfficeID 214) and (agentdb.agent_id 1115421) and (agentdb.agent_id 100) and agentdb.agent_id 333)) ORDER BY RAND() LIMIT 1; The above code should generate a random agent upon

RE: [PHP] random?

2004-01-29 Thread Chris
Yup, I had that same thought AFTER I sent the post :) Sorry gang. -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 9:00 AM To: Chris; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] random? From: Chris [EMAIL PROTECTED] $sql =

Re: [PHP] Show Results one at a time ?

2004-01-29 Thread John W. Holmes
From: Dave Carrera [EMAIL PROTECTED] Wherever I put sleep(1), notice the comments, in the func all it dose is wait 10 seconds then shows the full output and not each result 1 at a time to the screen. Are you running this over the web or on the command line? Even though your script is

Re: [PHP] Finding news items by Month

2004-01-29 Thread John W. Holmes
From: Michael Hill [EMAIL PROTECTED] I have a bunch of news items in a database. All of them have a date associated with them. I am trying to make a function that queries the db and tells me which months have newsitems in them(if any at all), and how many each of the months have. You should

RE: [PHP] Sessions not working.

2004-01-29 Thread Gryffyn, Trevor
Random thought.. Did you check your PHP.INI on the 'bad' server to make sure that it's configured the same as the 'good' server? Some things to check: Session.use_cookies = 1 Session.auto_start = 0 // This is the first one I'd check. If you have it set to =1 on the good server and aren't doing

Re: [PHP] PH error: Parse error: parse error, unexpected $end

2004-01-29 Thread John W. Holmes
From: Denham Eva [EMAIL PROTECTED] Parse error: parse error, unexpected $end Please can someone help! You need an editor that does source code highlighting. If you had that, you would not have encountered this error because you'd have noticed the unterminated string here $query = insert into

Re: [PHP] PH error: Parse error: parse error, unexpected $end

2004-01-29 Thread John Nichel
Denham Eva wrote: snip $query = insert into work values('.$category.','.$description.','.$requestor.'); You're missing a closing quote at the end of your query. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Hi

2004-01-29 Thread johanp
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Fopen and streams

2004-01-29 Thread Mike Migurski
Secondly, where is a good place to read on the standards and formats used by these different schemes. In the fsockopen() func, I made some writes to 'GET / ' and 'HTTP 1.1' etc... After reading the script, I understand what these imply, but not the importance, also, what other commmands are

[PHP] Re: Zend Studio ESC key issue?

2004-01-29 Thread Eric Bolikowski
Hei Trevor I have got exactly the same problem, and there doesn't seem to be any solution to it... What you could to, is to send a mail to Zend and ask them to implement a feature that will allow us Zend Studio users to customize this. Eric Trevor Gryffyn [EMAIL PROTECTED] wrote in message

[PHP] Error fread() after switching Register Globals Off

2004-01-29 Thread Daniel Perez Clavero
Hi there, I´m getting this error and I can´t find what the problem is.. Warning: fread(): supplied argument is not a valid stream resource in c:\program files\apache group\apache\htdocs\dpc\modulos\mod_ins_doc.php on line 13 I´ve got a form that calls a module to insert data. IT WAS WORKING

RE: [PHP] random?

2004-01-29 Thread craig
Maybe MySQL's RAND() function isn't very random. From the mysql manual: RAND() is not meant to be a perfect random generator, but instead a fast way to generate ad hoc random numbers that will be portable between platforms for the same MySQL version. doesn't help, but at least you know

Re: [PHP] Show Results one at a time ?

2004-01-29 Thread Brian Tully
on 1/29/04 7:50 AM, Dave Carrera at [EMAIL PROTECTED] wrote: Hi List, I have a test function who's aim is to take an array an do something which each value of the array and show the result on screen one at a time. --- Test Function Code --- function TestFunc(){ $cnt =

Re: [PHP] Error fread() after switching Register Globals Off

2004-01-29 Thread John W. Holmes
From: Daniel Perez Clavero [EMAIL PROTECTED] Warning: fread(): supplied argument is not a valid stream resource in c:\program files\apache group\apache\htdocs\dpc\modulos\mod_ins_doc.php on line 13 I´ve got a form that calls a module to insert data. IT WAS WORKING before I switched the

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
They are the same physical server using the same php.ini Just different logical web servers set up in IIS5. In otherwords, each webserver on the system has it's own IP address. -Original Message- From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 9:19

[PHP] Error fread() after switching Register Globals Off

2004-01-29 Thread DPCMA Metalito
Hi there, I´m getting this error and I can´t find what the problem is.. Warning: fread(): supplied argument is not a valid stream resource in c:\program files\apache group\apache\htdocs\dpc\modulos\mod_ins_doc.php on line 13 I´ve got a form that calls a module to insert data. IT WAS WORKING

Re: [PHP] Spell checker in PHP

2004-01-29 Thread Alex King
Justin, I don't know what version of Word you have, but XP seems to do fine with correcting city names. Alex Justin French [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday, January 10, 2004, at 06:57 AM, Robin Kopetzky wrote: Good afternoon! I know aspell and

[PHP] eregi_replace help needed

2004-01-29 Thread php4
Hi, I want to locate patterns such as 12345678 1 23 45 67 89 1 2 34 567 890 and replace the pattern string with a new string. I tried $filter['message'] = eregi_replace([0-9\s]{4,},'string replaced', $filter['message']); but it does not work on all the above examples. Thanks for the

[PHP] HELP PLEASE PHP

2004-01-29 Thread Patrick
Hi, I have an situation on my hands I have a form that I am stuck using PHP for thanks to my friends choice of hosting company, I have no idea on how to setup a form in PHP other than HTML or in Flash, I need some one any one to give me some advice on this Posted layout it seems to work but not

RE: [PHP] eregi_replace help needed

2004-01-29 Thread craig
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: January 29, 2004 8:53 AM To: [EMAIL PROTECTED] Subject: [PHP] eregi_replace help needed Hi, I want to locate patterns such as 12345678 1 23 45 67 89 1 2 34 567 890 and replace the pattern

RE: [PHP] eregi_replace help needed

2004-01-29 Thread php4
Hi, the off the top of your head was perfect. It is contrary to everything I've read on this, but it did the trick. off the top of my head, I don't think '\s' is valid in a character class, so just use ' ' instead try eregi_replace([0-9 ]{4,} -Craig Thanks Nico -- PHP General Mailing

RE: [PHP] random?

2004-01-29 Thread Chris
Hi Rob, Thanks for the ideaI think it is probably a better way to go also. Hers what I came up iwth...and the rest of the code pertaining to the goal. I'm sure that I'm, overlooking something simple here, but I can't seem to make this work... srand ((double) microtime() * 100); $r =

RE: [PHP] Storing MS Word documents

2004-01-29 Thread jon roig
For whatever it's worth, the standard advice when it comes to this stuff is that it's always better/faster to store the binary data in the filesystem and just keep a pointer to it in the db to keep track of metadata and whatnot. Dunno if that's true, of course, but it might be worth keeping in

[PHP] phpCollab on shared server?

2004-01-29 Thread Marc A. Garrett
Has anyone installed phpCollab on a shared server? I have a php account with MediaTemple and was hoping to find a few pointers. -- Marc A. Garrett since1968.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread John Nichel
Hello Patrick. Where to start, where to start Patrick wrote: Hi, I have an situation on my hands I have a form that I am stuck using PHP for thanks to my friends choice of hosting company, I have no idea on how to setup a form in PHP other than HTML or in Flash, I need some one any one to

[PHP] STMP Configuration

2004-01-29 Thread Kaushan
Hi friends, When I'm trying to use the mail() function I got the following error : Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() . I'm currently using PHP 2.0.0b1 and localhost (Apache) as the web server. Do I have to

Re: [PHP] STMP Configuration

2004-01-29 Thread John Nichel
Kaushan wrote: Hi friends, When I'm trying to use the mail() function I got the following error : Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() . I'm currently using PHP 2.0.0b1 and localhost (Apache) as the web server.

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread Jas
John Nichel wrote: Hello Patrick. Where to start, where to start Patrick wrote: Hi, I have an situation on my hands I have a form that I am stuck using PHP for thanks to my friends choice of hosting company, I have no idea on how to setup a form in PHP other than HTML or in Flash, I need

FW: [PHP] phpCollab on shared server?

2004-01-29 Thread Burhan Khalid
Burhan Khalid wrote: Marc A. Garrett wrote: Has anyone installed phpCollab on a shared server? I have a php account with MediaTemple and was hoping to find a few pointers. -- Marc A. Garrett since1968.com I have installed it a few times on shared hosting accounts without any problems.

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
Further info. If I echo the session_id() onto the page I do get an id returned. So (correct me if I'm wrong) the session has started correctly with the session_start() at the top of the page. It just doesn't seem to save any of the session variables I set, or if they are set, it can't retrieve

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread memoimyself
Hello Patrick, I have good news and even better news for you. The good news is that you can make all your form-related woes disappear in less than a day. The even better news is that everything you need to know in order to solve your problem can be found in one convenient location:

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
Have you checked the %temporary% directory permissions to make sure IIS can write session data to the directory? I had a hard time using php on IIS, so I installed linux... =) Depending on the version of PHP installed you may need to call your session variables differently, example: on PHP

Re: [PHP] HELP PLEASE PHP

2004-01-29 Thread Jas
Man, you really are a card Erik. Fellow manual reader, Jas [EMAIL PROTECTED] wrote: Hello Patrick, I have good news and even better news for you. The good news is that you can make all your form-related woes disappear in less than a day. The even better news is that everything you need to

[PHP] php to send emails using exim?

2004-01-29 Thread Jas
Not sure how to accomplish this, and yes I have read every post on Exim's website and scoured google for examples of sending emails from php using the exim mail server. What I have done this far to try and get it to work... changed php.in sendmail path to a symlink of sendmail which points to

[PHP] Encoding for uploaded files

2004-01-29 Thread Cesar Cordovez
Hi list! How can I know the encoding for an uploaded file? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] STMP Configuration

2004-01-29 Thread Sven
John Nichel schrieb: Kaushan wrote: Hi friends, When I'm trying to use the mail() function I got the following error : Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() . I'm currently using PHP 2.0.0b1 and localhost

[PHP] shell_exec and accents

2004-01-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I'm using shell_exec to call a command that can return accented characters. Unfortunately the accented characters are being transformed into other characters instead (for example, an acute e becomes a ','). How can I get the real output? I'm running on Windows 2000. In the command prompt

[PHP] shell_exec and accents

2004-01-29 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hi, I'm using shell_exec to call a command that can return accented characters. Unfortunately the accented characters are being transformed into other characters instead (for example, an acute e becomes a ','). How can I get the real output? I'm running on Windows 2000. In the command prompt

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
check out http://www.php.net/manual/en/features.file-upload.php, it spells out the entire upload process specifally, you want: $_FILES['userfile']['type'] = The mime type of the file, if the browser provided this information. An example would be image/gif. -Craig -Original Message-

[PHP] transactions

2004-01-29 Thread Diana Castillo
Is there anyway to do something similar to Transactions in mysql? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.destinia.com -- PHP

RE: [PHP] transactions

2004-01-29 Thread craig
Is there anyway to do something similar to Transactions in mysql? Yes, use transactions http://www.mysql.com/doc/en/Transactional_Commands.html -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encoding for uploaded files

2004-01-29 Thread Cesar Cordovez
I don't know if you are right here, or maybe I don't understood correctly... the file type is actually the encoding of the file? If a file type is text/plain, where is the encoding format? ISO-8859-1? Puzzled! Cesar craig wrote: check out

Re: [PHP] Using unset with $_SESSION

2004-01-29 Thread Justin Patrin
However, I'm still mystified as to why unset($_SESSION) not only doesn't remove old data from the sesison file when the script exits, but prevents the new variable I create after that from being saved. Perhaps $_SESSION as created by PHP is special and is tied to the session storage, whereas

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
I don't know if you are right here, or maybe I don't understood correctly... the file type is actually the encoding of the file? If a file type is text/plain, where is the encoding format? ISO-8859-1? Puzzled! sorry, I misunderstood the question. I have no idea of how to get the

[PHP] Re: I need to unset BOTH $GLOBALS and $_SESSION vars?

2004-01-29 Thread Justin Patrin
Boot wrote: Sorry for so many questions, thanks to all those who have helped. I am finding that in order to completely unset some of my variables, I need to use both unset($GLOBALS. and unset($_SESSION) Does this make sense? Thanks! This is probably because you have register_globals

Re: [PHP] transactions

2004-01-29 Thread Lowell Allen
Is there anyway to do something similar to Transactions in mysql? Yes -- http://www.mysql.com/doc/en/ANSI_diff_Transactions.html -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] transactions

2004-01-29 Thread John Nichel
Diana Castillo wrote: Is there anyway to do something similar to Transactions in mysql? Maybe the transaction section of the MySQL manual will help you out? http://www.mysql.com/doc/en/Transactional_Commands.html -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General

Re: [PHP] eregi_replace help needed

2004-01-29 Thread memoimyself
Hi Nico, On 29 Jan 2004 at 17:52, [EMAIL PROTECTED] wrote: I want to locate patterns such as 12345678 1 23 45 67 89 1 2 34 567 890 and replace the pattern string with a new string. I tried $filter['message'] = eregi_replace([0-9\s]{4,},'string replaced', $filter['message']);

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread memoimyself
On 29 Jan 2004 at 10:47, craig wrote: specifally, you want: $_FILES['userfile']['type'] = The mime type of the file, if the browser provided this information. An example would be image/gif. That's basically it and will work for common file types. However, it's the user's browser, not PHP,

[PHP] Re: shell_exec and accents

2004-01-29 Thread DvDmanDT
As I said somewhere else about an hour ago, use like Iconv or something like that.. It's caused by different charsets.. Chances are quite big you want to use iso-8859-1, but the shell command uses something else.. -- // DvDmanDT MSN: dvdmandt?hotmail.com Mail: dvdmandt?telia.com Phpdiscuss - Php

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
Ok, there seems to be some confusion about my setup so here it is again.. I have 1 physical server runing win2k server with IIS-5 I have 4 virtual web servers configured in IIS-5, each with it's own IP address. Site1,Site2,Site1DEV,Site2DEV All using the same php.ini and all set up identically

RE: [PHP] Spell checker in PHP

2004-01-29 Thread Gryffyn, Trevor
There are a lot of words in the spelling checking in Microsoft products that isn't part of what you'd consider a standard 'dictionary', like city names and such. I think for spell checking, using the internal spell check in Word would be best, but if you ever decided to work on Word-PHP

RE: [PHP] Integration between ASP PHP.

2004-01-29 Thread Gryffyn, Trevor
Define integrate? Using both ASP and PHP within the same physical file/script like: ?php Phpcodehere; ? html body % Aspcodehere %? /body /html ?? ...or going from ASP pages to PHP pages? That is, Default.asp calls menu.php or something like that? In the first case, I'm not sure if it's

RE: [PHP] index page not running and other woes (0t?)

2004-01-29 Thread Gryffyn, Trevor
I'd check the permissions of your files as well as any .htaccess settings you may need to set allowances on the files and folders involved. Also check your 'default document' name in your configuration and make sure that it's looking for index.html at all. Although that wouldn't affect it if you

RE: [PHP] Sessions not working.

2004-01-29 Thread Jeff McKeon
Figured it out, I think. PHP doesn't like the underscore in my website name. http://site_dev.foo.com/ doesn't work but http://192.168.2.50/ does. If I rename the site in DNS to siteDEV.foo.com then it works fine. Any ideas why? -Original Message- From: Jeff McKeon Sent: Thursday,

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
Jeff McKeon wrote: Ok, there seems to be some confusion about my setup so here it is again.. I have 1 physical server runing win2k server with IIS-5 I have 4 virtual web servers configured in IIS-5, each with it's own IP address. Site1,Site2,Site1DEV,Site2DEV All using the same php.ini and all

Re: [PHP] Sessions not working.

2004-01-29 Thread John Nichel
Jeff McKeon wrote: Figured it out, I think. PHP doesn't like the underscore in my website name. http://site_dev.foo.com/ doesn't work but http://192.168.2.50/ does. If I rename the site in DNS to siteDEV.foo.com then it works fine. Any ideas why? snip The underscore (_) is not a valid

[PHP] Deleting cookies won't work

2004-01-29 Thread Andrew Wood
Can anyone fathom out why I can't get the setcookie function to delete a cookie? I'm calling it with the same arguments as I used to set it originally, but with a null string value an expiry time in the past but the cookie persistently remains in the browser. This how I set it: setcookie

RE: [PHP] Sessions not working.

2004-01-29 Thread Chris W. Parker
Jas mailto:[EMAIL PROTECTED] on Thursday, January 29, 2004 1:06 PM said: [snipped about 425 useless lines] Well in that case do a dump_vars($_session[],$_session[]) for each session variable you register and see if anything is listed. Jas C'mon dude. Some of use are on dialup (not me

Re: [PHP] Sessions not working.

2004-01-29 Thread John Nichel
Chris W. Parker wrote: C'mon dude. Some of use are on dialup (not me now, but when I get home) and that email REALLY needed to be trimmed. Chris. I remember back in the day We used to do stuff like this. To the people who were

Re: [PHP] Sessions not working.

2004-01-29 Thread Jas
John Nichel wrote: Chris W. Parker wrote: C'mon dude. Some of use are on dialup (not me now, but when I get home) and that email REALLY needed to be trimmed. Chris. I remember back in the day We used to do stuff like this. To

Re: [PHP] Sessions not working.

2004-01-29 Thread Daniel Clark
That's GREAT ! :-) I remember back in the day BIG SNIP Sorry, couldn't resist. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Deleting cookies won't work

2004-01-29 Thread memoimyself
Hello Andrew, On 29 Jan 2004 at 21:05, Andrew Wood wrote: I'm calling it with the same arguments as I used to set it originally, but with a null string value an expiry time in the past but the cookie persistently remains in the browser. From the PHP manual: Cookies must be deleted with

Re: [PHP] random?

2004-01-29 Thread Rob Adams
Chris, I've checked your site and see you're still having the problem. What exactly isn't working? -- Rob Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Rob, Thanks for the ideaI think it is probably a better way to go also. Hers what I came up iwth...and the rest

[PHP] trim your posts

2004-01-29 Thread Chris W. Parker
thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] random?

2004-01-29 Thread Chris
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/virtual/site17/fst/var/www/html/function.php on line 51 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/virtual/site17/fst/var/www/html/function.php on line 52

Re: [PHP] Integration between ASP PHP.

2004-01-29 Thread francesco
OK, my problem is to use the crypt function (like md5(),sha1(),mcrypt(),crypt()) of PHP language in an ASP script. For example: % First part of script in ASP language % ?php script PHP ? % Second part of script in ASP language % I don't know if this code is correct I don't try to use it, but

RE: [PHP] Integration between ASP PHP.

2004-01-29 Thread Gryffyn, Trevor
I'd just do the crypt functions in ASP, that's going to probably be a lot less nightmare than trying to blend the two. Here's a page that seems to have some useful information on crypt and md5 type functions for ASP: http://www.aspin.com/home/components/security?pg=4order=desc As for sharing

  1   2   >