[suspicious - maybe spam] [PHP] [suspicious - maybe spam] New Security Measures ...

2005-05-04 Thread Paypal
clothesman futile antiquarian bar wholesale sum acquire saturnalia prefecture section astute cathedral intercom behavioral carlyle

Re: [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Rasmus Lerdorf
James Williams wrote: >>No >> >>You don't declare variables in PHP. You just start using them. >> >>Perhaps you mean assign? Since your example of >> >> var = variableName; >> >>is actually an assignment in Javascript. >> >>In PHP you simply do: >> >> $one_var = $another_var; >> >>-Rasmus > >

[PHP] How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-04 Thread Jon M.
I just found a place here: http://us2.php.net/manual/en/language.oop.php That has this example: /* This is how it should be done. */ class Cart { var $todays_date; var $name; var $owner; var $items = array("VCR", "TV"); function Cart() { $this->todays_date = date("Y-m-d")

[PHP] Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declareVars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Jon M.
Oops!! What I meant was: JavaScript: var varName; PHP: var $varName; I can't believe I did that (I have been writing JavaScript for a few years, and know better -I gotta get more sleep). So, are you saying that it is absolutely "PHP-illegal" to do: var $varName; in PHP??? W

Re: [PHP] Question about acessing databases and formatting output

2005-05-04 Thread bala chandar
hi, On 5/5/05, The Doctor <[EMAIL PROTECTED]> wrote: > This is probably easy, but how does > one access a database, mysql or oracle or postgresql, > and > present the data in a tabular format? > > -- > Member - Liberal International > This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] > God Qu

Re: [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread James Williams
> No > > You don't declare variables in PHP. You just start using them. > > Perhaps you mean assign? Since your example of > > var = variableName; > > is actually an assignment in Javascript. > > In PHP you simply do: > > $one_var = $another_var; > > -Rasmus You are however, when deali

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
On 05/05/2005, at 1:47 AM, Kristen G. Thorson wrote: Dan, I have done this before, but it was only a proof-of concept excercise for me, so my procedure may not work for you. My test was against an Amazon web service and generating a PDF from the XML returned to me. This method used Apache's F

Re: [PHP] to pass session from one websever to another webserver

2005-05-04 Thread Balwant Singh
thx, actually, i want to pass session of 1st server to 2nd server and vice versa i.e. to pass session of 2nd server to 1st server and want to use them in both the servers. with best wishes balwant On Wed, 2005-05-04 at 22:04, Rory Browne wrote: > Elaborate. > > Do you want to pass the sesson f

[PHP] control-M

2005-05-04 Thread David Christensen
I know I'm missing something, but I can't seem to find it or figure it out. I've done the google search, and I've done a quick scan of the list archives, but I can't seem to find the right way to remove control-M from a form submission page with textarea fields. I have a series of "textarea" fiel

[PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread bala chandar
Hi On 5/5/05, Jon M. <[EMAIL PROTECTED]> wrote: > I know in JavaScript, that you declare vars like so: > > var = variableName; > > So I'm assuming that in PHP you do it like this: > > var = $variableName; I think you can do like this inside a class var $variableName; > But there doesn't seem

[PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Rasmus Lerdorf
Jon M. wrote: > I know in JavaScript, that you declare vars like so: > > var = variableName; > > So I'm assuming that in PHP you do it like this: > > var = $variableName; > > But there doesn't seem to be a single shred of documentation on PHP.net (or > in ANY book) that covers this. All they s

[PHP] [suspicious - maybe spam] Re: [PHP] Finding out their server type

2005-05-04 Thread bala chandar
i think u can use nmap -O [hostname] On 5/5/05, Mark Cain <[EMAIL PROTECTED]> wrote: > I agree that the best way would be to parse the http header response. > However, If you want to check it out quickly and only do a couple of them, > do this: > > http://www.whois.sc/google.com > > or > > http

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
On 05/05/2005, at 8:28 AM, Dan Rossi wrote: For any interested parties, there is a tool called html2fo which will convert html to a formatted object file which can then be sent to FOP. I also found another example where any xhtml file can be transformed with a global xsl stylesheet to transform

[PHP] Re: php newbie question with xml files

2005-05-04 Thread Jared Sherman
Thanks these pointers have helped alot. "Jared Sherman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have an xml document storing some data I need. What I want to do is this: > 1. Scan to the end of the file. > 2. Find the closing tag. > 3. Insert a new entry in before the clo

[PHP] Objects in Arrays

2005-05-04 Thread Stuart G Nielson
I am using PHP version 4.3.4. I'm creating an authorization module that uses a users object, that includes the username, usertype, etc. I want to store this in a session variable (i.e. $_SESSION['objects']['auth'] = new Authorization();) so that I can keep the information from page to page. Ho

[suspicious - maybe spam] [PHP] How to declare Vars in PHP?

2005-05-04 Thread Jon M.
I know it's not necessary, but I still want to know how. I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; But there doesn't seem to be a single shred of documentation on PHP.net (or in ANY book) tha

[PHP] Question about acessing databases and formatting output

2005-05-04 Thread The Doctor
This is probably easy, but how does one access a database, mysql or oracle or postgresql, and present the data in a tabular format? -- Member - Liberal International This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] God Queen and country! Beware Anti-Christ rising! UK as 5 May 2005 approa

[suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

2005-05-04 Thread Jon M.
I know in JavaScript, that you declare vars like so: var = variableName; So I'm assuming that in PHP you do it like this: var = $variableName; But there doesn't seem to be a single shred of documentation on PHP.net (or in ANY book) that covers this. All they say is that it's good pract

Re: [PHP] Function shall receive Pointer to Array

2005-05-04 Thread Chris
I don't know what to tell you, that code should work (it does work, exactly as you gave it in my PHP 5). Chris Fred Rathke wrote: Hello, how can a function get a pointer to an array? This does not work. I use PHP4. $t = array("test" => "unchanged"); echo "testarray unchanged:\"".$t['test']."\""

[PHP] Tracking what has been changed

2005-05-04 Thread Robb Kerr
Here's the scenario... I am building a site in which users will be able to create and then later edit personal information. When they edit their information, I need to keep track of what was changed so that I can inform via email a person to approve the changes. Here's the flow I'm considering...

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
On 05/05/2005, at 7:14 AM, Kristen G. Thorson wrote: Dan Rossi wrote: On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote: especially since this wasn't to be our final approach. I'd be interested if you find out more information on the subject. What did you decide on ? LOL. That part got beyo

[PHP] Function shall receive Pointer to Array

2005-05-04 Thread Fred Rathke
Hello, how can a function get a pointer to an array? This does not work. I use PHP4. $t = array("test" => "unchanged"); echo "testarray unchanged:\"".$t['test']."\""; changearray($t); echo "testarray hopefully changed:\"".$t['test']."\""; function changearray(&$myarray) { $myarray['test'] = "chan

Re: [PHP] regex

2005-05-04 Thread Sebastian
i partly solved the problem using this regex: $tutorial['pagetext'] = preg_replace_callback('#\[img\]\s*(\d+)\s*\[/img\]#siU', 'image_code_callback', $content['pagetext']); except instead of using [img]foo[/img] i would like to do just [img=foo] any help? Sebastian wrote: > v

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Kristen G. Thorson
Dan Rossi wrote: On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote: especially since this wasn't to be our final approach. I'd be interested if you find out more information on the subject. What did you decide on ? LOL. That part got beyond me. I don't understand how all the PDF forms stu

Re: [PHP] Error suppression operator (@)

2005-05-04 Thread Colin Ross
Pretty much the only time i use it is form processing... so i don't get a bunch of errors when someone doesn't fill out a (non-required) field.. Also i use it to prefill form data is i have a session running, ie. " /> like others have mentioned... if there is no value, the form is blank, otherw

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote: especially since this wasn't to be our final approach. I'd be interested if you find out more information on the subject. What did you decide on ? On using passthru: I do not think FOP has the option to passthru the PDF output from the comma

[PHP] Re: Bug, erreurs ou non =?ISO-8859-1?Q?document=E9?=

2005-05-04 Thread Amir Mohammad Saied
[EMAIL PROTECTED] wrote: Bonjour, J'utilise php en profondeur depuis peu. Je viens d'utiliser les fonctions sur les fichier tel que is_file(), is_dir() ou encore file_exists(). J'obtiens des résultat qui ne correspondent pas à la documentation. Apparement la longueur de chaîne influe sur le résulta

Re: [PHP] Finding out their server type

2005-05-04 Thread Mark Cain
I agree that the best way would be to parse the http header response. However, If you want to check it out quickly and only do a couple of them, do this: http://www.whois.sc/google.com or http://www.whois.sc/cnn.com One of the surprising features of this whois site is that it will also tell you

Re: [PHP] Selective user access to download file

2005-05-04 Thread John Nichel
Eugene Voznesensky wrote: I'm going email user a link to protected from public access down-loadable file. User goes with the link [to my php script]. This php script validates a pre-defined parameter from link to allow or deny user's access to the file. Thank Eu. Glad you shared that with us. --

Re: [PHP] XSL:FO + PHP

2005-05-04 Thread Kristen G. Thorson
Dan, I'm glad this may work for you. As far as the speed: it's of course difficult to judge, and I certainly didn't test it under any real load, but I had no problems creating and serving a several page document with graphics in it. We were testing the concept of something like this for a sys

[PHP] regex

2005-05-04 Thread Sebastian
very new to regex i have a string with "bbcode" such as [img=XXX] (XXX being numeric) how do i search the string for the value of the bbcode and compare it to another variable? so i can take XXX and compare it to $image dynamically. thanks for any help. -- PHP General Mailing List (http://www.

Re: [PHP] Error suppression operator (@)

2005-05-04 Thread Jochem Maas
Greg Donald wrote: On 5/3/05, GamblerZG <[EMAIL PROTECTED]> wrote: I would like to know, whether using @ is a good practice. I try not to use it much, but when I do I back it up with checking to see if an error really occured. I use it for file handles, database handles, stuff that I really expec

RE: [PHP] Request to subscribe

2005-05-04 Thread Ryan A
On 5/4/2005 5:10:17 PM, Jay Blanchard ([EMAIL PROTECTED]) wrote: > [snip] > > I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to > > join this to share the PHP General. > > [/snip] > > > > Your wish is granted. http://www.php.net/mailinglists > Hehehehe... God, my name is Ryan..

Re: [PHP] Selective user access to download file

2005-05-04 Thread Richard Davey
Hello Eugene, Wednesday, May 4, 2005, 6:10:17 PM, you wrote: EV> I'm going email user a link to protected from public access EV> down-loadable file. User goes with the link [to my php script]. EV> This php script validates a pre-defined parameter from link to EV> allow or deny user's access to th

Re: [PHP] is this possible in PHP?

2005-05-04 Thread Richard Collyer
[EMAIL PROTECTED] wrote: I'd make a script that went through the httpd.conf file with DOM and pulled out all the virtual hosts. Either that or looked at the home directory listings for each site. If this is what you were getting at (seeing as you mentioned root access and what-not), then read the

[PHP] Selective user access to download file

2005-05-04 Thread Eugene Voznesensky
I'm going email user a link to protected from public access down-loadable file. User goes with the link [to my php script]. This php script validates a pre-defined parameter from link to allow or deny user's access to the file. Thank Eu. -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Error suppression operator (@)

2005-05-04 Thread Greg Donald
On 5/3/05, GamblerZG <[EMAIL PROTECTED]> wrote: > I would like to know, whether using @ is a good practice. I try not to use it much, but when I do I back it up with checking to see if an error really occured. I use it for file handles, database handles, stuff that I really expect to break someti

Re: [PHP] to pass session from one websever to another webserver

2005-05-04 Thread Rory Browne
Elaborate. Do you want to pass the sesson from server_1 to server_2, and use the session on server_2 instead of server_1, or do you want to use the session on both servers at the same time, or switch frequently between both machines? On 04 May 2005 18:24:07 +0530, Balwant Singh <[EMAIL PROTECTED]

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Jason Barnett
PHP5: http://php.net/manual/en/ref.dom.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] losing session values [SOLVED]

2005-05-04 Thread Angelo Zanetti
hi guys, solved the problem. it was the register_globals setting in the php.ini file. made a .htacess file and set it to off; works 100% also made all redirects like this: session_write_close(); header("Location: buddyList.php"); exit(); note the

RE: [PHP] Sudden php death

2005-05-04 Thread Ryan A
> But other PHP is still running, right? Dude, it is either a specific > > problem with the ad code itself, the database it is using, something. > > Have you even checked a log? Is the disk full? Basic troubleshooting - > > what have you done? Help us to help you. Hey, Sorry, didnt mean to sound

Re: [PHP] losing session values [SOLVED]

2005-05-04 Thread Angelo Zanetti
hi guys, solved the problem. it was the register_globals setting in the php.ini file. made a .htacess file and set it to off; works 100% also made all redirects like this: session_write_close(); header("Location: buddyList.php"); exit(); note the

Re: [PHP] forms

2005-05-04 Thread Richard Lynch
Try reading the PHP FAQ and looking for the answer about a generic form response using $_POST. On Mon, May 2, 2005 9:09 pm, Lisa A said: > Does anyone know of a good easy php script or Form that we can use with > Front Page. > We need a form to get results, that actually sends the results in a fo

Re: [PHP] Valid email address syntax script?

2005-05-04 Thread Jason Sweeney
Borrowed with great reverence from http://ca3.php.net/function.mail: $regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]{2,})+$'; if (eregi($regex, $email)) return true; else return false; jason sweeney jason.designshift.com JM wrote: Does anyone have a nice email address synt

[PHP] Error suppression operator (@)

2005-05-04 Thread GamblerZG
I would like to know, whether using @ is a good practice. For example, I have an array of unknown length $array. Is it all right write something like this: @list($first, $second) = $array; or is it better to do length check? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] to pass session from one websever to another webserver

2005-05-04 Thread Petar Nedyalkov
On Wednesday 04 May 2005 15:54, Balwant Singh wrote: > hi to all > > i want to pass session variables from one websever to another > webserver. may please help. Solution 1: Use a custom session handler. Solution 2: Disable cookies when using sessions (use GET to pass the session ID) and use a s

[PHP] [NEWBIE GUIDE] For the benefit of new posters

2005-05-04 Thread Jay Blanchard
= Please feel free to add more points and send to the list. 20050322jb - Note the new location of PHP Editors list. = 1. If you have any queries/problems about PHP try http://www.php.ne

RE: [PHP] Request to subscribe

2005-05-04 Thread Jay Blanchard
[snip] I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to join this to share the PHP General. [/snip] Your wish is granted. http://www.php.net/mailinglists -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sudden php death

2005-05-04 Thread Jay Blanchard
[snip] An ad software we were running suddenly stopped working; eg: it stopped serving ads but the control panels were still working perfectly and the site didnt go down. It was serving around 10,000-30,000 ads per day when it konked out, its not using persistant connectionscan anybody take a

Re: [PHP] RE: Finding out their server type

2005-05-04 Thread John Nichel
Computer Programmer wrote: How do I use that to find out the server type of yahoo.com or google.com or cnn.com, etc.? Will you look at that...there's some stuff about this on Google. Who would have thunk it? http://www.google.com/search?q=php+remote+server+information -- John C. Nichel ÜberGee

Re: [PHP] RE: Finding out their server type

2005-05-04 Thread Marek Kilimajer
Ang Pinoy wrote: Such as Apache, IIS, GWS, etc. "Server" header in any http response from the server: $ telnet servername 80 HEAD / HTTP/1.0 200 OK Connection: close Date: Wed, 04 May 2005 15:00:55 GMT Accept-Ranges: bytes ETag: "fa878-22dd-422b6d78" Server: Apache/1.3.27 -- PHP General Mailin

Re: [PHP] Downloads stop short

2005-05-04 Thread Petar Nedyalkov
On Tuesday 03 May 2005 21:43, Mike wrote: > I upgraded to PHP 5.0.4 and now all my downloads cut off at 1.9 MB downloads or uploads :-) check: upload_max_filesize post_max_size memory_limit ini variables. > > Is this a setting I missed somewhere? > > > +

[PHP] Re: forms

2005-05-04 Thread Lisa A
Thanks for the info, but do I create the form in front page then? Where does this script go? Do I save the php you sent as a results page? thanks, Lisa A "Jason Barnett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Lisa A wrote: >> Does anyone know of a good easy php script or

Re: [PHP] FW: xslt_process() error

2005-05-04 Thread Jochem Maas
Phil Ewington - 43 Plc wrote: Hi All, I am trying to replicate a ColdFusion custom tag I wrote for transforming an XML doc with XSLT and having major problems. When I use xslt_process() I get the following error: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token

[PHP] Re: losing session values

2005-05-04 Thread Matthew Weier O'Phinney
* Angelo Zanetti <[EMAIL PROTECTED]>: > We have developed a site on a server now the client has moved the site > to another server. Both servers run apache. However some of the Session > variables are losing their values or their values are getting changed. > > We have a number of header("location:

[PHP] Re: Request to subscribe

2005-05-04 Thread Jason Barnett
Venkatasatyanarayana Maddi wrote: Dear Team, I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to join this to share the PHP General. Good work, we can use more good soldiers like you. Thank u. Yahoo! In

[PHP] RE: Finding out their server type

2005-05-04 Thread Jay Blanchard
[snip] Why? Ang sabi sa akin ni Jay Blanchard noong 09:33 PM 5/4/2005... >Ah, now we get to the real question...and the answer is that you don't. [/snip] You can get information when someone comes to your site in the form of the referrer. PHP does not AFAIK provide a mechanism that you can use t

[PHP] RE: Finding out their server type

2005-05-04 Thread Computer Programmer
Why? Ang sabi sa akin ni Jay Blanchard noong 09:33 PM 5/4/2005... Ah, now we get to the real question...and the answer is that you don't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] losing session values

2005-05-04 Thread Angelo Zanetti
Hi all, We have developed a site on a server now the client has moved the site to another server. Both servers run apache. However some of the Session variables are losing their values or their values are getting changed. We have a number of header("location: xxx.php"); and they have the exit();

[PHP] Re: somebody have an example for PEAR packet?

2005-05-04 Thread Matthew Weier O'Phinney
* Tomás Rodriguez Orta <[EMAIL PROTECTED]>: > I need a help for work with the pear packet, in special with the packet > pager.php, because I need do an paging in my web but I don't know How does > work pager.php, please, help me! The Pager package comes with some examples, including a sample w

[PHP] Request to subscribe

2005-05-04 Thread venkatasatyanarayana maddi
Dear Team, I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to join this to share the PHP General. Thank u. Yahoo! India Matrimony: Find your life partneronline.

[PHP] Sudden php death

2005-05-04 Thread Ryan A
Hi, An ad software we were running suddenly stopped working; eg: it stopped serving ads but the control panels were still working perfectly and the site didnt go down. It was serving around 10,000-30,000 ads per day when it konked out, its not using persistant connectionscan anybody take a gue

[PHP] RE: Finding out their server type

2005-05-04 Thread Jay Blanchard
[snip] How do I use that to find out the server type of yahoo.com or google.com or cnn.com, etc.? Ang sabi sa akin ni Jay Blanchard noong 09:14 PM 5/4/2005... >Check here >http://us4.php.net/manual/en/reserved.variables.php#reserved.variables. e >nvironment [/snip] Ah, now we get to the real que

[PHP] Re: is_numeric

2005-05-04 Thread Jason Barnett
pete M wrote: not a php expert but have filed this bug report re validating is_numeric('3e0'); http://bugs.php.net/bug.php?id=32943 Yeah I read that report... and as it says you're using Euler's notation. Now tried function isnumeric($n) { if (ereg("^[0-9]{1,50}.?[0-9]{0,50}$", $n)) { if (

[PHP] Re: if then else

2005-05-04 Thread Jason Barnett
Anasta wrote: Can anyone help with a statement, ive tried but it never works. I need to show a value if it is set to a specific value ie: At the moment If a user is logs in a record is updated from 'away' to 'online'---so i want an echo statement to show a value from another table if they are set

[PHP] RE: Finding out their server type

2005-05-04 Thread Computer Programmer
How do I use that to find out the server type of yahoo.com or google.com or cnn.com, etc.? Ang sabi sa akin ni Jay Blanchard noong 09:14 PM 5/4/2005... Check here http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.e nvironment -- PHP General Mailing List (http://www.php.net/)

[PHP] somebody have an example for PEAR packet?

2005-05-04 Thread =?iso-8859-1?Q?Tom=E1s_Rodriguez_Orta?=
Hi people. I need a help for work with the pear packet, in special with the packet pager.php, because I need do an paging in my web but I don't know How does work pager.php, please, help me! Best regards TOMAS - Este

[PHP] PHP5 DOM & compressed xml

2005-05-04 Thread Jared Williams
Hi, Has anyone got the DOM extension to load compressed XML transparently? libxml2 apparently has this feature, but it appears not present in PHP build. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Finding out their server type

2005-05-04 Thread Jay Blanchard
[snip] Such as Apache, IIS, GWS, etc. Noong 08:50 PM 5/4/2005, Ang sabi ni Jay Blanchard... >Do you mean OS, or manufacturer? [/snip] Check here http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.e nvironment -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] Finding out their server type

2005-05-04 Thread Computer Programmer
I asked a question at Apache.org mailing list about how to hide my server type; and now I'm asking here how can I know someone's server type using PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: Finding out their server type

2005-05-04 Thread Ang Pinoy
Such as Apache, IIS, GWS, etc. Noong 08:50 PM 5/4/2005, Ang sabi ni Jay Blanchard... Do you mean OS, or manufacturer? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] setting condition problem

2005-05-04 Thread Mark Rees
Does this help? Select * From Projects Order By Relate,Title If not, please provide more details on the output you want to see and the structure of your table Mark -Original Message- From: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED] Sent: 02 May 2005 21:49 To: php-general@lists.php

[PHP] PHP5 DOM & compressed xml

2005-05-04 Thread Jared Williams
Hi, Has anyone got the DOM extension to load compressed XML transparently? libxml2 apparently has this feature, but it appears not present in PHP. Jared -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FW: xslt_process() error

2005-05-04 Thread Phil Ewington - 43 Plc
Hi All, I am trying to replicate a ColdFusion custom tag I wrote for transforming an XML doc with XSLT and having major problems. When I use xslt_process() I get the following error: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in The XML & XSL files al

Re: [PHP] age function

2005-05-04 Thread Mark Cain
The following code was taken directly from www.php.net/date $dob_month || ($dob_month==$cur_month && $cur_day>=$dob_day) ) return $cur_year-$dob_year; else return $cur_year-$dob_year-1; } ?> Mark Cain` - Original Message - From: "Ryan A" <[EMAIL PROTECTE

[PHP] Downloads stop short

2005-05-04 Thread Mike
I upgraded to PHP 5.0.4 and now all my downloads cut off at 1.9 MB Is this a setting I missed somewhere? ++ Mike Yrabedra [EMAIL PROTECTED] Your Mac Intelligence Resource ++ W: http://www.macagent.com/

[PHP] Re: forms

2005-05-04 Thread Jason Barnett
Lisa A wrote: Does anyone know of a good easy php script or Form that we can use with Front Page. We need a form to get results, that actually sends the results in a format that is easy to read. Not all run together with no spaces, etc. like the Front Page forms. Thanks, Lisa A /** File Action.

RE: [PHP] Re: Can someone help me build a regular expression?

2005-05-04 Thread Kim Madsen
> -Original Message- > From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 03, 2005 6:24 PM > (The person who posted that should have written it as PHP to avoid > confusion: preg_match('/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/', $string);) Also, the RegEx is incorrect s

[PHP] Re: Valid email address syntax script?

2005-05-04 Thread Matthew Weier O'Phinney
* Jm <[EMAIL PROTECTED]>: > Does anyone have a nice email address syntax checking script they'd > like to share? Regular expression-based anyone? TIA. I use the following regex: preg_match('/[EMAIL PROTECTED]@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email) I believe I got it out of the PHP Cookbook, b

[PHP] to pass session from one websever to another webserver

2005-05-04 Thread Balwant Singh
hi to all i want to pass session variables from one websever to another webserver. may please help. with best wishes balwant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Finding out their server type

2005-05-04 Thread Jay Blanchard
[snip] I asked a question at Apache.org mailing list about how to hide my server type; and now I'm asking here how can I know someone's server type using PHP? [/snip] Do you mean OS, or manufacturer? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Valid email address syntax script?

2005-05-04 Thread JM
Does anyone have a nice email address syntax checking script they'd like to share? Regular expression-based anyone? TIA. -- J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XSL:FO + PHP

2005-05-04 Thread Dan Rossi
Hi there, I am looking at integrating XSL:FO and PHP to convert html templated data into pdf's using xml and xsl. I was wondering if anyone has had success with this ? I have seen the pear package which does this but requires the experimental java extension. Let me know, it looks easy executing

Re: [PHP] is this possible in PHP?

2005-05-04 Thread disguised.jedi
> I want a script that can display a list of all the websites currently > hosted on my server.. (i have root access to the server) > > Say I have a page sitesonmyserver.php..it shud show a list of all the > websites hosted on my server..eg: > abc.com > xyz.om > > And any additional info if possible

Re: [PHP] php newbie question with xml files

2005-05-04 Thread disguised.jedi
> I have an xml document storing some data I need. What I want to do is this: > 1. Scan to the end of the file. > 2. Find the closing tag. > 3. Insert a new entry in before the closing tag. There are specific classes and functions in the PHP core that can help you do just this. > I've tried: > 1.

[PHP] Bug, erreurs ou non =?iso-8859-1?b?ZG9jdW1lbnTp?=

2005-05-04 Thread jayjaypackman
Bonjour, J'utilise php en profondeur depuis peu. Je viens d'utiliser les fonctions sur les fichier tel que is_file(), is_dir() ou encore file_exists(). J'obtiens des résultat qui ne correspondent pas à la documentation. Apparement la longueur de chaîne influe sur le résultat obtenu. En effet voic

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
This should get you started: $old_data = file_get_contents('./test.txt'); $my_data = "foo bar"; $pattern = '/(.*)(<\/.*>)$/i'; $replacement = '$1' . $my_data . '$2'; $new_data = preg_replace($pattern, $replacement, $old_data); echo $new_data; or a little more succinctly $my_data = "foo bar"; $n

[PHP] Finding out their server type

2005-05-04 Thread Pinoy Programmer
I asked a question at Apache.org mailing list about how to hide my server type; and now I'm asking here how can I know someone's server type using PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP based project management

2005-05-04 Thread Neal Carmine
Hi, There are a lot of open source project management packages. .Project, netoffice and others. Does anyone have a recommendation on the best overall project management software for tracking billable software projects? Thanks, Neal

[PHP] Re: Error suppression operator (@)

2005-05-04 Thread Jason Barnett
GamblerZG wrote: I would like to know, whether using @ is a good practice. For example, I have an array of unknown length $array. Is it all right write something like this: @list($first, $second) = $array; or is it better to do length check? Using @ is good practice in any case where you simply *

Re: [PHP] age function

2005-05-04 Thread Petar Nedyalkov
On Tuesday 03 May 2005 22:41, Ryan A wrote: > Hey, > Anybody have an age function where i can pass a date object and get back an > int? > > eg: > $years_old=get_years("1979-12-07"); Use time and mktime. $birthday = ""1979-12-07"; $birdthday_time = mktime(0, 0, 0, substr($birthday, 5, 2), substr

[PHP] xslt_process() error

2005-05-04 Thread Phil Ewington - 43 Plc
Hi Guys, I am trying to replicate a ColdFusion custom tag I wrote for transforming an XML doc with XSLT and having major problems. When I use xslt_process() I get the following error: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in The XML & XSL files a

[PHP] Re: Check for doubleposts

2005-05-04 Thread pete M
set a $_SESSION['var'] at the end of the first post and check for this the second time around pete Fredrik Arild Takle wrote: Hi, what is the easiest way to check if a person i registered twice in a mysql-table. Lets assume that I only check if the last name is in the table more than once. This

RE: [PHP] Check for doubleposts

2005-05-04 Thread Mark Rees
-Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED] Sent: 03 May 2005 17:49 To: php-general@lists.php.net Subject: [PHP] Check for doubleposts Hi, what is the easiest way to check if a person i registered twice in a mysql-table. Lets assume that I only check if the l

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
This should get you started: $old_data = file_get_contents('./test.txt'); $my_data = "foo bar"; $pattern = '/(.*)(<\/.*>)$/i'; $replacement = '$1' . $my_data . '$2'; $new_data = preg_replace($pattern, $replacement, $old_data); echo $new_data; or a little more succinctly $my_data = "foo bar"; $n

[PHP] Access files

2005-05-04 Thread Don
Hi, I am using php 4.3.11 on a RedHat Linux server running Apache. I have a requirement where I need to take a flat file containing formatted data and produce an Access 97 MDB file. Does anyone know of a class or library that will enable me to do this? Thanks, Don

Re: [PHP] Newbie Help

2005-05-04 Thread Richard Lynch
On Sun, May 1, 2005 7:43 pm, Thomas Bonham said: >if(isset($_GET ['page'])) > {include($_GET ['page'].".php");} So, what happens when I decide to use: http://bonhamlinux.org?page=secret If you have a file named secret.php, I just loaded it. More importantly, I l

[PHP] Check for doubleposts

2005-05-04 Thread Fredrik Arild Takle
Hi, what is the easiest way to check if a person i registered twice in a mysql-table. Lets assume that I only check if the last name is in the table more than once. This is in mysql 4.0 (subquery not an option). Do I have to use arrays and in_array. Or is there a more elegant solution? Best re

[PHP] Re: age function

2005-05-04 Thread Ryan A
Hey, finally solved this, incase anyones interested heres how i did it : $day1=strtotime($age); // eg: 1979-12-07 $day2 = strtotime(date("Y-m-d")); $dif_s = ($day2-$day1); $dif_d = ($dif_s/60/60/24); $dif_y = round(($dif_d/365.24)); echo "The person is $dif_y year(s) old"; Cheers, Ryan ---

Re: [PHP] Strange problem with DB queries

2005-05-04 Thread Richard Lynch
On Mon, May 2, 2005 4:07 am, George Pitcher said: > On page y, I've echoed the queries and they work fine when I paste them > into > MySQLCC. However, if I do print_r($row), I get an ampty array. Echoing the > $result gives me Object id #3 (on page x this is Object id #6). > > I have another popup

  1   2   >