Re: [PHP] Mail

2003-08-09 Thread Sean
lt;[EMAIL PROTECTED]> Hope you can help Thanks Sean "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Sean wrote: > > > I cannot get mail() to work any idea's > > I get a server error. > > Windows 2000 the SMTP port is

Re: [PHP] Mail

2003-08-10 Thread Sean
Got it if anyone else has trouble. In the IIS SMTP properties go to the Access Tab. Click the Relay button at the bottom and change the selection from "Only the list below" to "All except the list below" I have no idea if this is a security risk it works that's all I

Re: [PHP] Mail

2003-08-12 Thread Sean
fact if any one responds to this answer I would be interested to know if hackers could get past all that, like everyone else I don't like the thought of someone snooping around my computer. Thanks Sean "Mike Brum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

[PHP] Mail

2003-08-14 Thread Sean
or as do more complicated scripts that I copied. Thanks Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail

2003-08-14 Thread Sean
not complain about setting up. Also I don't think there should be any major difference between php script for Windows or Linux is that right? Thanks Sean "Sean" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for the quick response. 1 and 2 work 3 do

[PHP] PHP accessing the COM port?

2001-04-24 Thread sean
would be grateful if you would let me know if you think this will work.. many thanks Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP accessing the COM port?

2001-04-24 Thread sean
HP and > work with AT commands? > > Someone has suggested something that MIGHT work - using fopen(com1... sorry > I dont know the correct syntax but as soon as I have managed to install php > I will give it a try.. in the meantime I would be grateful if you would let >

Re: [PHP] PHP accessing the COM port?

2001-04-24 Thread sean
please tell me how to set a file permission on com1 on windows98! thanks, sean ""Scott Fletcher"" <[EMAIL PROTECTED]> wrote in message 9c3urk$k0$[EMAIL PROTECTED]">news:9c3urk$k0$[EMAIL PROTECTED]... > You would need to set the file permission to the fil

[PHP] math calculations query

2001-04-26 Thread sean
ideas? Many thanks, Sean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] math calculations query

2001-04-26 Thread sean
oh, I am such a bone head.. but the actual question was how to calculate the totals. i have a column on my form that says $qry["price"]*$qry["quantity"] which gives me a column of totals but my question is how to total that up??? any ideas? "David VanHorn" <[EMAIL PROTECTED]> wrote in message

[PHP] fopen question

2001-05-07 Thread sean
hi I am running the following on my redhat 7.0 / php4 / apache box and receiving the error below. Warning: fopen("/dev/ttys0","r+") - Input/output error in /var/www/html/test.php on line 2 I would be grateful if you could help. Many thanks, Sean -- PHP Genera

Re: [PHP] fopen question

2001-05-07 Thread sean
even when you are trying to access a COM port? ""Kelvin"" <[EMAIL PROTECTED]> wrote in message 9d6dc8$eug$[EMAIL PROTECTED]">news:9d6dc8$eug$[EMAIL PROTECTED]... > Hi sean, > >try to put a file name not a directory or path. > $file =

[PHP] Print array items only once

2001-05-09 Thread sean
["category"]; but only once for this results array. } Can you help with this? Many thanks. Sean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-ma

Re: [PHP] Print array items only once

2001-05-09 Thread sean
Thanks very much Nicholas, Sean. ""Nicolas Guilhot"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can try to modify your SQL query and add the "DISTINCT" statement !! It > will return each distinct

[PHP] User authentacation

2002-01-15 Thread sean
server. Any suggestions? Thanks, Sean -- I N T E R C O N N E C T Sean Karshis – President Internet Image Development http://www.InterConnect.is.it -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] what vars should go in session vars?

2002-01-23 Thread sean
t add a style sheet preference field to the db, and call it along with the other user info, and have the php write the correct css include call. >From the sounds of it, with only 10 active users, you won't have any performance >issues either way you work it out. Sean -Original Mes

[PHP] directory structure list

2002-01-24 Thread sean
bDir1of1 *SubDir2of1 *Dir2 *SubDir1of2 *SubSubDir1of2 ... etc. There are some truly great php applications for this, such as: http://freshmeat.net/projects/phpmyexplorer/ But it's way ahead of what I need. Any crafty suggestions? Thanks for any input, Sean -- PHP General Maili

RE: [PHP] directory structure list

2002-01-24 Thread sean
Sorry for the posting, I hadn't looked hard enough. If any of you need something along the same lines go: http://www.php.net/manual/en/class.dir.php Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

[PHP] On the fly unzipping

2002-01-26 Thread sean
ut how to do it, and if the server needs to be set up in some special format... I don't know. I've looked around on-line, but so far haven't found anything. Thanks for any input, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] checking for off site image

2002-02-06 Thread sean
$title= 'give some text'; My URL fopen wrapper is enabled... getimagesize doesent work for off site? My error? or do one of you have a crafty solution? Thanks for your help! Sean --- I N T E R C O N N E C T Internet Image Develop

[PHP] determining script url

2002-02-07 Thread sean
Hi all, How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME works but if a domain isn't paired with the server, I could get some useless information (right?). Thanks,

RE: [PHP] determining script url

2002-02-08 Thread sean
h the info from phpinfo() either. It's so aggravating because the value of what I'm looking for is right on screen, but I can't get the php to notice! Thanks, Sean My response for those vars was: $SCRIPT_NAME: /cgi-bin/php4.cgi $SCRIPT_FILENAME: /u/httpd/cgi-bin/php4.cgi -Origin

RE: [PHP] Content Management

2002-02-08 Thread sean
ll us in on the scope of your project. - sean --- I N T E R C O N N E C T Internet Image Development Tel: 505 989 3749 http://www.InterConnect.is.it --- -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED

[PHP] getting the "right" REMOTE_ADDR

2002-02-20 Thread sean
etenv(HTTP_CLIENT_IP); } else { $ip=getenv(REMOTE_ADDR); } Is this really a fool-proof method of knowing exactly what the ip is that's getting onboard? Thanks! Sean --- I N T E R C O N N E C T Internet Image Development Tel: 50

Re: [PHP] getting the "right" REMOTE_ADDR

2002-02-20 Thread sean
only humans (who are on the IP list) can view content... and I wanted to make sure that bots couldn't spoof their IP and look like one of the human IP's. make sense? thanks, Sean -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] I don't know too much about th

[PHP] not recognizing changes

2002-02-21 Thread sean
he content. This happens to be on a shared Unix machine at Hostway.com - and I'm working from the house with the lovely connection of AOL (yuck!). Thanks for any input, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] http header reference

2002-02-26 Thread sean
Hi all, I'm debugging a php script that is using several environmental vars that I'm not familiar with: HTTP_VIA HTTP_CONNECTION HTTP_PRAGMA HTTP_FROM HTTP_RANGE -- Does anyone know what these are? or where I could find out about them? Thanks for any input, Sean -- PHP Gener

[PHP] LogIn check within function within class :: HELP!

2002-12-08 Thread Sean Mayhew
Im just about at wits end here Im trying to verify that a users ID and Password exist in the MySQL Database and then if it does display certain content and if it does not display login form content. ###At present here is the error I'm recieving: Warning: Missing argument 3 for verifylogin() in

[PHP] Class Function Problem

2002-12-10 Thread Sean Mayhew
I have an admin panel that each section contains a set of tools so on each page I can set $toolsneeded = "admin" or $toolsneeded = "employees"; etc. I keep recieving this error: Warning: Division by zero in /home/www/website/admin/include/adminclass.php on line 250 Warning: Variable passed to e

Re: [PHP] How to test php.info from command line

2002-12-11 Thread Sean Burlington
Jason Wong wrote: On Tuesday 10 December 2002 02:39, [EMAIL PROTECTED] wrote: Hello All, How to test php.info from command line: #echo "" | php to the standard output (screen) - or if you want to a file like this way: #echo "" | php > /tmp/test_php.txt Oliver Etzel .eu - domain are comin

Re: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Sean Burlington
can be a usefull aid to human moderation - flagging up messages for review. if you want a partial list of offensive terms - try looking at the meta keywords on a few porn sites ... -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upload image

2002-12-11 Thread Sean Burlington
://www.php.net/manual/en/function.getimagesize.php -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD installation - Simple Question

2002-12-11 Thread Sean Burlington
are make sure it finds the right version. - you can always remove the ditro version - but eg rpm may complain about dependency problems as it won't know about your /usr/local version. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiline regex

2002-12-11 Thread Sean Burlington
){ print htmlspecialchars($font)." \n"; ?> -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Add lines to a text file

2002-12-11 Thread Sean Burlington
'a' - Open for writing only; place the file pointer at the end of the file. If the file does not exist, attempt to create it. http://www.php.net/manual/en/function.fopen.php then use fwite to actually write to it -- Sean -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Cookies Help

2002-12-12 Thread Sean Mayhew
Ive created a log in that essentially if the username and password are found in the database it displays one section of code and if its not found it display another log in form Im able to log in and my verifylogin() function works because if the username and password are not found it displays the

Re: [PHP] Regex question

2002-12-13 Thread Sean Burlington
$text = preg_replace("/(http:\/\/)(www\.)([a-zA-Z0-9\.\/#~:?+=&%@!\\-_]+)/", "\\1\\2\\3" ,$text); #eg -- http://www.google.com -> http://www.google.com";>www.google.com return $text; } -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookie expiring with session

2002-12-13 Thread Sean Burlington
value) this cookie can then also be read by jsp (as long as it is on the same domain) and you are right that the jsp will not be able to read related $_SESSION variables (unless it can access the file/database where php is storing that information). -- Sean -- PHP General Mailing List

Re: [PHP] Sesssion help

2002-12-13 Thread Sean Burlington
elp a lot. thanks, Hasan which version of php do you have installed ?? -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Divide into words

2002-12-16 Thread Sean Burlington
n of special word in above sentence. If word repeates i want to have both positions saved in same row like word is. I tried something but i think it's to lame. how about ... -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reject some?

2002-12-16 Thread Sean Burlington
s ending in [EMAIL PROTECTED] or [EMAIL PROTECTED] Thanks for any insight you may provide... this is pretty close echo (preg_match('/(? echo "\n"; ?> look at the manual about assertions http://www.php.net/manual/en/pcre.pattern.syntax.php -- Sean -- PHP General Mailing L

Re: [PHP] Divide into words

2002-12-17 Thread Sean Burlington
how about ... Nope. The question was the position of the words, not how many times they appear. oops :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP question

2002-12-17 Thread Sean Burlington
ning php in cgi mode is slower) for security scripts should be run as a user with few system priveleges (ie the apache user) -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] speet testing (was URL parsing)

2002-12-19 Thread Sean Burlington
ferent functions. I wonder if you could pass on some pointers for speed testing. thanks -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] speet testing (was URL parsing)

2002-12-19 Thread Sean Burlington
ly worked on a project that has become very slow and need to start developing methods for analysing code changes and thier impact on performance. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Some discoveries I've made. Anyone care to confirm/deny

2002-12-19 Thread Sean Malloy
so my first post to the list for about 4 years! These things could have been discussed already so I apologise, just in case. Regards, Sean /// // Sean Malloy // Develope

RE: [PHP] creating random strings?

2002-12-19 Thread Sean Malloy
My comment would be on the readability and portability of the code Think of someone else coming along to look at that! ;) This is what I would do; create one function, GenerateString(int $length, int $type) function GenerateString($length = 6, $type = 1) { $string = ''; // seed rand funct

RE: [PHP] Another problem with conditional statements

2002-12-19 Thread Sean Malloy
Its all wrong. You shouldn't be using a switch statement anyway. A switch is for evaluating a single variable. alss, your code if ($a && $b == 124) is the equivelent of writing if ($a == true && $b == 124). if ($a == $b) { // do struff } elseif ( ($a == 124) && ($b == 124) ) { //do stuff } elsei

RE: [PHP] Another problem with conditional statements

2002-12-19 Thread Sean Malloy
Nowhere in the documentation does it specify switch should be used in the context you are attempting. The docs show a single variable and checking the case of that variable. I'm not going to berate you on syntax. If you can get it working like that then good for you. However, I would strongly adv

Re: [PHP] text parser

2002-12-21 Thread Sean Burlington
gular word, or if is number, html tag, html entry. it's not php but check out http://betsie.sourceforge.net/ written in Perl - the regular expressions may be portable to php -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL vs PostgreSQL

2002-12-24 Thread Sean Burlington
e docs for both projects have sections on camparing to the other (I think they both cheat a bit and compare thier newest version to a slighlty older version of the other project) Sean Rick Emery wrote: You accidentally published this to the wrong email list. I assume you meant to send this to

Re: [PHP] Unable to match dollar sign in preg_match

2002-12-24 Thread Sean Burlington
teral dollar sign in a double quoted string you have to escape it \\\$ or you can use sinlgle quotes - where you only have to escape the dollar sign once to mark it a a literal dollar sign and not an end string/line placeholder preg_match('/\$example/' , $matchme)) Sean chrisbolt

Re: [PHP] How to display field after MySQL join.

2002-12-26 Thread Sean Burlington
Stephen of Blank Canvas wrote: Hi Everyone, I'm trying to display the content of two mysql tables on a single page, I have successfully joined them with the following statement. $query = "SELECT serv.*, cat.* FROM site_services AS serv, site_servicescat AS cat WHERE serv.servicescat_id = cat.s

Re: [PHP] Open HTTPS connection

2002-12-26 Thread Sean Burlington
text - and supports https. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Sean Burlington
n.error-reporting.php also you could check that the file exists before opening it. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Sean Burlington
pearing on the live site ! -- Sean :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Sean Burlington
Hatem Ben wrote: From: "Sean Burlington" <[EMAIL PROTECTED]> it's exactly what it says it is... the website is experiencing technical difficulties... Yep, this make a confusion for me, and a stupid error that could be solved in one minute, was done in one day. [S

Re: [PHP] Rookie mail() q's .. can't find answer after RTFM...

2002-12-29 Thread Sean Burlington
like messages with more than 1 of each field...(except received-by). just look at an email in your inbox and copy the format of the date field. -- Sean :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] makeing an array

2003-01-01 Thread Sean Malloy
why the $x variable aswell?! for ($i = 0; $i < count($comment); $i++) { echo $comment[$i].''; } or even faster: $i = count($comment); while ($i--) { echo $comment[$i].''; } > -Original Message- > From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 1 Jan

RE: [PHP] makeing an array

2003-01-02 Thread Sean Malloy
see example 2. > -Original Message- > From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 1 January 2003 11:00 PM > To: Sean Malloy; [EMAIL PROTECTED] > Subject: Re: [PHP] makeing an array > > > Your example of: > > for ($i = 0; $i &

Re: [PHP] Javascript broken!

2003-01-04 Thread Sean Burlington
a known problem? it's a fairly standard thing to do most likely editing the files has introduced errors. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] undocumented OOP feature/bug?

2003-01-05 Thread Sean Malloy
ying! I need a class to be called from within another clas, and it needs to know wether it has had an instance created, or wether it is being statically called, and now I'll have to write some kludge code instead... /// // Sean

Re: [PHP] .doc parsing class or function?

2003-01-05 Thread Sean Burlington
ittle command line utility -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email a web page

2003-01-06 Thread Sean Burlington
ble to connect to the mailserver (set in php.ini) Any quick and easy tips to get my newsletter happening? Even a new script or easy tutorial in Englsih. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using VS.NET for PHP Projects

2003-01-06 Thread Sean Malloy
I know I can use Visual Studio to edit PHP files as plain text, but has anyone seen any way of creating some sort of add-in, or macro or whatever, which would do syntax highlighting on PHP files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] Using VS.NET for PHP Projects - Revisit

2003-01-06 Thread Sean Malloy
seful apart from me. Regards, Sean -Original Message- From: Sean Malloy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 7 January 2003 1:34 PM To: PHP General Subject: [PHP] Using VS.NET for PHP Projects I know I can use Visual Studio to edit PHP files as plain text, but has anyone seen any w

RE: [PHP] Random array element

2003-01-07 Thread Sean Malloy
// seed code list($usec, $sec) = explode(' ', microtime()); $microtime = ((float)$usec + (float)$sec); srand((double) $microtime * 100); //~ seed code $randNumber = array(); $weekday = array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" ); for ($p = 0; $p < 10; $p++)

RE: [PHP] restrictions

2003-01-07 Thread Sean Malloy
SMTP = port 25 telnet 25 should do the trick -Original Message- From: Bruce Levick [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 10:35 AM To: Timothy Hitchens (HiTCHO) Cc: [EMAIL PROTECTED] Subject: RE: [PHP] restrictions Thanks, Tried this and I get. "Cannot opeen conn

RE: [PHP] HTTP_WEFERER

2003-01-07 Thread Sean Malloy
Elmer Fudd been coding your PHP for you? I dount it ever worked ;) -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 12:41 PM To: [EMAIL PROTECTED] Subject: [PHP] HTTP_WEFERER A script started acting wonky with no changes to it. Doing a bit of deb

RE: [PHP] PHP vs. ASP

2003-01-07 Thread Sean Malloy
I'm not really sure what you mean in terms of ASP needing two or more pages? <% dim pageAction pageAction = Request("action") select case pageAction case "postit": InsertFormData() case else : ShowForm() end select sub InsertFormData() end sub sub ShowForm() Response.Write("TheForm") end

RE: [PHP] PHP vs. ASP

2003-01-07 Thread Sean Malloy
oops function isset(byval checkVar) dim ret if (len(checkVar) > 0) then ret = true else ret = false end if isset = ret end function meh -Original Message- From: Sean Malloy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 8 January 2003 6:42 PM To: [EMAIL PROTECTED] Subj

Re: [PHP] Img src

2003-01-08 Thread Sean Burlington
Ezequiel Sapoznik wrote: I am having a parse error in the following sentence: print ""; it would help if you posted the actual error message ! but try this ... print ''; or print ""; -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscr

RE: [PHP] Stumped...

2003-01-08 Thread Sean Malloy
Don't write code which requires register_globals to be on. $variable = $_POST['$var']; -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Thursday, 9 January 2003 3:03 PM To: Timothy Hitchens (HiTCHO) Cc: PHP List Subject: Re: [PHP] Stumped... Ok, I decided another easie

RE: [PHP] Stumped...

2003-01-08 Thread Sean Malloy
Please note the single quotes. Using double quotes: $variable = $_POST["$var"]; will not work, because you don't have a variable named $var in your code. Have a look at http://www.php.net/manual/en/language.types.string.php -Original Message- From: Sean Malloy

Re: [PHP] Adding HTTP URL Code

2003-01-09 Thread Sean Burlington
rams This is only a test"; $clickable_text = preg_replace("#(http://[^\s]+)#i", "$1", $text); echo $clickable_text; ?> I haven't been particularly strict with the allowed url charecters - I've just allowed everything and assumed that the url ends with whitespace (or

RE: [PHP] mysql_num_rows() error

2003-01-09 Thread Sean Malloy
Are you actually checking that the query result is valid? $conn = mysql_connect('localhost', "xxx", "yyy") or die('Could not connect to db'); $result = mysql_query('select * from blah', $conn); if ($result) { echo "Number of rows: " . mysql_num_rows($result); if (mysql_num_rows($result) > 0)

[PHP] something annoying about includes/relative paths.

2003-01-09 Thread Sean Malloy
Moving to PHP from an ASP backgroun, I always found one thing really annoying about PHP. With ASP, you could have a file structure such as: SYSTEM |--HTML | |--header.asp | |--LOGIC | |--engine.asp | |--core.asp in default.asp, you would in core.asp, engine.asp would be included as such in

[PHP] func_get_args...

2003-01-09 Thread Sean Malloy
Is this possible; function TestRef() { $var =& func_get_arg(0); ++$var; } $b = 1; TestRef($b); echo $b; It doesn't seem to work. Is there a way to do it? Or am I wasting my time trying to do this? (Yes I am aware I could define TestRef(&$b)), but I can't, reason being; I'm trying to cr

RE: [PHP] func_get_args...

2003-01-09 Thread Sean Malloy
well upon reading user comments in manual, looks like the only solution is to dump variables into an array, and pass the array to a function with a single defined by-ref parameter, so it kind of defeats the purpose. Oh well. -Original Message- From: Sean Malloy [mailto:[EMAIL PROTECTED

RE: [PHP] Suggestions on FAQ application?

2003-01-10 Thread Sean Malloy
I would suggest you try one of the following; faqomatic http://faqomatic.sourceforge.net/, which is actually perl based or phpFAQ http://product.cybergl.co.id/dev/version.php?cmd=browse&product_id=15 or FAQbot http://mason.gmu.edu/~bhroleno/FB.html or knowhow^2 http://www.linuxclass.de/kh2/ or

RE: [PHP] Re: Source Guardian

2003-01-10 Thread Sean Malloy
Keep in mind the "Works out of the box with no changes to your server" requires the use of the function dl() according to the PHP docs; dl() is not supported in multithreaded Web servers. Use the extensions statement in your php.ini when operating under such an environment. However, the CGI and

RE: [PHP] php5 cvs

2003-01-12 Thread Sean Malloy
try private function() { } -Original Message- From: electroteque [mailto:[EMAIL PROTECTED]] Sent: Sunday, 12 January 2003 6:43 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] php5 cvs hmm has the public and private function accessor changed ? i have been building my classes with test() and

RE: [PHP] php5 cvs

2003-01-12 Thread Sean Malloy
No the documentaton you are talking about, was that prior to ZE2 people were using underscores to denote private functions/variables. With ZE2, they wouldn't have to. -Original Message- From: Dan Rossi [mailto:[EMAIL PROTECTED]] Sent: Sunday, 12 January 2003 11:23 PM To: [EMAIL PROTECTED]

RE: [PHP] Permission Denied

2003-01-12 Thread Sean Malloy
I'm assuming you are using IIS. If your harddrive is formatted using NTFS, you are going to have to add a new entry to the ACL list for the directory to let the IUSR_ account access the directory. There are plenty of readmes/articles on managing NTFS permissions. I don't have time to go into the

RE: [PHP] stupid question (Back Function)

2003-01-13 Thread Sean Malloy
You could grab the referring page and send the user back to it, but some proxies/software stop your browser from sending that information, so it might not work in all situations Back however, quoting the docs on using the referrer: This is set by the user agent (client browser). Not all user age

RE: [PHP] increment numbers...

2003-01-13 Thread Sean Malloy
for ($i = 1; $i <= 100; $i++) { echo str_pad($i, 6, '0', STR_PAD_LEFT) . ''; } is that the sort of effect you want? -Original Message- From: Senani [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 January 2003 3:22 PM To: [EMAIL PROTECTED] Subject: [PHP] increment numbers... HI all,

[PHP] MySQL Query - Not PHP Specific

2003-01-15 Thread Sean Malloy
I know this isn't a PHP question per se, but it does relate to PHP development. Every day I work with MySQL as my PHP database, I become more dissalusioned with its ability as a database server. Yes its fast, but its missing so many useful features of other DB servers. I'm digressing... Is there

RE: [PHP] MySQL Query - Not PHP Specific

2003-01-15 Thread Sean Malloy
IFNULL! thanks -Original Message- From: Daniel Kushner [mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 January 2003 1:51 PM To: Sean Malloy; PHP General Subject: RE: [PHP] MySQL Query - Not PHP Specific http://www.mysql.com/documentation/mysql/bychapter/manual_Tutorial.html#Work

RE: [PHP] Re: Php's future with Asp .NET?

2003-01-16 Thread Sean Malloy
I think that the developers of PHP know exactly where they want PHP to sit in the big bad world of .NET/J2EE. The whole reason the dotnet and java extensions have been written for PHP, is to allow PHP to talk to java/net objects, but more importantly, have PHP act as the front end, and .NET/J2EE d

RE: [PHP] PHP Encoders and GPL License

2003-01-17 Thread Sean Malloy
> As far as I understand it, the GPL License states that the source > code of any product created from an open source solutions, or is > derived from the work of an open solutions, must be made availabe > to all users. no. Any modifications made to the PHP source code must be made available

Re: [PHP] Logfile statistics - get words from position between otherwords

2003-01-18 Thread Sean Burlington
Svein O. Bennæs wrote: I'm trying to write a script that extracts some search-queries from a logfile, but I'm having problems finding the right function to solve this problem. Below you'll find 4 lines from the log - the words I'm trying to extract are (for now) written in capital letters, and th

RE: [PHP] SQL+php

2003-01-18 Thread Sean Malloy
I see a lot of these type of answers on the list at the moment. I'm sick of receiving smart ass answers from people. It wastes my time, and my bandwidth. Either answer the fucking question, even if it hasn't been asked correctly, or don't reply at all. Given you are a 'PHP Professional' John, I

RE: [PHP] SQL+php

2003-01-18 Thread Sean Malloy
If you want to do it within the query itself, take a look at the mysql replace command REPLACE(str,from_str,to_str) SELECT REPLACE(,,) FROM table or you can do it using PHP once the query has executed, on a record by record basis, within a while/for loop or whatever. -Original Message-

RE: [PHP] SQL+php

2003-01-18 Thread Sean Malloy
I apologise for calling you a PHP Professional, clearly I was mistaken. ;) -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, 19 January 2003 4:36 PM To: 'Sean Malloy'; [EMAIL PROTECTED] Subject: RE: [PHP] SQL+php It's _for_ PHP Professiona

Re: [PHP] SQL+php

2003-01-19 Thread Sean Burlington
Sean Malloy wrote: I see a lot of these type of answers on the list at the moment. I'm sick of receiving smart ass answers from people. It wastes my time, and my bandwidth. Either answer the fucking question, even if it hasn't been asked correctly, or don't reply at all. Given

Re: [PHP] PHP and Sessions?

2003-01-20 Thread Sean Burlington
er Globals , as well as the PHP 4.1.0 and 4.2.0 Release Announcements. Using the available PHP Reserved Predefined Variables, like the superglobal arrays, is preferred. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Select multiple boxes

2003-01-20 Thread Sean Burlington
benefit of this system - it would be better if php just created an array for suitable form data - without requiring that the element name changes. still - I guess it works :) -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Select multiple boxes

2003-01-20 Thread Sean Burlington
ween systems under the control of different development teams - in this case the requirement to rename the form element for it to work as a select multiple has been a pain. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pop-up problem

2003-01-20 Thread Sean Burlington
non-js browsers - albeit without being able to size/position the window. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Page Rendering

2003-01-21 Thread Sean Burlington
across browsers -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   >