Re: [PHP] session management

2004-01-29 Thread Adam Bregenzer
On Fri, 2004-01-30 at 01:20, ajay wrote: > have a user bean, and then session.setAttribute("user", userBean); > > do session.getAttribute("user") and validate before processing every request. The php translation of that would be: $_SESSION["user"] = $userBean; (some code later, on a different p

Re: [PHP] exec won't pass arg with spaces

2004-01-29 Thread Tom Rogers
Hi, Friday, January 30, 2004, 11:42:14 AM, you wrote: RM> I'm trying to execute /usr/bin/convert passing the image size and the RM> file name, the problem is that the file name contains lots of spaces, so RM> I try to pass "filename with lots of spaces", and nothing works. RM> I've read something

Re: [PHP] session management

2004-01-29 Thread ajay
have a user bean, and then session.setAttribute("user", userBean); do session.getAttribute("user") and validate before processing every request. Quoting Raditha Dissanayake <[EMAIL PROTECTED]>: > Last time i read the j2ee api i didn't notice anything about storing > admin/user staus in the Htt

Re: [PHP] session management

2004-01-29 Thread Raditha Dissanayake
Last time i read the j2ee api i didn't notice anything about storing admin/user staus in the HttpSession object. Anyway like i said if you read the manual and SFTA you would have found the answers. ajay wrote: hi! well i do have a MySQL database. The scenario is this, i dont want to use cookie

Re: [PHP] session management

2004-01-29 Thread ajay
hi! well i do have a MySQL database. The scenario is this, i dont want to use cookies or do any URL rewriting. i'm looking for something that mirrors J2EE's Session object that contains information about the user, their security level(user/admin etc) and this information can then be verified befor

Re: [PHP] session management

2004-01-29 Thread Raditha Dissanayake
Hi, This has been discussed and hammered out very often in this mailing list in the past, you will find countless solutions in the archives. And anyway no one can help you without knowing what about database or other storage mechanism etc. ajay wrote: hi! i need to maintain session state in

[PHP] session management

2004-01-29 Thread ajay
hi! i need to maintain session state in my php application. i further need to be able to distinguish between admin levels and user levels and thus the session also needs to keep this info (ie, whether person has logged in as admin or user) any ideas how to do it. thanks -- ajay --

Re: [PHP] [php] search.php

2004-01-29 Thread Nicholas Fitzgerald
Try Axel Search at http://www.geocities.com/nfzgrld [EMAIL PROTECTED] wrote: hi, ASP seek is not ASP i doubt if the author of ASPSeek has ever written a single line of code in ASP. he is a damn good c programmer though. (btw aspseek is based on mnogo anyway) mnogo has a PHP api. and there is n

[PHP] locking to domain

2004-01-29 Thread Ryan A
Hey all, I have a rather simple need that I am sure a lot of you must have gone through, I need a bit of code so that the script can run only at "something.com"..I am generating a MD5 license "key" based on that... Problem that I am having is.. wont I need 2 "keys" to see if the domain is with a "

Re: [PHP] [php] search.php

2004-01-29 Thread Raditha Dissanayake
hi, ASP seek is not ASP i doubt if the author of ASPSeek has ever written a single line of code in ASP. he is a damn good c programmer though. (btw aspseek is based on mnogo anyway) mnogo has a PHP api. and there is nothing in the manual that says you cannot restrict it to one website :-) all

Re: [PHP] [php] search.php

2004-01-29 Thread John Taylor-Johnston
Raditha, mnogsearch spans sites and aspseek is ASP. I was hoping for something simple in PHP <|:( J Raditha Dissanayake wrote: > grep > htdig > mnogsearch > aspseek > google appliance > > John Taylor-Johnston wrote: > > >I want to create an old fashioned search function that will look in *.htm a

Re: [PHP] [php] search.php

2004-01-29 Thread Raditha Dissanayake
grep htdig mnogsearch aspseek google appliance John Taylor-Johnston wrote: I want to create an old fashioned search function that will look in *.htm and *.html files above /home/user/public_html and return a URL. Anything handy ? Haven't done or seen something like that since my Perling days. J

RE: [PHP] Missing Var

2004-01-29 Thread Chris
You are referencing the file vars incorrectly. It needs to be $_FILES['finame'] not $_FILES['$finame']. -Original Message- From: Nicholas Fitzgerald [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 6:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Missing Var Running Red Hat Fedora

[PHP] [php] search.php

2004-01-29 Thread John Taylor-Johnston
I want to create an old fashioned search function that will look in *.htm and *.html files above /home/user/public_html and return a URL. Anything handy ? Haven't done or seen something like that since my Perling days. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] exec won't pass arg with spaces

2004-01-29 Thread Michal Migurski
>Sample code: > > exec("$imagemagickPath/convert -geometry " . > "{$thumbnail_width}x{$thumbnail_height} " . > "$images_dir/$filename $images_dir/tb_$filename"); > >where filename could be: >/var/www/html/images/SPIN CoreRT1 to EX-JF1 (cw - kpi - KPI Performance >Report(Wee

[PHP] Missing Var

2004-01-29 Thread Nicholas Fitzgerald
Running Red Hat Fedora 1, latest updates. MySQL 3.23.58 PHP 4.3.4 Apache 2.0.48. Uploaded file info not showing up where it's supposed to. Here's the scenario: Here is my "form header": Here is the input field where it gets the filename: Here is the PHP code that execute

[PHP] exec won't pass arg with spaces

2004-01-29 Thread Raul Millan
I'm trying to execute /usr/bin/convert passing the image size and the file name, the problem is that the file name contains lots of spaces, so I try to pass "filename with lots of spaces", and nothing works. I've read something about safe mode, but I have safe mode disabled; I also read somethi

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

2004-01-29 Thread Raditha Dissanayake
and protected by copyright :-) Martin Luethi wrote: 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 use

Re: [PHP] php to send emails using exim?

2004-01-29 Thread Raditha Dissanayake
Hi Jas, Perhaps the exim list would be the best place to ask this question but are you able to send mail using a commond at the shell prompt? if so that's the command that should go into your ini Jas wrote: Not sure how to accomplish this, and yes I have read every post on Exim's website an

[PHP] Re: parsing variables inside a variable?

2004-01-29 Thread Justin Patrin
Jimbo wrote: I query and use mysql_fetch_array to get the data into an associative array. I then build a string and output it like this: echo "blah blah ".$row["thecolumn"]." blah blah"; What you need to understand is that the string parsing for variables only happens when the string is actually

[PHP] dates, time stamps, multiple servers, locale, etc

2004-01-29 Thread Justin French
Hi all, I'm looking for a clear, dependable way to work with dates in a web application. There are two types of dates that I can see I'll need: a) a timestamp for 'now' generated by the server (eg used on a last updated field) b) a timestamp for a user-specified date, like 2003-11-28 13:45:59

RE: [PHP] random? SOLVED!

2004-01-29 Thread Chris
Thanks John! I was missing a paren in the statemnet! I hate when that happens! btwvery kewl rush site, I've been a fan for years! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] random?

2004-01-29 Thread John Nichel
Chris wrote: You have an error in your SQL syntax near ') LIMIT 73, 1' at line 1 There's your error. Your SQL statement is still causing a problem. Echo out your SQL statement to see if it's what you think it should be. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General M

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

2004-01-29 Thread Williams, Olwen - SAL
Doing that work just fine but you have to send the right heading. My sites that do that have header("HTTP/1.0 200 OK"); as the first instruction and are very well indexed by Google Olwen Williams [EMAIL PROTECTED] -- -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED]

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

2004-01-29 Thread Gryffyn, Trevor
But I think he'll still have an issue when he goes to transmit it. Whatever data you have is going to be interpreted by the function doing the sending unless it's a "binary safe" function that's going to send raw binary. Thanks for the tip on "pack" though. Havn't needed it yet, but always good

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

2004-01-29 Thread DvDmanDT
No need to ge that deep (socket_create and stuff).. To send the HEX number 20 (also a space), you can do the following: "\x20"; chr(0x20); chr(hexdec('20')); pack('C',0x20); All of those _should_ create a space... -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Trevor Gryffyn"

RE: [PHP] random?

2004-01-29 Thread Chris
Yes, there was a db connect issuespelling mistake. So now that works but it throws the following error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site17/fst/var/www/html/function1.php on line 58 You have an error in your SQL syntax n

[PHP] parsing variables inside a variable?

2004-01-29 Thread jimbo
Hi, I have a query regarding variable parsing. I have some text in a MySQL database in which I have included some variable names. Eg (but w/o quotes): "thankyou $name for registering on our web site". I query and use mysql_fetch_array to get the data into an associative array. I then build a st

Re: [PHP] [Fwd: don't want to belabor a point about session_start, but...

2004-01-29 Thread Chris Shiflett
--- Rachael LaPorte Taylor <[EMAIL PROTECTED]> wrote: > OK, I understand that in order to avoid those nasty warning messages > about "Cannot send session cookie - headers already sent" you must > include the directive, session_start, above all headers, includes, etc. > > I'm trying to debug an

[PHP] Re: don't want to belabor a point about session_start, but...

2004-01-29 Thread Justin Patrin
Rachael Laporte Taylor wrote: OK, I understand that in order to avoid those nasty warning messages about "Cannot send session cookie - headers already sent" you must include the directive, session_start, above all headers, includes, etc. I'm trying to debug and port a contractor's code to PHP

Re: [PHP] [Fwd: don't want to belabor a point about session_start, but...

2004-01-29 Thread E. Stuart Hicks
session_start can be used after includes and such but it has to be sent before anything outside of the tags has a chance to be sent. All it takes is an extra newline at the end of one of the includes before the one that starts the session to mess things up. - Original Message - From: "R

Re: [PHP] [Fwd: don't want to belabor a point about session_start, but...

2004-01-29 Thread John Nichel
Rachael LaPorte Taylor wrote: OK, I understand that in order to avoid those nasty warning messages about "Cannot send session cookie - headers already sent" you must include the directive, session_start, above all headers, includes, etc. I'm trying to debug and port a contractor's code to PHP

[PHP] [Fwd: don't want to belabor a point about session_start, but...

2004-01-29 Thread Rachael LaPorte Taylor
OK, I understand that in order to avoid those nasty warning messages about "Cannot send session cookie - headers already sent" you must include the directive, session_start, above all headers, includes, etc. I'm trying to debug and port a contractor's code to PHP 4.3.4 from a couple of years ag

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

2004-01-29 Thread Gryffyn, Trevor
Ahh.. Since you're not declaring what data type $var is, it must be treating it as a string, even though I'd think it'd take it as an int if you didn't put quotes around it. That's one thing I like about PHP.. You can be as strict or lax as you want with the types. But I can see in this case wh

[PHP] don't want to belabor a point about session_start, but...

2004-01-29 Thread Rachael LaPorte Taylor
OK, I understand that in order to avoid those nasty warning messages about "Cannot send session cookie - headers already sent" you must include the directive, session_start, above all headers, includes, etc. I'm trying to debug and port a contractor's code to PHP 4.3.4 from a couple of years a

Re: [PHP] random?

2004-01-29 Thread John Nichel
Chris wrote: 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 o

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=4&order=desc As for sharing v

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 %> <% Second part of script in ASP language %> I don't know if this code is correct I don't try to use it, but this is what I w

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 Wa

[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 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 t

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 w

Re: [PHP] Sessions not working.

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

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 t

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 usin

RE: [PHP] Sessions not working.

2004-01-29 Thread Chris W. Parker
Jas 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

[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 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? The underscore (_) is not a valid character in

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 se

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, Janu

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 yo

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: <% Aspcodehere %? ?? ...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 possible since the web server passes

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 integrat

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

[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] 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 P

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,}",'', > $filter['message']); Use

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 Mailing

Re: [PHP] transactions

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

[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] 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

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 if

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 http://www.php.net/manual/en/features.file-upload.ph

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

[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 General

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] 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 t

[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 t

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] 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

[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 t

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 know

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 pr

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: http://www.

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

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 probl

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 s

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 s

[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 ha

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 gi

[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] 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 min

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 = mys

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 Mai

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 t

[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 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,}",'', $filter['message']); but it does not work on all the above examples. Thanks for the assistance! Nico -

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 aspel

[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 be

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

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

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 = array(1,

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

[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 befo

[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

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 >a

[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] PH error: Parse error: parse error, unexpected $end

2004-01-29 Thread John Nichel
Denham Eva wrote: $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 uns

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 = "inser

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

  1   2   >