[PHP] age function

2005-05-04 Thread Ryan A
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); Thanks, Ryan -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 5/2/2005 -- PHP

Re: [PHP] handling a user pressing browser's back button

2005-05-04 Thread Matthew Weier O'Phinney
* James [EMAIL PROTECTED]: Actually: Will there be an issue with the back button if I use 1 script to do all of what I posted before? No. Thank you guys for the answers. I think I will go with the following approach. (A) script 1 submits to script 2 then (B) script 2 redirects

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

2005-05-04 Thread Matthew Weier O'Phinney
* Rory Browne [EMAIL PROTECTED]: You mite try this. I know that this work with perl. =~ m/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/ I'm not sure what the initial m does(I'm not a perl person), The 'm' is an optional flag indicating that a 'match' regexp (versus a substitution or transliteration)

Re: [PHP] setting condition problem

2005-05-04 Thread Richard Lynch
On Mon, May 2, 2005 1:49 pm, Ahmed Abdel-Aliem said: i have a query that grabs records from the database, it works fine, but i have a problem with acondition i want to set for it the variable $Record[Relate] has 1 of 2 values, self or share what i wanna do is that when the variable has the

[PHP] FPDF, HTML and PDML

2005-05-04 Thread Dan Rossi
Hi there I am trying out the PDML class which interfaces the FPDF code for generating PDF's with markup language. The issue its I cant put straight html tables into it. Is there such an interface to FPDF that can be used to convert html to pdf. I have tried alot of them and none worked out of

Re: [PHP] Re: Valid email address syntax script?

2005-05-04 Thread Marcus Bointon
On 3 May 2005, at 19:18, Matthew Weier O'Phinney wrote: * 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',

Re: [PHP] just going with LIKE

2005-05-04 Thread Richard Lynch
On Mon, May 2, 2005 12:22 pm, Ross said: Had a look at it and much easier to use LIKE with wildcards. Was unsure whether the query was case sensitive that is why I asked. As it turns out it is not. Actually, last time I checked, this was a COMPILE option to MySQL to be case sensitive or not

[PHP] is_numeric

2005-05-04 Thread pete M
not a php expert but have filed this bug report re validating is_numeric('3e0'); http://bugs.php.net/bug.php?id=32943 Now tried function isnumeric($n) { if (ereg(^[0-9]{1,50}.?[0-9]{0,50}$, $n)) { return true; } else { return false; } } and that doent seem to work either..

[PHP] PHP's auto_prepend_file inside an Apache Directory container

2005-05-04 Thread Dan Trainor
Hello, all - I've been tinkering around with PHP's auto_prepend_file, specifying this from inside an Apache VirtualHost container, something as such: VirtualHost 1.2.3.4 blah blah blah php_value auto_prepend_file /super_duper_file.php /VirtualHost THis works fine

[PHP] Re: if then else

2005-05-04 Thread David Robley
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

[PHP] if then else

2005-05-04 Thread Anasta
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 to online or

Re: [PHP] php4 to php5, now classes don't work?

2005-05-04 Thread Richard Lynch
On Mon, May 2, 2005 11:01 am, Chris said: As far as I know PHP 4 classes are completely backwards compatible. with PHP 5. There are a few weird things with references () in PHP 4 that won't work in PHP 5, I think -- Or, more likely, if you are relying on the behaviour of references versus

Re: [PHP] only allowing php_flag register_globals off

2005-05-04 Thread Karin van den Berg
Richard Lynch wrote: Are they unwilling to change it for a paying account, or just the trial one? Big difference. :-) Well it's not a standard trail account. One of the owners offered me to try it for a month to see if it suited me. My domain is moved to them and everything.. so it's probably

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

[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

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

2005-05-04 Thread Richard Lynch
On Sun, May 1, 2005 7:43 pm, Thomas Bonham said: ?php 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

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

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

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

[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

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

[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

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

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;

[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

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.

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? I'd

[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

[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

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:

[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

[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, by

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 since

[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 ?php /** File

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

Re: [PHP] age function

2005-05-04 Thread Mark Cain
The following code was taken directly from www.php.net/date ?php function CalcAge($date_of_birth) { // -MM-DD $cur_year=date(Y); $cur_month=date(m); $cur_day=date(d); $dob_year=substr($date_of_birth, 0, 4); $dob_month=substr($date_of_birth, 5, 2);

[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

[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

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

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

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

[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

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

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

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

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

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

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

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? ++

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 Mailing

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.? snip 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

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

[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

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

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

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

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

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 so

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

[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

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

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 the

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 just

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 expect

[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

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

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

[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

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

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. input name=fname type=text value?php echo @$_SESSION['APP']['fname']; ? / like

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

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:

[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 brtestarray unchanged:\.$t['test'].\; changearray($t); echo brtestarray hopefully changed:\.$t['test'].\; function changearray($myarray) { $myarray['test'] = changed; } Before

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

[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] 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 brtestarray unchanged:\.$t['test'].\;

[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

[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

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

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

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

  1   2   >