[PHP] Urgent Requirement - PHP Senior Developer / Seasoned Trainer

2013-07-15 Thread Nitin Sathawane
Dear All,

AIT Learning (American Institute of Technology) is passionate about
imparting hands on training (2 months boot camp) on PHP. We are expanding
and looking for brilliant and self driven PHP developers / trainers who are
passionate about teaching as us and have hunger to make an impact.

Compensation - 50-75 % increment on your current pay stub plus bonus. Our
philosophy is to reward deserving employees.

Role - Based on your experience and interview panel feedback you will be
hired as Principal Trainer or Associate Trainer.

Responsibilities -  In short - need to ensure that candidates who are
enrolled for training can develop website of their own after the training
is complete. We will be placing them with our Clients on Day 1.

If interested, please contact Sach at 240 672 7654 or reply back to this
email.

Regards
Nitin


Re: [PHP] URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

2012-10-26 Thread Alan Hoffmeister
2012/10/25  :
> Hi to all,
> My site with Drupal 7. I contacted tech support and he said he accessed to
> the site with FTP - what I doubt. But if it's truth - it's even worse
> because whole server is then compromised.
> I need help with command line for "list all new/modified files within the
> last 24 hours".
>
> Thanks for any help,
> LAMP
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Easy one.
1) List all files within a directory recursively:
http://php.net/manual/en/function.readdir.php
2) Now just excract the modification time of each file:
http://php.net/manual/en/function.filemtime.php
3) Print on the screen those with modificication time < than 24 hours
4) Profit!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

2012-10-25 Thread lamp
> On 10/25/2012 06:15 PM, l...@afan.net wrote:
>> Hi to all,
>> My site with Drupal 7. I contacted tech support and he said he accessed
>> to
>> the site with FTP - what I doubt. But if it's truth - it's even worse
>> because whole server is then compromised.
>> I need help with command line for "list all new/modified files within
>> the
>> last 24 hours".
>>
>> Thanks for any help,
>> LAMP
>>
>>
>
> First off, don't hijack someone else's thread for a new topic

I apologize for this, I thought by changing the Subject It's new thread.

> Secondly, this has nothing to do with PHP
I apologize again. You're right, I should post on Linux group.

> Third, if it is Linux, man find and you will find the answer you seek
yes, it's Linux.

> Forth, if it is Windows, I have nothing else to say
:-)


>
> --
> Jim Lucas
>
> http://www.cmsws.com/
> http://www.cmsws.com/examples/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

2012-10-25 Thread Jay Blanchard

[snip]
Third, if it is Linux, man find and you will find the answer you seek
[/snip]

RTFMP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

2012-10-25 Thread lamp
>
>
>> -Original Message-
>> From: l...@afan.net [mailto:l...@afan.net]
>> Sent: Thursday, October 25, 2012 9:16 PM
>> To: php-general@lists.php.net
>> Subject: [PHP] URGENT! Need help with command line for "list all
>> new/modified files within the last 24 hours"
>>
>> Hi to all,
>> My site with Drupal 7. I contacted tech support and he said he accessed
>> to the site with FTP - what I doubt. But if it's truth - it's even
>> worse because whole server is then compromised.
>> I need help with command line for "list all new/modified files within
>> the last 24 hours".
>>
>> Thanks for any help,
>> LAMP
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
>> http://www.php.net/unsub.php
>
>
>
> $ ls -n -r "*" "/directory-path" ($fmtime >= "20121024")
>

Thanks a lot!!!
:-)





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

2012-10-25 Thread lamp
> Remove all compromised files:
>
> sudo rm -rf /
>
> Really you should move to a new server. Dump the database and upload code
> from your local copy.

I wish it's so easy :(



>
> Regards,
>
> -Josh
> ___
> http://joshuakehn.com
> Currently mobile
>
> On Oct 25, 2012, at 9:15 PM, l...@afan.net wrote:
>
>> Hi to all,
>> My site with Drupal 7. I contacted tech support and he said he accessed
>> to
>> the site with FTP - what I doubt. But if it's truth - it's even worse
>> because whole server is then compromised.
>> I need help with command line for "list all new/modified files within
>> the
>> last 24 hours".
>>
>> Thanks for any help,
>> LAMP
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

2012-10-25 Thread lamp
> On 10/25/2012 06:15 PM, l...@afan.net wrote:
>> Hi to all,
>> My site with Drupal 7. I contacted tech support and he said he accessed
>> to
>> the site with FTP - what I doubt. But if it's truth - it's even worse
>> because whole server is then compromised.
>> I need help with command line for "list all new/modified files within
>> the
>> last 24 hours".
>>
>> Thanks for any help,
>> LAMP
>>
>>
>
> First off, don't hijack someone else's thread for a new topic

I apologize for this, I thought by changing the Subject It's new thread.

> Secondly, this has nothing to do with PHP
I apologize again. You're right, I should post on Linux group.

> Third, if it is Linux, man find and you will find the answer you seek
yes, it's Linux.

> Forth, if it is Windows, I have nothing else to say
:-)


>
> --
> Jim Lucas
>
> http://www.cmsws.com/
> http://www.cmsws.com/examples/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

2012-10-25 Thread Jim Lucas

On 10/25/2012 06:15 PM, l...@afan.net wrote:

Hi to all,
My site with Drupal 7. I contacted tech support and he said he accessed to
the site with FTP - what I doubt. But if it's truth - it's even worse
because whole server is then compromised.
I need help with command line for "list all new/modified files within the
last 24 hours".

Thanks for any help,
LAMP




First off, don't hijack someone else's thread for a new topic
Secondly, this has nothing to do with PHP
Third, if it is Linux, man find and you will find the answer you seek
Forth, if it is Windows, I have nothing else to say

--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] URGENT! Need help with command line for "list all new/modified files within the last 24 hours"

2012-10-25 Thread lamp
Hi to all,
My site with Drupal 7. I contacted tech support and he said he accessed to
the site with FTP - what I doubt. But if it's truth - it's even worse
because whole server is then compromised.
I need help with command line for "list all new/modified files within the
last 24 hours".

Thanks for any help,
LAMP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Urgent help - Token Generation code!

2011-05-28 Thread Shreyas Agasthya

Let me try and get back.

Thanks, Jasper!



On 28-May-2011, at 4:29 AM, Jasper Mulder   
wrote:






From: shreya...@gmail.com
To: lord_fa...@hotmail.com
Subject: Re: [PHP] Urgent help - Token Generation code!
Date: Sat, 28 May 2011 04:15:59 +0530

Jasper,

Tried echoing $sToken but wouldn't work.

Regards,
Shreyas

On 28-May-2011, at 4:11 AM, Jasper Mulder
wrote:





Date: Sat, 28 May 2011 03:56:26 +0530
From: shreya...@gmail.com
To: php-general@lists.php.net
Subject: [PHP] Urgent help - Token Generation code!

I am re-visiting the world of PHP after a really big hiatus and I
am finding
things veryslippery. Can someone please help me with the below code
and let
me know how I can print the token that is getting generated?

I am using EasyPHP and I am trying to echo the $token but it
wouldn't print
anything. I am trying it as : http://localhost/token/URLToken.php.
May I
know where all I am going wrong here in my approach?




$sUrl = "/tstd_c_b1@s54782";
$sParam = "primaryToken";
$nTime = time();
$nEventDuration = 86400;
$nWindow = $nTime + $nEventDuration;
$sSalt = "akamai123!";
$sExtract = ""; // optional



As a second try, what happens if you add right here the line

$sGen = urlauth_gen_url($sUrl, $sParam, $nWindow, $sSalt, $sExtract,  
$nTime);


Because it seems as though you just declare three functions in the  
code

without calling them...



function urlauth_gen_url($sUrl, $sParam, $nWindow,
$sSalt, $sExtract, $nTime) {



$sToken = urlauth_gen_token($sUrl, $nWindow, $sSalt,
$sExtract, $nTime);
echo $token;


There are two cases:
1. You made a typo and meant 'echo $sToken;' on the above line  
instead

2. You omitted the part where $token is defined and used


[More code that seemed fine]

--
Regards,
Shreyas Agasthya




Best regards,
Jasper Mulder



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Urgent help - Token Generation code!

2011-05-27 Thread Jasper Mulder


> From: shreya...@gmail.com
> To: lord_fa...@hotmail.com
> Subject: Re: [PHP] Urgent help - Token Generation code!
> Date: Sat, 28 May 2011 04:15:59 +0530
>
> Jasper,
>
> Tried echoing $sToken but wouldn't work.
>
> Regards,
> Shreyas
>
> On 28-May-2011, at 4:11 AM, Jasper Mulder 
> wrote:
>
> >
> > 
> >> Date: Sat, 28 May 2011 03:56:26 +0530
> >> From: shreya...@gmail.com
> >> To: php-general@lists.php.net
> >> Subject: [PHP] Urgent help - Token Generation code!
> >>
> >> I am re-visiting the world of PHP after a really big hiatus and I
> >> am finding
> >> things veryslippery. Can someone please help me with the below code
> >> and let
> >> me know how I can print the token that is getting generated?
> >>
> >> I am using EasyPHP and I am trying to echo the $token but it
> >> wouldn't print
> >> anything. I am trying it as : http://localhost/token/URLToken.php.
> >> May I
> >> know where all I am going wrong here in my approach?
> >>
> >>>
> >> $sUrl = "/tstd_c_b1@s54782";
> >> $sParam = "primaryToken";
> >> $nTime = time();
> >> $nEventDuration = 86400;
> >> $nWindow = $nTime + $nEventDuration;
> >> $sSalt = "akamai123!";
> >> $sExtract = ""; // optional
> >>

As a second try, what happens if you add right here the line

$sGen = urlauth_gen_url($sUrl, $sParam, $nWindow, $sSalt, $sExtract, $nTime);

Because it seems as though you just declare three functions in the code
without calling them...

> >>
> >> function urlauth_gen_url($sUrl, $sParam, $nWindow,
> >> $sSalt, $sExtract, $nTime) {
> >>
> >>
> >>
> >> $sToken = urlauth_gen_token($sUrl, $nWindow, $sSalt,
> >> $sExtract, $nTime);
> >> echo $token;
> >
> > There are two cases:
> > 1. You made a typo and meant 'echo $sToken;' on the above line instead
> > 2. You omitted the part where $token is defined and used
> >
> >> [More code that seemed fine]
> >>
> >> --
> >> Regards,
> >> Shreyas Agasthya
> >

Best regards,
Jasper Mulder
  
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Urgent help - Token Generation code!

2011-05-27 Thread Jasper Mulder


> From: lord_fa...@hotmail.com
> To: shreya...@gmail.com
> Subject: RE: [PHP] Urgent help - Token Generation code!
> Date: Sat, 28 May 2011 00:41:02 +0200
>
>
> 
> > Date: Sat, 28 May 2011 03:56:26 +0530
> > From: shreya...@gmail.com
> > To: php-general@lists.php.net
> > Subject: [PHP] Urgent help - Token Generation code!
> >
> > I am re-visiting the world of PHP after a really big hiatus and I am finding
> > things veryslippery. Can someone please help me with the below code and let
> > me know how I can print the token that is getting generated?
> >
> > I am using EasyPHP and I am trying to echo the $token but it wouldn't print
> > anything. I am trying it as : http://localhost/token/URLToken.php. May I
> > know where all I am going wrong here in my approach?
> >
> > >
> > $sUrl = "/tstd_c_b1@s54782";
> > $sParam = "primaryToken";
> > $nTime = time();
> > $nEventDuration = 86400;
> > $nWindow = $nTime + $nEventDuration;
> > $sSalt = "akamai123!";
> > $sExtract = ""; // optional
> >
> >
> > function urlauth_gen_url($sUrl, $sParam, $nWindow,
> > $sSalt, $sExtract, $nTime) {
> >
> >
> >
> > $sToken = urlauth_gen_token($sUrl, $nWindow, $sSalt,
> > $sExtract, $nTime);
> > echo $token;
>
> There are two cases:
> 1. You made a typo and meant 'echo $sToken;' on the above line instead
> 2. You omitted the part where $token is defined and used
>
> > [More code that seemed fine]
> >
> > --
> > Regards,
> > Shreyas Agasthya
>
> Best regards,
> Jasper Mulder
>

I forgot to hit Reply All instead of Reply.
I am deeply sorry for such a careless omission.

Best regards,
Jasper Mulder
  
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent help - Token Generation code!

2011-05-27 Thread Shreyas Agasthya
I am re-visiting the world of PHP after a really big hiatus and I am finding
things veryslippery. Can someone please help me with the below code and let
me know how I can print the token that is getting generated?

I am using EasyPHP and I am trying to echo the $token but it wouldn't print
anything. I am trying it as : http://localhost/token/URLToken.php. May I
know where all I am going wrong here in my approach?

 12)) {
return;
}

if (($nWindow < 0) || (!is_integer($nWindow))) {
return;
}

if (($nTime <= 0) || (!is_integer($nTime))) {
$nTime = time();
}

$nExpires = $nWindow + $nTime;

if (strpos($sUrl, "?") === false) {
$res = $sUrl . "?" . $sParam . "=" . $nExpires . "_" . $sToken;
} else {
$res = $sUrl . "&" . $sParam . "=" . $nExpires . "_" . $sToken;
}

return $res;
}

/**
 * Returns the hash portion of the token. This function should not be
 *   called directly.
 */
function urlauth_gen_token($sUrl, $nWindow, $sSalt,
   $sExtract, $nTime) {


if (($sUrl == "") || (!is_string($sUrl))) {
return;
}

if (($nWindow < 0) || (!is_integer($nWindow))) {
return;
}

if (($sSalt == "") || (!is_string($sSalt))) {
return;
}

if (!is_string($sExtract)) {
$sExtract = "";
}

if (($nTime <= 0) || (!is_integer($nTime))) {
$nTime = time();
}

$nExpires = $nWindow + $nTime;
$sExpByte1 = chr($nExpires & 0xff);
$sExpByte2 = chr(($nExpires >> 8) & 0xff);
$sExpByte3 = chr(($nExpires >> 16) & 0xff);
$sExpByte4 = chr(($nExpires >> 24) & 0xff);

$sData = $sExpByte1 . $sExpByte2 . $sExpByte3 . $sExpByte4
 . $sUrl . $sExtract . $sSalt;

$sHash = _unHex(md5($sData));

$sToken = md5($sSalt . $sHash);
return $sToken;
}

/**
 * Helper function used to translate hex data to binary
 */
function _unHex($str) {
$res = "";
for ($i = 0; $i < strlen($str); $i += 2) {
$res .= chr(hexdec(substr($str, $i, 2)));
}
return $res;
}

?>

-- 
Regards,
Shreyas Agasthya


Re: [PHP] urgent CSS question

2009-05-23 Thread LinuxManMikeC
Maybe there is another CSS rule that also matches the same context and
overrides parts of the #frame1 rule, but didn't match when using the
old #frame rule.  Just my two cents.

On Fri, May 22, 2009 at 7:15 PM, PJ  wrote:
> Benjamin Hawkes-Lewis wrote:
>> On 22/5/09 20:31, PJ wrote:
>>> They may have different names, but does that change their functionality?
>>
>> Potentially, yes!
>>
>> A selector including #frame will no longer match if "id" is changed to
>> "frame1", and vice versa.
>>
>>> They are identical except for the "1" in the title of the id. So, if I
>>> change the one id to the other in the same code, I don't understand why
>>> the formatting would change?
>>
>> These descriptions are still far too vague and ambiguous. Please link
>> to two test cases:
>>
>> 1) Effectively showing "frame1".
>>
>> 2) Effectively showing "frame".
>>
>> that illustrate the problem you're talking about.
>>
>>> Obviously, the parents and the children
>>> have not changed unless there's some weird hanky-panky going on.
>>
>> Without seeing test cases, nothing is obvious.
>>
>> > Or do I have to make a new css file for every page
>>
>> Only if you're doing it wrong. :)
>>
>>> And to follow the logic here, if I create a different id and in the
>>> end it turns out to be identical to the original "frame" except for the
>>> name, shouldn't it function the same.
>>
>> That depends on:
>>
>> 1) The contents of your CSS file, which I can't see.
>> 2) Whether you've made any errors when modifying your HTML, which I
>> can't see either.
>>
>> If you provided test cases, I could see these things and answer your
>> questions.
>>
>> Trying to describe the problem rather than /showing/ the problem is
>> very inefficient.
>>
>> --
>> Benjamin Hawkes-Lewis
>>
> Ok, I'm glad the there are some people out there  who want to get down
> to the bottom of things.
> I can attach or maybe put up a link on a website where you can look at
> the code and the css.
> But regardless of any test caste, nothing changes the fact that whatever
> the html code, whatever the php code, these are sonstant and nothing is
> changed. Switch between id frame and id frame1 and things change.
> nothnig, I meant, nothing is changed in between. The difference is in
> the css, and nothing else.
> I'll post the location later tonight or , more likely, tomorrow am.
> z
>
> --
> Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
> -
> Phil Jourdan --- p...@ptahhotep.com
>   http://www.ptahhotep.com
>   http://www.chiccantine.com/andypantry.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
Benjamin Hawkes-Lewis wrote:
> On 22/5/09 20:31, PJ wrote:
>> They may have different names, but does that change their functionality?
>
> Potentially, yes!
>
> A selector including #frame will no longer match if "id" is changed to
> "frame1", and vice versa.
>
>> They are identical except for the "1" in the title of the id. So, if I
>> change the one id to the other in the same code, I don't understand why
>> the formatting would change?
>
> These descriptions are still far too vague and ambiguous. Please link
> to two test cases:
>
> 1) Effectively showing "frame1".
>
> 2) Effectively showing "frame".
>
> that illustrate the problem you're talking about.
>
>> Obviously, the parents and the children
>> have not changed unless there's some weird hanky-panky going on.
>
> Without seeing test cases, nothing is obvious.
>
> > Or do I have to make a new css file for every page
>
> Only if you're doing it wrong. :)
>
>> And to follow the logic here, if I create a different id and in the
>> end it turns out to be identical to the original "frame" except for the
>> name, shouldn't it function the same.
>
> That depends on:
>
> 1) The contents of your CSS file, which I can't see.
> 2) Whether you've made any errors when modifying your HTML, which I
> can't see either.
>
> If you provided test cases, I could see these things and answer your
> questions.
>
> Trying to describe the problem rather than /showing/ the problem is
> very inefficient.
>
> -- 
> Benjamin Hawkes-Lewis
>
Ok, I'm glad the there are some people out there  who want to get down
to the bottom of things.
I can attach or maybe put up a link on a website where you can look at
the code and the css.
But regardless of any test caste, nothing changes the fact that whatever
the html code, whatever the php code, these are sonstant and nothing is
changed. Switch between id frame and id frame1 and things change.
nothnig, I meant, nothing is changed in between. The difference is in
the css, and nothing else.
I'll post the location later tonight or , more likely, tomorrow am.
z

-- 
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis

On 22/5/09 20:31, PJ wrote:

They may have different names, but does that change their functionality?


Potentially, yes!

A selector including #frame will no longer match if "id" is changed to 
"frame1", and vice versa.



They are identical except for the "1" in the title of the id. So, if I
change the one id to the other in the same code, I don't understand why
the formatting would change?


These descriptions are still far too vague and ambiguous. Please link to 
two test cases:


1) Effectively showing "frame1".

2) Effectively showing "frame".

that illustrate the problem you're talking about.


Obviously, the parents and the children
have not changed unless there's some weird hanky-panky going on.


Without seeing test cases, nothing is obvious.

> Or do I have to make a new css file for every page

Only if you're doing it wrong. :)


And to follow the logic here, if I create a different id and in the
end it turns out to be identical to the original "frame" except for the
name, shouldn't it function the same.


That depends on:

1) The contents of your CSS file, which I can't see.
2) Whether you've made any errors when modifying your HTML, which I 
can't see either.


If you provided test cases, I could see these things and answer your 
questions.


Trying to describe the problem rather than /showing/ the problem is very 
inefficient.


--
Benjamin Hawkes-Lewis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Dee Ayy
I had an id killing me the other day.  Turned out I was going blind.
A different font or glasses would have helped me see that I was not
using the id I thought I was.

Just a thought.

The following are 5 different characters:

iIl1!

Also, the debug tools I mentioned should confirm that they have the
same computed styles.  Then you can continue pulling your hair out if
they do.  I also had an issue where "px" was not included and it was
not defaulting to "px".

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
Ashley Sheridan wrote:
> On Fri, 2009-05-22 at 12:59 +0100, Benjamin Hawkes-Lewis wrote:
>   
>> On 22/5/09 12:49, PJ wrote:
>> 
>>> Sorry, but no one suggested a mailing list for CSS and the W3 Schools
>>> Forum has problems.
>>>   
>> Actually, I did:
>>
>> http://www.css-discuss.org/
>>
>> 
>>> Why do I get completely different formatting with two identical classes?
>>> I want to change part of the formatting on just one page on the site
>>> using the exact same class with some changes so I don't modify other
>>> pages. I copied div#frame to div#frame1 and changed the class on the
>>> page to id="frame1". But now the page no longer displays the formatting
>>> as with id="frame" - e.g.  produces 16px font-size instead of 12px.
>>>   
I don't understand how this could be simpler: first, it's and id and not
a class. The only difference is the number 1 in the name of the second
id which is a carbon copy of the first. Same parents, same inheritance,
same children.  Firebug does not indicate anything that helps. I don't
see the need to go through hell setting up some theoretical setup that
in the end will produce the same thing that I already have in a actual
situation. Nothing is change in the layout of the css id (only a
different name) and no change in the script. So why the discrepancy?
>> This description is confusing. Can you please link to a minimal test 
>> case showing the problem you're talking about, so that we can view your 
>> code and ideally probe it with DOM inspectors like Firebug?
>>
>> http://webkit.org/quality/reduction.html
>>
>> may help you produce one.
>>
>> In general, I'd suggest creating page-specific style variations by 
>> sticking a class on the body (e.g.  ) and using 
>> that as a hook to modify the styling of the class whose formatting you 
>> want to be different.
>>
>> .thing {
>>  font-weight: bold;
>> }
>>
>> .article .thing {
>>  font-style: italic;
>> }
>>
>> for example.
>>
>> --
>> Benjamin Hawkers-Lewis
>>
>> 
> That hook on the body tag is a good one, which I wish I'd thought of a
> few weeks back! I've been using PHP to pull in external stylesheets
> based on the current script name for a project I'm working on, as each
> page has unique tweaks on common elements. It's not like I don't even
> use selectors even now!
>
>
> Ash
> www.ashleysheridan.co.uk
>
>
>   


-- 
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
Benjamin Hawkes-Lewis wrote:
> On 22/5/09 13:27, PJ wrote:
>> Ok, I have duplicate classes - #frame and #frame1.
>
> Let's get our terminology straight:
>
> ids are not classes; classes are not ids.
>
> ids look like:
>
> id="thing"
>
> and are selected like:
>
> #thing
>
> classes look like:
>
> class="thing other-thing"
>
> and are selected like
>
> .thing
>
> An element may have zero or one IDs.
>
> An element may have zero or more classes.
>
> id is supposed to be unique within a given document.
>
> The same classname may be used multiple times in the same document.
>
> See:
>
> http://css.maxdesign.com.au/selectutorial/advanced_idclass.htm
>
>> What I don't understand is why switching from #frame to #frame1 should
>> change formatting.
>
> #frame targets an element with id="frame" while "frame1" targets an
> element with id="frame1". So I'm not sure what these have to do with
> one another.
>
>> The two classes are absolutely the same, the only
>> difference is the "1" in the name.
>
> Which is to say they are utterly different, since they have different
> names.
>
They may have different names, but does that change their functionality?
They are identical except for the "1" in the title of the id. So, if I
change the one id to the other in the same code, I don't understand why
the formatting would change? Obviously, the parents and the children
have not changed unless there's some weird hanky-panky going on.
The simple reason to change the id is to avoid messing up the appearance
of other pages that are using the same css file. Or do I have to make a
new css file for every page; that would be a little ridiculous, wouldn't
it? And to follow the logic here, if I create a different id and in the
end it turns out to be identical to the original "frame" except for the
name, shouldn't it function the same.
There is no need to see sample code because the code does not change THE
ONLY THING THAT IS CHANGED IS THE ID NAME ! and, I mean only the name...
the only plausible explanation would be the change within the css file
and that implies that there is something funny going on within that
file. Or are there unseen elements being kept "alive" when there is a
change in the nomenclature of the id?
Or does the browser keep things in memory or are the memory modules
having neuron crises?
As I have stated before, this is the kind of thing that drives one crazy
trying to understand the un-understandable.
>> I would logically assume that the
>> interpreter or whoever is operating this stuff would understand that the
>> page is using a different class, whether it is the same name as another
>> or not.
>
> I'm sorry, I don't know what you mean.
>
>> If I create still another class and start to format the various
>> sections of that class, I will wind up with the identical class as
>> #frame1.
>
> Again, I don't know what you mean.
>
>> So where is the logic here?
>
> Without seeing some clear test case links that reproduces the problem
> for us, I really can't comment about that.
>
>> It seems to me that what I am trying to do is logically and
>> intuitively clear
> > and simple.
>
> What you're trying to do really isn't clear to me. Being able to see
> the problem (and the underlying code) might help.
>
> -- 
> Benjamin Hawkes-Lewis
>


-- 
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Dee Ayy
Find the "Computed Style" and how it was inherited (cascaded).

In Safari, use Web Inspector.
In Firefox, use Firebug.
In Internet Explorer, use DebugBar.

All free as in $0.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] urgent CSS question

2009-05-22 Thread abdulazeez alugo


 

> Date: Fri, 22 May 2009 11:55:55 -0400
> From: phps...@gmail.com
> To: oorza...@gmail.com
> CC: nos...@mckenzies.net; php-general@lists.php.net
> Subject: Re: [PHP] urgent CSS question
> 
> On Fri, May 22, 2009 at 11:50 AM, Eddie Drapkin  wrote:
> 
> > Moral of the story: if you use css classes ending in numbers, you're
> > probably a rapist and/or murderer.
> >
> > On Fri, May 22, 2009 at 11:46 AM, Shawn McKenzie  > >wrote:
> >
> > > Daniel Brown wrote:
> > > > On Fri, May 22, 2009 at 08:02, Michael A. Peters 
> > > wrote:
> > > >> If I recall - it is illegal to end a css class name is a number.
> > > >> I'm not positive though.
> > > >
> > > > You are correct. They just executed a man in Texas for this.
> > > >
> > >
> > > Yes we did, however that infraction is what led to the discovery of his
> > > multiple rapes and brutal murders.
> > >
> > > Damn yanks.
> > >
> > > --
> > > Thanks!
> > > -Shawn
> > > http://www.spidean.com
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> 
> 
> Or don't go to Texas!


Or simply avoid CSS and revert to pure HTML. At least there won't be 
convictions for that.

Alugo Abdulazeez.

_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx

Re: [PHP] urgent CSS question

2009-05-22 Thread Bastien Koert
On Fri, May 22, 2009 at 11:50 AM, Eddie Drapkin  wrote:

> Moral of the story: if you use css classes ending in numbers, you're
> probably a rapist and/or murderer.
>
> On Fri, May 22, 2009 at 11:46 AM, Shawn McKenzie  >wrote:
>
> > Daniel Brown wrote:
> > > On Fri, May 22, 2009 at 08:02, Michael A. Peters 
> > wrote:
> > >> If I recall - it is illegal to end a css class name is a number.
> > >> I'm not positive though.
> > >
> > > You are correct.  They just executed a man in Texas for this.
> > >
> >
> > Yes we did, however that infraction is what led to the discovery of his
> > multiple rapes and brutal murders.
> >
> > Damn yanks.
> >
> > --
> > Thanks!
> > -Shawn
> > http://www.spidean.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>


Or don't go to Texas!
-- 

Bastien

Cat, the other other white meat


Re: [PHP] urgent CSS question

2009-05-22 Thread Eddie Drapkin
Moral of the story: if you use css classes ending in numbers, you're
probably a rapist and/or murderer.

On Fri, May 22, 2009 at 11:46 AM, Shawn McKenzie wrote:

> Daniel Brown wrote:
> > On Fri, May 22, 2009 at 08:02, Michael A. Peters 
> wrote:
> >> If I recall - it is illegal to end a css class name is a number.
> >> I'm not positive though.
> >
> > You are correct.  They just executed a man in Texas for this.
> >
>
> Yes we did, however that infraction is what led to the discovery of his
> multiple rapes and brutal murders.
>
> Damn yanks.
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] urgent CSS question

2009-05-22 Thread Shawn McKenzie
Daniel Brown wrote:
> On Fri, May 22, 2009 at 08:02, Michael A. Peters  wrote:
>> If I recall - it is illegal to end a css class name is a number.
>> I'm not positive though.
> 
> You are correct.  They just executed a man in Texas for this.
> 

Yes we did, however that infraction is what led to the discovery of his
multiple rapes and brutal murders.

Damn yanks.

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Ashley Sheridan
On Fri, 2009-05-22 at 10:37 -0400, Daniel Brown wrote:
> On Fri, May 22, 2009 at 08:02, Michael A. Peters  wrote:
> >
> > If I recall - it is illegal to end a css class name is a number.
> > I'm not positive though.
> 
> You are correct.  They just executed a man in Texas for this.
> 
> -- 
> 
> daniel.br...@parasane.net || danbr...@php.net
> http://www.parasane.net/ || http://www.pilotpig.net/
> 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1
> 
They executed someone for this and still voted Bush in? Sheesh!

I've never had any problems with ending classes with numbers, actually
using it on a site at the moment that highlights keywords, by enclosing
said words within  tags, where x is a number.
No bugs in any browsers we've tested: IE, Fx, Opera, Safari, Chrome,
Konqueror.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Daniel Brown
On Fri, May 22, 2009 at 08:02, Michael A. Peters  wrote:
>
> If I recall - it is illegal to end a css class name is a number.
> I'm not positive though.

You are correct.  They just executed a man in Texas for this.

-- 

daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Ashley Sheridan
On Fri, 2009-05-22 at 13:19 +0100, Benjamin Hawkes-Lewis wrote:
> On 22/5/09 13:02, Michael A. Peters wrote:
> > If I recall - it is illegal to end a css class name is a number.
> 
> Those are actually id names not class names, but it's not illegal in 
> either case.
> 
> HTML "id" attributes must follow this:
> 
> http://www.w3.org/TR/html401/types.html#type-id
> 
> XML "id" attributes must follow this:
> 
> http://www.w3.org/TR/REC-xml/#NT-Name
> 
> The "class" attribute is a CDATA list:
> 
> http://www.w3.org/TR/html401/types.html#type-cdata
> 
> Pretty much the only thing illegal in a classname is whitespace.
> 
> You may be thinking of the restriction that HTML/XML "id" attributes may 
> not /begin/ with a number.
> 
> --
> Benjamin Hawkes-Lewis
> 
There are certain bugs in IE that can cause problems with using what it
considers reserved words for ID's or class names. I've run into problems
before, particularly when using DXHTML (you know what I mean!) with
elements that had ID's called 'name', etc, even when referencing the
elements correctly with the getElementByID() DOM call. Also, I believe
there used to be a bug in IE (not sure what versions) where classnames
that were the same as ID's caused problems.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Ashley Sheridan
On Fri, 2009-05-22 at 12:59 +0100, Benjamin Hawkes-Lewis wrote:
> On 22/5/09 12:49, PJ wrote:
> > Sorry, but no one suggested a mailing list for CSS and the W3 Schools
> > Forum has problems.
> 
> Actually, I did:
> 
> http://www.css-discuss.org/
> 
> > Why do I get completely different formatting with two identical classes?
> > I want to change part of the formatting on just one page on the site
> > using the exact same class with some changes so I don't modify other
> > pages. I copied div#frame to div#frame1 and changed the class on the
> > page to id="frame1". But now the page no longer displays the formatting
> > as with id="frame" - e.g.  produces 16px font-size instead of 12px.
> 
> This description is confusing. Can you please link to a minimal test 
> case showing the problem you're talking about, so that we can view your 
> code and ideally probe it with DOM inspectors like Firebug?
> 
> http://webkit.org/quality/reduction.html
> 
> may help you produce one.
> 
> In general, I'd suggest creating page-specific style variations by 
> sticking a class on the body (e.g.  ) and using 
> that as a hook to modify the styling of the class whose formatting you 
> want to be different.
> 
> .thing {
>  font-weight: bold;
> }
> 
> .article .thing {
>  font-style: italic;
> }
> 
> for example.
> 
> --
> Benjamin Hawkers-Lewis
> 
That hook on the body tag is a good one, which I wish I'd thought of a
few weeks back! I've been using PHP to pull in external stylesheets
based on the current script name for a project I'm working on, as each
page has unique tweaks on common elements. It's not like I don't even
use selectors even now!


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis

On 22/5/09 13:27, PJ wrote:

Ok, I have duplicate classes - #frame and #frame1.


Let's get our terminology straight:

ids are not classes; classes are not ids.

ids look like:

id="thing"

and are selected like:

#thing

classes look like:

class="thing other-thing"

and are selected like

.thing

An element may have zero or one IDs.

An element may have zero or more classes.

id is supposed to be unique within a given document.

The same classname may be used multiple times in the same document.

See:

http://css.maxdesign.com.au/selectutorial/advanced_idclass.htm


What I don't understand is why switching from #frame to #frame1 should
change formatting.


#frame targets an element with id="frame" while "frame1" targets an 
element with id="frame1". So I'm not sure what these have to do with one 
another.



The two classes are absolutely the same, the only
difference is the "1" in the name.


Which is to say they are utterly different, since they have different names.


I would logically assume that the
interpreter or whoever is operating this stuff would understand that the
page is using a different class, whether it is the same name as another
or not.


I'm sorry, I don't know what you mean.


If I create still another class and start to format the various
sections of that class, I will wind up with the identical class as
#frame1.


Again, I don't know what you mean.


So where is the logic here?


Without seeing some clear test case links that reproduces the problem 
for us, I really can't comment about that.



It seems to me that what I am trying to do is logically and intuitively clear

> and simple.

What you're trying to do really isn't clear to me. Being able to see the 
problem (and the underlying code) might help.


--
Benjamin Hawkes-Lewis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
Benjamin Hawkes-Lewis wrote:
> On 22/5/09 12:49, PJ wrote:
>> Sorry, but no one suggested a mailing list for CSS and the W3 Schools
>> Forum has problems.
>
> Actually, I did:
>
> http://www.css-discuss.org/
My apologies... wasn't at the top of my attention at that point. :-[
>
>> Why do I get completely different formatting with two identical classes?
>> I want to change part of the formatting on just one page on the site
>> using the exact same class with some changes so I don't modify other
>> pages. I copied div#frame to div#frame1 and changed the class on the
>> page to id="frame1". But now the page no longer displays the formatting
>> as with id="frame" - e.g.  produces 16px font-size instead of 12px.
>
> This description is confusing. Can you please link to a minimal test
> case showing the problem you're talking about, so that we can view
> your code and ideally probe it with DOM inspectors like Firebug?
Ok, I have duplicate classes - #frame and #frame1.
What I don't understand is why switching from #frame to #frame1 should
change formatting. The two classes are absolutely the same, the only
difference is the "1" in the name. I would logically assume that the
interpreter or whoever is operating this stuff would understand that the
page is using a different class, whether it is the same name as another
or not. If I create still another class and start to format the various
sections of that class, I will wind up with the identical class as
#frame1.  So where is the logic here? This is utterly incomprehesible
and seems to the the typical mess that we find in using CSS. It seems to
me that what I am trying to do is logically and intuitively clear and
simple.
I think you can see the implications of such confusion in creating a
different class - how can I rely on it doing what one would expect?
>
> http://webkit.org/quality/reduction.html
>
> may help you produce one.
>
> In general, I'd suggest creating page-specific style variations by
> sticking a class on the body (e.g.  ) and using
> that as a hook to modify the styling of the class whose formatting you
> want to be different.
>
> .thing {
> font-weight: bold;
> }
>
> .article .thing {
> font-style: italic;
> }
>
> for example.
>
> -- 
> Benjamin Hawkers-Lewis
>


-- 
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis

On 22/5/09 13:02, Michael A. Peters wrote:

If I recall - it is illegal to end a css class name is a number.


Those are actually id names not class names, but it's not illegal in 
either case.


HTML "id" attributes must follow this:

http://www.w3.org/TR/html401/types.html#type-id

XML "id" attributes must follow this:

http://www.w3.org/TR/REC-xml/#NT-Name

The "class" attribute is a CDATA list:

http://www.w3.org/TR/html401/types.html#type-cdata

Pretty much the only thing illegal in a classname is whitespace.

You may be thinking of the restriction that HTML/XML "id" attributes may 
not /begin/ with a number.


--
Benjamin Hawkes-Lewis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Michael A. Peters

PJ wrote:

Sorry, but no one suggested a mailing list for CSS and the W3 Schools
Forum has problems.
This is the only reliable mailing list with professionals, so please
excuse my off-path question as it is rather urgent.

Why do I get completely different formatting with two identical classes?
I want to change part of the formatting on just one page on the site
using the exact same class with some changes so I don't modify other
pages. I copied div#frame to div#frame1 and changed the class on the
page to id="frame1". But now the page no longer displays the formatting
as with id="frame" - e.g.  produces 16px font-size instead of 12px.
TIA



If I recall - it is illegal to end a css class name is a number.
I'm not positive though.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent CSS question

2009-05-22 Thread Benjamin Hawkes-Lewis

On 22/5/09 12:49, PJ wrote:

Sorry, but no one suggested a mailing list for CSS and the W3 Schools
Forum has problems.


Actually, I did:

http://www.css-discuss.org/


Why do I get completely different formatting with two identical classes?
I want to change part of the formatting on just one page on the site
using the exact same class with some changes so I don't modify other
pages. I copied div#frame to div#frame1 and changed the class on the
page to id="frame1". But now the page no longer displays the formatting
as with id="frame" - e.g.  produces 16px font-size instead of 12px.


This description is confusing. Can you please link to a minimal test 
case showing the problem you're talking about, so that we can view your 
code and ideally probe it with DOM inspectors like Firebug?


http://webkit.org/quality/reduction.html

may help you produce one.

In general, I'd suggest creating page-specific style variations by 
sticking a class on the body (e.g.  ) and using 
that as a hook to modify the styling of the class whose formatting you 
want to be different.


.thing {
font-weight: bold;
}

.article .thing {
font-style: italic;
}

for example.

--
Benjamin Hawkers-Lewis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] urgent CSS question

2009-05-22 Thread PJ
Sorry, but no one suggested a mailing list for CSS and the W3 Schools
Forum has problems.
This is the only reliable mailing list with professionals, so please
excuse my off-path question as it is rather urgent.

Why do I get completely different formatting with two identical classes?
I want to change part of the formatting on just one page on the site
using the exact same class with some changes so I don't modify other
pages. I copied div#frame to div#frame1 and changed the class on the
page to id="frame1". But now the page no longer displays the formatting
as with id="frame" - e.g.  produces 16px font-size instead of 12px.
TIA

-- 
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent problem PCRE or DOM help

2009-05-12 Thread Lenin


 Home | My Interface 

My Interface

DONT READ TABLE

Step-By-Step Instructions:

P tags
IMG tags

DONT READ
 

I am having trouble with the above HTML semantics. I just need to read the
content inside the TD with Class name text11(its the only class in the page
as well).
Need to omit the table inside as it contains Adsense ads.

Got to omit the first two A HREF tags as well. I'm not very good with PCRE
so failing to make it work.

Tried with DOMDocument but with the examples found I failed to achieve the
result.

$elements = $doc->getElementsById('table');

if (!is_null($elements)) {
  foreach ($elements as $element) {
echo "". $element->nodeName. ": ";

$nodes = $element->childNodes;
foreach ($nodes as $node) {
  echo $node->nodeValue. "";
}
  }
}

This above code only gets Texts inside but not Img.
Plz any help would be greatly appreciated.


Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Robert Cummings

On Mon, 2008-02-11 at 13:42 +0900, Michael Moyle wrote:
> Rob,
> 
> 
> > $reps = array
> > (
> > array
> > (
> > 'match'   => '##Uims',
> 
> Can you explain what the 'U' from #Uims does? Does it have to do with
> Unicode? I can't find it anywhere (preg_match doc, man perlre, man
> perlop).


It makes the match "Ungreedy". Look at the following example:

$text = "blah ... bleh";

If we match with the following:

preg_match_all( '##Uims', $html, $matches )

Then $matches will contain 2 matches...

1. blah
2. bleh

However if we match with the following:

preg_match_all( '##ims', $html, $matches )

Then $matches will only get 1 match...

1. blah ... bleh

This is because the default behaviour is greedy, it will match as much
as possible even if a shorter match exists.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Michael Moyle
Rob,


> $reps = array
> (
> array
> (
> 'match'   => '##Uims',

Can you explain what the 'U' from #Uims does? Does it have to do with
Unicode? I can't find it anywhere (preg_match doc, man perlre, man
perlop).

Thanks!
Michael

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Robert Cummings

On Sun, 2008-02-10 at 12:55 -0500, tedd wrote:
> At 12:38 PM -0500 2/10/08, Robert Cummings wrote:
> >On Sun, 2008-02-10 at 16:46 +0800, LKSunny wrote:
> >  > this i know already, but i think can do it single regex
> >
> >Considering you marked the email as urgent, perhaps you have better
> >things to do than try to squeeze your problem into a regex. Feel free to
> >post your single regex when you find it... a side note of how much time
> >you wasted would be most informative too.
> >
> >Cheers,
> >Rob.
> 
> Rob:
> 
> It's exchanges like this that piss me off.
> 
> The OP marked his post as urgent meaning that he needed an answer 
> immediately. You in turn, provide him elegant code that solves his 
> problem, and he replies "this i know already".
> 
> If the OP knew this already, then it wasn't urgent!
> 
> He certainly could have said "Here's my code -- can anyone reduce it 
> to a single regex?" But no, he takes advantage of our time by stating 
> a falsehood. I for one, won't be answering any of LKSunny's post.
> 
> Where do we get people like this?

There's a colony of them living under the really big rock at the end of
the yard :|

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Nathan Nobbe
On Feb 10, 2008 12:55 PM, tedd <[EMAIL PROTECTED]> wrote:

> Where do we get people like this?
>

the late-night homework challenge?

-nathan


Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread tedd

At 12:38 PM -0500 2/10/08, Robert Cummings wrote:

On Sun, 2008-02-10 at 16:46 +0800, LKSunny wrote:
 > this i know already, but i think can do it single regex

Considering you marked the email as urgent, perhaps you have better
things to do than try to squeeze your problem into a regex. Feel free to
post your single regex when you find it... a side note of how much time
you wasted would be most informative too.

Cheers,
Rob.


Rob:

It's exchanges like this that piss me off.

The OP marked his post as urgent meaning that he needed an answer 
immediately. You in turn, provide him elegant code that solves his 
problem, and he replies "this i know already".


If the OP knew this already, then it wasn't urgent!

He certainly could have said "Here's my code -- can anyone reduce it 
to a single regex?" But no, he takes advantage of our time by stating 
a falsehood. I for one, won't be answering any of LKSunny's post.


Where do we get people like this?

Cheers,

tedd


--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Robert Cummings

On Sun, 2008-02-10 at 16:46 +0800, LKSunny wrote:
> this i know already, but i think can do it single regex

Considering you marked the email as urgent, perhaps you have better
things to do than try to squeeze your problem into a regex. Feel free to
post your single regex when you find it... a side note of how much time
you wasted would be most informative too.

Cheers,
Rob.



> "Robert Cummings" <[EMAIL PROTECTED]> glsD:[EMAIL PROTECTED]
> >
> > On Sun, 2008-02-10 at 14:33 +0800, LKSunny wrote:
> >> //please run this script, you can get what problem i got
> >>
> >> $html = << >> aaa
> >>
> >> cfdfd
> >>
> >> sfs
> >> sfsrbbb
> >> sfds
> >>
> >> cc
> >> gd
> >> c
> >>
> >> ddd
> >> 123
> >> eof;
> >>
> >> /*
> >> i want replace any ||, like
> >> cfdfd
> >>
> >> sfs
> >> sfsrbbb
> >> sfds
> >> */
> >>
> >
> >  >
> > $reps = array
> > (
> >array
> >(
> >'match'   => '##Uims',
> >'check'   => '#bbb#',
> >'replace' => 'X',
> >),
> > );
> >
> > foreach( $reps as $criteria )
> > {
> >if( preg_match_all( $criteria['match'], $html, $matches ) )
> >{
> >foreach( $matches[0] as $match )
> >{
> >if( preg_match( $criteria['check'], $match ) )
> >{
> >$html = str_replace( $match, $criteria['replace'], $html );
> >}
> >}
> >}
> > }
> >
> > ?>
> >
> > This does what you want to $html, but it doesn't do it in a single
> > regex. I'm not sure it can be done with a single regex, and if it can, I
> > doubt it's simple. I don't feel like investigating too far :)
> >
> > Cheers,
> > Rob.


-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread LKSunny
this i know already, but i think can do it single regex

"Robert Cummings" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D:[EMAIL PROTECTED]
>
> On Sun, 2008-02-10 at 14:33 +0800, LKSunny wrote:
>> //please run this script, you can get what problem i got
>>
>> $html = <<> aaa
>>
>> cfdfd
>>
>> sfs
>> sfsrbbb
>> sfds
>>
>> cc
>> gd
>> c
>>
>> ddd
>> 123
>> eof;
>>
>> /*
>> i want replace any ||, like
>> cfdfd
>>
>> sfs
>> sfsrbbb
>> sfds
>> */
>>
>
> 
> $reps = array
> (
>array
>(
>'match'   => '##Uims',
>'check'   => '#bbb#',
>'replace' => 'X',
>),
> );
>
> foreach( $reps as $criteria )
> {
>if( preg_match_all( $criteria['match'], $html, $matches ) )
>{
>foreach( $matches[0] as $match )
>{
>if( preg_match( $criteria['check'], $match ) )
>{
>$html = str_replace( $match, $criteria['replace'], $html );
>}
>}
>}
> }
>
> ?>
>
> This does what you want to $html, but it doesn't do it in a single
> regex. I'm not sure it can be done with a single regex, and if it can, I
> doubt it's simple. I don't feel like investigating too far :)
>
> Cheers,
> Rob.
> -- 
> ..
> | InterJinn Application Framework - http://www.interjinn.com |
> ::
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
> `'
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-09 Thread Robert Cummings

On Sun, 2008-02-10 at 14:33 +0800, LKSunny wrote:
> //please run this script, you can get what problem i got
> 
> $html = << aaa
> 
> cfdfd
> 
> sfs
> sfsrbbb
> sfds
> 
> cc
> gd
> c
> 
> ddd
> 123
> eof;
> 
> /*
> i want replace any ||, like
> cfdfd
> 
> sfs
> sfsrbbb
> sfds
> */
> 

 '##Uims',
'check'   => '#bbb#',
'replace' => 'X',
),
);

foreach( $reps as $criteria )
{
if( preg_match_all( $criteria['match'], $html, $matches ) )
{
foreach( $matches[0] as $match )
{
if( preg_match( $criteria['check'], $match ) )
{
$html = str_replace( $match, $criteria['replace'], $html );
}
}
}
}

?>

This does what you want to $html, but it doesn't do it in a single
regex. I'm not sure it can be done with a single regex, and if it can, I
doubt it's simple. I don't feel like investigating too far :)

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Urgent Help Needed

2007-09-15 Thread Stut

vingupta3 wrote:

  Its been a whiling i am searching for "Sync Outlook
with MySQL via PHP". 


I want to synchronize Calendar events and Contacts
from Outlook with MySQL via PHP. 


Can you help me with it..


http://php.net/com

Here endeth the PHP involvement. Look up the Outlook COM objects in the 
MSDN documentation for help with those.



a very thanks in advance!


A very you're welcome on time.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent Help Needed

2007-09-15 Thread vingupta3
Hi,
  Its been a whiling i am searching for "Sync Outlook
with MySQL via PHP". 

I want to synchronize Calendar events and Contacts
from Outlook with MySQL via PHP. 

Can you help me with it..

a very thanks in advance!


~Vinay



   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Urgent::Implementing PKI in PHP

2007-06-05 Thread Jochem Maas
Renuka Marwah wrote:
> We have a website in PHP where we want to implement PKI. The scenario is
> that there would be some registered dealers who woud have to buy Digital
> signatures. When they come to our website they would input several
> information through PHP designed forms and use the digital signatures to
> sign the data.
> 
> We wanted to use OpenSSL for the same. However what I fail to understand
> is how to implement the OpenSSL functions for implementing the client side
> of this, which would involve encryption using Private key etc, since PHP
> would be parsed at the server only.
> 
> Please respond, it is an urgent requirement

just about every phper coming to the list has an urgent problem,
should you be given special treatment?

start SingTFW and reading about the relevant technology, e.g:

http://www.google.nl/search?q=PKI+web+browser

and then determine whether your requirement is actually possible (in so far as 
I understood it),
from what I gather there is no way to 'sign' the data in a form, the PKI
is used to authenticate and authorize the HTTP connection - which will be
running over SSL, given that fact why would you need to 'sign' the form data?

> 
> Thx
> Renuka
> 


some developer got laid off by an over priced executive who hired an offshore
team to replace said developer for a fraction of the cost, said team can't do 
the
work, and can't be bothered to figure out how, so they go to the nearest 
mailing list
to ask for a ready-made answer ... where they come across some talented 
developer
who has plenty of time to hand out high quality ready-made answers because he 
has
been recently laid off.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent::Implementing PKI in PHP

2007-06-04 Thread Renuka Marwah

We have a website in PHP where we want to implement PKI. The scenario is
that there would be some registered dealers who woud have to buy Digital
signatures. When they come to our website they would input several
information through PHP designed forms and use the digital signatures to
sign the data.

We wanted to use OpenSSL for the same. However what I fail to understand
is how to implement the OpenSSL functions for implementing the client side
of this, which would involve encryption using Private key etc, since PHP
would be parsed at the server only.

Please respond, it is an urgent requirement

Thx
Renuka


Re: [PHP] Urgent: Way to XML-parse data with tags?

2007-03-08 Thread Myron Turner

Myron Turner wrote:

Rob Gould wrote:


The problem I'm having is that the XML data that comes back from the 
host doesn't just have   tags.  It has n="eventname">datahere tags, and I don't know how to get the XML 
parser to read the values using that format.  (And I don't have 
control over the host)  As a first step, I just want to retrieve the 
"eventname", "venuename", and "venuecity" data from within the 
"result" tags at the bottom of the data.


I'm really hoping this is possible with PHP - - - can someone please 
steer me in the right direction and tell my what I should change in 
the below script?  The $tag value is not getting a value string, due 
to the XML-data


Here's my present script:



You'll get these from the attributes array, which is an associative 
array:


   The third parameter, /attribs/, contains an associative array with
   the element's attributes (if any).The keys of this array are the
   attribute names, the values are the attribute values.Attribute names
   are case-folded
    on the
   same criteria as element names.Attribute values are /not/ case-folded.

   From: 
http://www.php.net/manual/en/function.xml-set-element-handler.php



So $venuecity - $attrs['venuecity'], etc.

--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





OK.  I was able to get hold of the file.  Here's a small part of the 
listing:


  xphoenix;Paradise Valley;Greater Phoenix
  Remembering Amy
  REMEMBERING AMY
  3288076
  670;409;1957
  AZ

What you want to do here is to process the file, as you were doing, 
checking for the attribute value you want, then capture
the element data once the attribute name is found.  Here's a way to do 
that (not tested but should work):


$eventname = "";
$venuename = "";
$venuecity = "";
$found = "";

function startElement($parser, $name, $attrs) {
  global  $eventname, $venuename, $venuecity;

 // speed up the parsing since all the values have been found
 if(!empty($eventname)  && !empty($eventname) && !empty($eventname)  {
   return;
 }

   $found = $attrs['n'];
}

function characterData($parser, $data) {
   global  $eventname, $venuename, $venuecity;

 // speed up the parsing since all the values have been found
 if(!empty($eventname)  && !empty($eventname) && !empty($eventname)  {
   return;
 }

 switch ($found) {
   case 'eventname':
  $eventname = $data;
   break;

   case 'venuename':
  $venuename = $data;
   break;
  
   case 'venuecity':

  $venuecity = $data;
 break;
  }


}

--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Urgent: Way to XML-parse data with tags?

2007-03-08 Thread Myron Turner

Myron Turner wrote:

Rob Gould wrote:


The problem I'm having is that the XML data that comes back from the 
host doesn't just have   tags.  It has n="eventname">datahere tags, and I don't know how to get the XML 
parser to read the values using that format.  (And I don't have 
control over the host)  As a first step, I just want to retrieve the 
"eventname", "venuename", and "venuecity" data from within the 
"result" tags at the bottom of the data.


I'm really hoping this is possible with PHP - - - can someone please 
steer me in the right direction and tell my what I should change in 
the below script?  The $tag value is not getting a value string, due 
to the XML-data


Here's my present script:



You'll get these from the attributes array, which is an associative 
array:


   The third parameter, /attribs/, contains an associative array with
   the element's attributes (if any).The keys of this array are the
   attribute names, the values are the attribute values.Attribute names
   are case-folded
    on the
   same criteria as element names.Attribute values are /not/ case-folded.

   From: 
http://www.php.net/manual/en/function.xml-set-element-handler.php



So $venuecity - $attrs['venuecity'], etc.

--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






I misread your original xml.  It seems that your attribute names are "n"?
   n="eventname"
Then it's n which will be the key in the attributes array:
$attrs['n'].

Perhaps it would help if  you gave use the actual xml and not just this 
schematic.  The file your refer us to can't be downloaded.


--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Urgent: Way to XML-parse data with tags?

2007-03-08 Thread Myron Turner

Rob Gould wrote:


The problem I'm having is that the XML data that comes back from the 
host doesn't just have   tags.  It has n="eventname">datahere tags, and I don't know how to get the XML 
parser to read the values using that format.  (And I don't have 
control over the host)  As a first step, I just want to retrieve the 
"eventname", "venuename", and "venuecity" data from within the 
"result" tags at the bottom of the data.


I'm really hoping this is possible with PHP - - - can someone please 
steer me in the right direction and tell my what I should change in 
the below script?  The $tag value is not getting a value string, due 
to the XML-data


Here's my present script:

   
} elseif ($name == "RESULT") {

echo "found result";
$insideitem = true;
}
}

?>


You'll get these from the attributes array, which is an associative array:

   The third parameter, /attribs/, contains an associative array with
   the element's attributes (if any).The keys of this array are the
   attribute names, the values are the attribute values.Attribute names
   are case-folded
    on the
   same criteria as element names.Attribute values are /not/ case-folded.

   From:  
   http://www.php.net/manual/en/function.xml-set-element-handler.php



So $venuecity - $attrs['venuecity'], etc.

--PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/




Re: [PHP] URGENT: Break-lines disappearing.

2005-01-20 Thread Richard Lynch
> Where are the break-lines?!?!? I am really desperate! Please! I am
> using MySQL and PHP4.

Did you use "View Source" in your browser, or are you just seeing the data
dumped out to a browser which *IGNORES* line-breaks?...

When you print debug output, use "" and "" around it for
anything that's gonna have line breaks and whatnot in it.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] URGENT: Break-lines disappearing.

2005-01-20 Thread Bruno B B Magalhães
Hi you all,
I am having a very big problem... I have an article module in a system, 
when an user creates an article it's parsed (as everything else in the 
system) by an input class, after, it is checked for emptily and after 
is build an insert query... But the break-lines just disappear... I've 
tested right before parsing to the database build query function and 
the breaks are there! And the build query function is this:

	function insert_query($table='',$values='')
	{
		if($table != '' && $values != '')
		{
			foreach($values as $var=>$val)
			{
$insert_vars[] = $var;
$insert_vals[] = $val;
			}
			return $this->query('INSERT INTO '.$table.' 
('.implode(',',$insert_vars).') VALUES 
(\''.implode('\',\'',$insert_vals).'\') ');
		}
		else
		{
			return false;
		}
	}

And the sanitize function is:
function sanitize($input_data, $sanitize = true)
{
if(is_array($input_data))
{
foreach($input_data as $input_key=>$input_value)
{
$output_data[$input_key] = 
$this->sanitize($input_value,$sanitize);
}
return $output_data;
}
elseif($sanitize)
{
return addslashes($input_data);
}
else
{
return $input_data;
}
}
Where are the break-lines?!?!? I am really desperate! Please! I am 
using MySQL and PHP4.

Regards,
Bruno B B Magalhaes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Nick Wilson

* and then Dre declared
> I'm sorry about the capital letters
> and nop I'm not prepending any files at all

Can I get a look at the file?
-- 
Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
I'm sorry about the capital letters
and nop I'm not prepending any files at all


"M. Sokolewicz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> jeez.. stop using so many capital letters... it's considered as
> "yelling" or "shouting" when you do that.
>
> Are you prepending any file? (php.ini/.htaccess file.prepend setting)
>
> Dre wrote:
> > YES .. THAT WAS THE PROBLEM
> > EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS ..
> > THE PHP was not reading my php.ini and it was using default settings
> > "Mike Ford" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>On 04 September 2004 10:15, Dre wrote:
> >>
> >>
> >Warning: session_start():
> >>>
> >>>open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
> >>>
> >O_RDWR) failed: No such file or directory (2) in C:\Program
> >Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3
> >>
> >the session.save_path parameter in my php.ini file is as follows
> >**
> >session.save_path = "C:/WINDOWS/Temp"
> >**
> >>
> >>Believe me, the discrepancy in paths between the error message and your
> >
> > php.ini file setting means that PHP is *not* reading that php.ini.
Either
> > it's reading another one (which you say not), or it's not finding one at
all
> > and just using all its default settings.
> >
> >>Best thing to do at this point is probably to run a phpinfo and look to
> >
> > see where PHP tells you it's expecting to find php.ini.
> >
> >>(Just in case you're new to that game:  make a script containing
> >>
> >>   
> >>
> >>and request it in your browser.  In the block of information near the
top
> >
> > is the path of where it's expecting php.ini, labelled something like
> > "Configuration file (php.ini) Path" -- that's where your php.ini should
be.)
> >
> >>Cheers!
> >>
> >>Mike
> >>
> >>-
> >>Mike Ford,  Electronic Information Services Adviser,
> >>Learning Support Services, Learning & Information Services,
> >>JG125, James Graham Building, Leeds Metropolitan University,
> >>Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
> >>Email: [EMAIL PROTECTED]
> >>Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread M. Sokolewicz
jeez.. stop using so many capital letters... it's considered as 
"yelling" or "shouting" when you do that.

Are you prepending any file? (php.ini/.htaccess file.prepend setting)
Dre wrote:
YES .. THAT WAS THE PROBLEM
EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS ..
THE PHP was not reading my php.ini and it was using default settings
"Mike Ford" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
On 04 September 2004 10:15, Dre wrote:

Warning: session_start():
open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
O_RDWR) failed: No such file or directory (2) in C:\Program
Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3

the session.save_path parameter in my php.ini file is as follows
**
session.save_path = "C:/WINDOWS/Temp"
**
Believe me, the discrepancy in paths between the error message and your
php.ini file setting means that PHP is *not* reading that php.ini.  Either
it's reading another one (which you say not), or it's not finding one at all
and just using all its default settings.
Best thing to do at this point is probably to run a phpinfo and look to
see where PHP tells you it's expecting to find php.ini.
(Just in case you're new to that game:  make a script containing
  
and request it in your browser.  In the block of information near the top
is the path of where it's expecting php.ini, labelled something like
"Configuration file (php.ini) Path" -- that's where your php.ini should be.)
Cheers!
Mike
-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
YES .. THAT WAS THE PROBLEM
EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS ..
THE PHP was not reading my php.ini and it was using default settings
"Mike Ford" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 04 September 2004 10:15, Dre wrote:
>
> > > > Warning: session_start():
> > open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
> > > > O_RDWR) failed: No such file or directory (2) in C:\Program
> > > > Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3
>
> > > > the session.save_path parameter in my php.ini file is as follows
> > > > **
> > > > session.save_path = "C:/WINDOWS/Temp"
> > > > **
>
> Believe me, the discrepancy in paths between the error message and your
php.ini file setting means that PHP is *not* reading that php.ini.  Either
it's reading another one (which you say not), or it's not finding one at all
and just using all its default settings.
>
> Best thing to do at this point is probably to run a phpinfo and look to
see where PHP tells you it's expecting to find php.ini.
>
> (Just in case you're new to that game:  make a script containing
>
>
>
> and request it in your browser.  In the block of information near the top
is the path of where it's expecting php.ini, labelled something like
"Configuration file (php.ini) Path" -- that's where your php.ini should be.)
>
> Cheers!
>
> Mike
>
> -
> Mike Ford,  Electronic Information Services Adviser,
> Learning Support Services, Learning & Information Services,
> JG125, James Graham Building, Leeds Metropolitan University,
> Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
> Email: [EMAIL PROTECTED]
> Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Ford, Mike
On 04 September 2004 10:15, Dre wrote:

> > > Warning: session_start():
> open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
> > > O_RDWR) failed: No such file or directory (2) in C:\Program
> > > Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3
 
> > > the session.save_path parameter in my php.ini file is as follows
> > > **
> > > session.save_path = "C:/WINDOWS/Temp"
> > > **

Believe me, the discrepancy in paths between the error message and your php.ini file 
setting means that PHP is *not* reading that php.ini.  Either it's reading another one 
(which you say not), or it's not finding one at all and just using all its default 
settings.

Best thing to do at this point is probably to run a phpinfo and look to see where PHP 
tells you it's expecting to find php.ini.

(Just in case you're new to that game:  make a script containing

   

and request it in your browser.  In the block of information near the top is the path 
of where it's expecting php.ini, labelled something like "Configuration file (php.ini) 
Path" -- that's where your php.ini should be.)

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Nick Wilson

* and then M. Sokolewicz declared
> also, please remember you need to restart your webserver to actually 
> have PHP re-read the php.ini file. If you don't, then nothing will 
> change in run-time, even though the php.ini file might have changed *a lot*

heheheh! that's most probably it!


-- 
Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread M. Sokolewicz
Nick Wilson wrote:
* and then Dre declared
first of all thanks for ur reply

you're most welcome

there are no white spaces before the 
See the other reply, that sounds like it.. i was unaware of this...

is there a special format for writing paths in the php.ini file .. as I do
believe that I pointed correctly to the temp folder ???

Dont know. Try this though

ini_set'session.save_path', 'path/to/tmp'); 
at the top of your script.

It's an inelegant solution, you really need to get it right in the ini
file but it might help you debug it for now...
also, please remember you need to restart your webserver to actually 
have PHP re-read the php.ini file. If you don't, then nothing will 
change in run-time, even though the php.ini file might have changed *a lot*

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Nick Wilson

* and then Dre declared
> first of all thanks for ur reply

you're most welcome

> there are no white spaces before the  and I do have ONLY one php.ini file in the whole system drive (I'm sure of
> this)

See the other reply, that sounds like it.. i was unaware of this...

> is there a special format for writing paths in the php.ini file .. as I do
> believe that I pointed correctly to the temp folder ???

Dont know. Try this though
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
first of all thanks for ur reply
then ..
there are no white spaces before the  wrote in message
news:[EMAIL PROTECTED]
>
> * and then Dre declared
> > Warning: session_start():
open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
> > O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache
> > Group\Apache2\htdocs\ELBA\logme_in.php on line 3
>
> Check your php.ini for session.save_path=
> Im not sure where the temp dir is on a windows box, but point it to
> there and that should do it I think.
>
> > Warning: session_start(): Cannot send session cookie - headers already
sent
> > by (output started at C:\Program Files\Apache
> > Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache
> > Group\Apache2\htdocs\ELBA\logme_in.php on line 3
>
> Check the file for white space, this always gets me too ;-)
>
> Like this
> start of file
>
>  -
>
> See the new line above the php? that would cause that error. Check your
> file for somthing similar...
>
> > the session.save_path parameter in my php.ini file is as follows
> > **
> > session.save_path = "C:/WINDOWS/Temp"
> > **
>
> Damn! should have read the whole thing b4 replying! hehe you might
> have several php.ini's find the right one! on my gentoo box it's in
> /etc/apache2/conf/php.ini but there's also one in /etc/php.ini
>
> -- 
> Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Nick Wilson

* and then Dre declared
> Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
> O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache
> Group\Apache2\htdocs\ELBA\logme_in.php on line 3

Check your php.ini for session.save_path=
Im not sure where the temp dir is on a windows box, but point it to
there and that should do it I think.

> Warning: session_start(): Cannot send session cookie - headers already sent
> by (output started at C:\Program Files\Apache
> Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache
> Group\Apache2\htdocs\ELBA\logme_in.php on line 3

Check the file for white space, this always gets me too ;-)

Like this
start of file

 the session.save_path parameter in my php.ini file is as follows
> **
> session.save_path = "C:/WINDOWS/Temp"
> **

Damn! should have read the whole thing b4 replying! hehe you might
have several php.ini's find the right one! on my gentoo box it's in
/etc/apache2/conf/php.ini but there's also one in /etc/php.ini 

-- 
Nick W

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
Hi

I'm trying to make a small login system on my website, I'm using

 Apache 2.0.49 for testing locally
 and PHP 4.3.4
 on MS Windows XP Pro.

 the login script is in the file logme_in.php shown below

//

 
//

The problem is that every time I try to login I keep have the following
error messages


**
Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc,
O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache
Group\Apache2\htdocs\ELBA\logme_in.php on line 3

Warning: session_start(): Cannot send session cookie - headers already sent
by (output started at C:\Program Files\Apache
Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache
Group\Apache2\htdocs\ELBA\logme_in.php on line 3

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at C:\Program Files\Apache
Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache
Group\Apache2\htdocs\ELBA\logme_in.php on line 3

Warning: Unknown(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR)
failed: No such file or directory (2) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (/tmp) in Unknown on
line 0

***

the session.save_path parameter in my php.ini file is as follows
**
session.save_path = "C:/WINDOWS/Temp"
**

I'm kinda new at php and web development environment .. so any help will be
appreciated.

Thanks in advance
Dre,

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Jason Barnett
[EMAIL PROTECTED] wrote:
please give me a command line to startup 
MySQL using safe_mysqld

C:\>
---John Holmes...

HAHAHA  How'd you guess they would have a drive letter for their prompt :)
Oh, us poor, poor windows users.  Microsoft has "protected" us from it for so 
long that we've forgotten what the ol' command prompt looked like!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread holmes072000
> please give me a command line to startup 
> MySQL using safe_mysqld

C:\>

---John Holmes...

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread raditha dissanayake
Fitra Alfina wrote:
please give me a command line to startup MySQL using safe_mysqld
try the mysql list
--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Ed Lazor
It depends on your configuration, OS, etc...


> -Original Message-
> From: Fitra Alfina [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 27, 2004 7:37 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Urgent..my MYSQL dies..
> 
> please give me a command line to startup MySQL using safe_mysqld

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent..my MYSQL dies..

2004-07-27 Thread Fitra Alfina
please give me a command line to startup MySQL using safe_mysqld

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 22/05/2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URGENT: Space char in rewriterule

2004-07-27 Thread Miroslav Hudak (php/ml)
I think, the point, Curt wanted to point out was, that URI CAN NOT contain SPACE 
character and all SPACE characters (ord 32) are converted to %20 ... thus, space 
character in rewrite rule will lead to bogus URI... thus, browser will send %20 
instead and... dunno if apache will convert it to " " before applying the 
regexp, but if not, this will lead into your problem. Couldn't you just avoid 
that space by encoding?

m.
Robert Winter wrote:
It didn't work. Still the same problem.
Thanks
"Marek Kilimajer" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
Robert Winter wrote:
I have the following rewriterule:
RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L]
that transforms http://mysite.com/XXX to
http://mysite.com/redirect.php?XXX
and I need to also include to space char, for example
that transforms http://mysite.com/AB XX to
http://mysite.com/redirect.php?AB
XX
I didn't find a way to write the " " characters. I tested with
RewriteRule
^(([0-9]|[A-Z]|[a-z]|_| )+)$ redirect.php?$1 [L] but didn't work.
Thanks!
Rob
Did you try
RewriteRule ^([0-9A-Za-z_%]+)$ redirect.php?$1
?

--
Miroslav Hudak
developer & designer
http://hudak.info
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] URGENT: Space char in rewriterule

2004-07-26 Thread Robert Winter
It didn't work. Still the same problem.

Thanks

"Marek Kilimajer" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Robert Winter wrote:
> > I have the following rewriterule:
> >
> > RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L]
> >
> > that transforms http://mysite.com/XXX to
http://mysite.com/redirect.php?XXX
> >
> > and I need to also include to space char, for example
> >
> > that transforms http://mysite.com/AB XX to
http://mysite.com/redirect.php?AB
> > XX
> >
> >
> > I didn't find a way to write the " " characters. I tested with
RewriteRule
> > ^(([0-9]|[A-Z]|[a-z]|_| )+)$ redirect.php?$1 [L] but didn't work.
> >
> > Thanks!
> > Rob
> >
>
> Did you try
>
> RewriteRule ^([0-9A-Za-z_%]+)$ redirect.php?$1
>
> ?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URGENT: Space char in rewriterule

2004-07-26 Thread Curt Zirzow
* Thus wrote Robert Winter:
> I have the following rewriterule:
> 
> RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L]

And why is this so more urgent than any other email?  and what does
any of this have to any thing to do with PHP?  perhaps you meant
'OT:'

> 
> that transforms http://mysite.com/XXX to http://mysite.com/redirect.php?XXX
> 
> and I need to also include to space char, for example
> 
> that transforms http://mysite.com/AB XX to http://mysite.com/redirect.php?AB
> XX

read the rfc on http protocol, and URI definitions.

> 
> 
> I didn't find a way to write the " " characters. I tested with RewriteRule
> ^(([0-9]|[A-Z]|[a-z]|_| )+)$ redirect.php?$1 [L] but didn't work.

rtfm: http://apache.org/


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] URGENT: Space char in rewriterule

2004-07-25 Thread Marek Kilimajer
Robert Winter wrote:
I have the following rewriterule:
RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L]
that transforms http://mysite.com/XXX to http://mysite.com/redirect.php?XXX
and I need to also include to space char, for example
that transforms http://mysite.com/AB XX to http://mysite.com/redirect.php?AB
XX
I didn't find a way to write the " " characters. I tested with RewriteRule
^(([0-9]|[A-Z]|[a-z]|_| )+)$ redirect.php?$1 [L] but didn't work.
Thanks!
Rob
Did you try
RewriteRule ^([0-9A-Za-z_%]+)$ redirect.php?$1
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] URGENT: Space char in rewriterule

2004-07-25 Thread Robert Winter
I have the following rewriterule:

RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L]

that transforms http://mysite.com/XXX to http://mysite.com/redirect.php?XXX

and I need to also include to space char, for example

that transforms http://mysite.com/AB XX to http://mysite.com/redirect.php?AB
XX


I didn't find a way to write the " " characters. I tested with RewriteRule
^(([0-9]|[A-Z]|[a-z]|_| )+)$ redirect.php?$1 [L] but didn't work.

Thanks!
Rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent: PHP Programmer

2004-02-02 Thread Cesar Cordovez
REQ-2004-01
Programmer I
Position reference #166370
Job will go offline on 2/26/2004
ALeNet, Inc. is a privately held firm based in Coral Gables, Florida. We 
are a leading provider of enterprise system consulting services in the 
areas of eBusiness, enterprise resource planning (ERP) and customer 
relationship management (CRM).

ALeNet has teamed up with leading technology providers to offer the most 
comprehensive, integrated suite of ERP, CRM and web solutions available 
today.

Our industry recognized IT professionals will focus your ERP, CRM and 
e-business strategy efforts to achieve the greatest possible return on 
investment (ROI) and highest levels of customer service.

Qualifications
* Knowledge of: PHP (min. 5 years experience)
* HTML+CSS+JavaScript is a must.
* OOP
* SQL or MySQL (preferred)
Position description
Under the general supervision of the Product Development Manager, 
reviews, analyzes, and modifies programming systems including encoding, 
testing, debugging and installing to support an organization's business 
applications. Gathers requirements from users and creates specifications 
and develops code. Designs and writes codes to support existing 
application. Familiar with standard concepts, practices, and procedures 
using PHP, MySQL, HTML, and JavaScript. Relies on limited experience and 
judgment to plan and accomplish goals. Performs a variety of IT related 
tasks.

Additional information

Locations :  Miami, Fort Lauderdale,FL, United States
Percentage travel :  No Travel
Position starts :  2/15/2004
Openings available :  3
Work Types :  FullTime, Regular, Paid
Contact information

Cesar Cordovez
501 Brickell Key Drive
Suite 203
Miami, FL, United States
33131
Primary Phone : (305) 379- Ext: 15
Email : [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Fw: [PHP] Urgent Two Queries / Problems to be Solved----------Prashant Akerkar

2003-11-26 Thread Prashant

- Original Message -
From: Prashant A <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 5:20 PM
Subject: [PHP] Urgent Two Queries / Problems to be Solved--Prashant
Akerkar


>
> Dear Mr Jeffrey Dyke
>
>
> There are some queries regarding PHP 4.1.As you mentioned in php 4.1
> register_globals=off. are set for security reasons.
>
> Is it Required to have Form attribute  as enctype="multipart/form-data" if
i
> have a File Upload on the Particular Form.
>
>  enctype="multipart/form-data">
> i.e 
>
> I am Facing a Problem as when i am removing the enctype attribute in Form
> object, i am able to pass form values data
> from one form to another form i.e the destination form will able to
retrieve
> the form values, but from the source form when i keep the enctype
attribute
> in the source form object, i am unable to pass the values i.e the
> destination form is unable to retrieve
> the values passed from source form.
>
> Second Problem is I am unable to retrieve the image name using
> $_FILES['filename']['name']; in the Destination form.
> The source form has the file upload html tag
>
>  enctype="multipart/form-data">
> i.e 
> 
>
> Awaiting Your Prompt Reply,
>
> Thanks & Regards,
> Prashant S Akerkar
>
>
>
>
>
>
>
>
>
>
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Prashant A" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 8:03 PM
> Subject: Re: Unable to Retrieve HTML Form Values(test1.html) from a PHP
> Page(test1.php)
>
>
> >
> > you need to use $_POST['test1']
> >
> > http://www.php.net/register_globals
> >
> > php, by default has register_globals=off.  for security reasons...so
> you'll
> > need to use $_POST, $_GET, $_FILES, $_REQUEST etc.
> >
> > hth
> > jeff
> >
> >
> >
> >   "Prashant A"
> >   <[EMAIL PROTECTED]To:
> <[EMAIL PROTECTED]>
> >   thnyou.com>   cc:
> > Subject:  Unable to
> Retrieve HTML Form Values(test1.html) from a PHP Page(test1.php)
> >   10/28/2003 09:23
> >   AM
> >
> >
> >
> >
> >
> >
> >
> > Dear Sir
> >
> > Our Site is running on Linux/Apache/PHP/MySQL Combination.
> >
> > I am unable to retrieve the Values passed from HTML FORM(test1.html) in
a
> > PHP Page(test1.php)
> >
> > Is it something to do with the Web Server Settings or any thing
> > else...?
> >
> > The code is as follows;
> >
> > Test1.html
> >
> >
> > 
> > 
> >
> > Test Page
> > 
> >
> > 
> >
> >
> > 
> >
> > 
> >
> > 
> >
> >
> > 
> > 
> >
> > 
> >
> >
> >
> > Test1.php
> >
> >
> > 
> > 
> > Test Page
> > 
> >
> > 
> > 
> >
> >
> >  > echo $text1;
> > ?>
> >
> > 
> > 
> >
> > 
> >
> > After Submitting the form text1.html to text1.php by adding some text in
> > textbox text1, i am unable to print the textbox value
> > text1 in Text1.php page.
> >
> > Can you help me in this regard asap?
> >
> > Thanks & Regards,
> >
> > Prashant  S Akerkar.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent Two Queries / Problems to be Solved----------Prashant Akerkar

2003-11-26 Thread Prashant A

Dear Mr Jeffrey Dyke


There are some queries regarding PHP 4.1.As you mentioned in php 4.1
register_globals=off. are set for security reasons.

Is it Required to have Form attribute  as enctype="multipart/form-data" if i
have a File Upload on the Particular Form.


i.e 

I am Facing a Problem as when i am removing the enctype attribute in Form
object, i am able to pass form values data
from one form to another form i.e the destination form will able to retrieve
the form values, but from the source form when i keep the enctype attribute
in the source form object, i am unable to pass the values i.e the
destination form is unable to retrieve
the values passed from source form.

Second Problem is I am unable to retrieve the image name using
$_FILES['filename']['name']; in the Destination form.
The source form has the file upload html tag


i.e 


Awaiting Your Prompt Reply,

Thanks & Regards,
Prashant S Akerkar












- Original Message -
From: <[EMAIL PROTECTED]>
To: "Prashant A" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 8:03 PM
Subject: Re: Unable to Retrieve HTML Form Values(test1.html) from a PHP
Page(test1.php)


>
> you need to use $_POST['test1']
>
> http://www.php.net/register_globals
>
> php, by default has register_globals=off.  for security reasons...so
you'll
> need to use $_POST, $_GET, $_FILES, $_REQUEST etc.
>
> hth
> jeff
>
>
>
>   "Prashant A"
>   <[EMAIL PROTECTED]To:
<[EMAIL PROTECTED]>
>   thnyou.com>   cc:
> Subject:  Unable to
Retrieve HTML Form Values(test1.html) from a PHP Page(test1.php)
>   10/28/2003 09:23
>   AM
>
>
>
>
>
>
>
> Dear Sir
>
> Our Site is running on Linux/Apache/PHP/MySQL Combination.
>
> I am unable to retrieve the Values passed from HTML FORM(test1.html) in a
> PHP Page(test1.php)
>
> Is it something to do with the Web Server Settings or any thing
> else...?
>
> The code is as follows;
>
> Test1.html
>
>
> 
> 
>
> Test Page
> 
>
> 
>
>
> 
>
> 
>
> 
>
>
> 
> 
>
> 
>
>
>
> Test1.php
>
>
> 
> 
> Test Page
> 
>
> 
> 
>
>
>  echo $text1;
> ?>
>
> 
> 
>
> 
>
> After Submitting the form text1.html to text1.php by adding some text in
> textbox text1, i am unable to print the textbox value
> text1 in Text1.php page.
>
> Can you help me in this regard asap?
>
> Thanks & Regards,
>
> Prashant  S Akerkar.
>
>
>
>
>
>
>
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Urgent Help

2003-09-26 Thread Jason Sheets
Hello Ho,

If you are using a printer that is postscript enabled (like HP
LaserJet's) it is easy. Simply convert whatever you want to print to a
postscript file (there are several utilities on freshmeat.net they do
this) and then using PHP open a socket to the JetDirect card and send
the data. HP's JetDirect port is 9100. You could possibly install LPR or
CUPS on your PHP server and use the printer that way as well.

Jason

ho anson wrote:

>Hello, my name is anson, I am a year 2 student in Hong
>Kong Ive. I have decided to do a final year project by
>using php to make a wireless ordering system for
>restaurants. In my project, I decide to use php
>scripts to sent the order content or some information
>to different printers. I have 3 printers with differet
>Ip address. My question is can I use php script to
>send information to an intended IP printer? If it can
>be achieved, then what command I should use? or is
>there any example I can find in php.net?
>
> 
>I am looking forward to hearing from you reply.
>Thanks for your kind attention 
>
>=
>Ho King Man,
>Anson
>
>_
>最新鈴聲推介:[EMAIL PROTECTED]
>http://ringtone.yahoo.com.hk
>
>  
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Urgent Help

2003-09-26 Thread ho anson
Hello, my name is anson, I am a year 2 student in Hong
Kong Ive. I have decided to do a final year project by
using php to make a wireless ordering system for
restaurants. In my project, I decide to use php
scripts to sent the order content or some information
to different printers. I have 3 printers with differet
Ip address. My question is can I use php script to
send information to an intended IP printer? If it can
be achieved, then what command I should use? or is
there any example I can find in php.net?

 
I am looking forward to hearing from you reply.
Thanks for your kind attention 

=
Ho King Man,
Anson

_
最新鈴聲推介:[EMAIL PROTECTED]
http://ringtone.yahoo.com.hk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] URGENT BUSINESS RELATIONSHIP

2003-09-10 Thread MR BEN IFEANYI.
DEAR SIR,

MY NAME IS MR.BEN IFEANYI, THE MANAGER CREDIT AND
FOREIGN BILLS OF ECOBANK OF NIGERIA .I AM WRITING IN
RESPECT OF A FOREIGN CUSTOMER OF MY BANK WITH ACCOUNT NUMBER 14-255-2004/utb/t WHO 
DIED IN A PLANE CRASH
[ETHIOPIAN AIRLINE 961] WITH OTHER PASSENGERS ABOARD.
SIR, SINCE THE DEATH OF THIS CUSTOMER I PERSONALLY
HAVE WATCHED WITH KEEN INTEREST TO SEE THE NEXT
OF KIN BUT ALL HAS PROVED ABORTIVE AS NO ONE HAS COME
TO CLAIM HIS FUNDS OF USD15.5 M, [FIFTEEN MILLION FIVE
HUNDRED THOUSAND UNITED STATES DOLLARS] HAS BEEN WITH
MY BANK FOR A VERY LONG TIME. ON THIS NOTE I DECIDED
TO SEEK FOR WHOM HIS NAME SHALL BE USED AS THE NEXT OF
KIN AS NO ONE HAS COME UP TO BE THE NEXT OF KIN. AND
THE BANKING ETHICS HERE DOES NOT ALLOW SUCH MONEY TO
STAY MORE THAN FOUR YEARS, BECUASE AFTER FOUR YEARS
THE ACCOUNT WILL BE DECLARED DORMANT AND THE MONEY
FORFEITED TO THE BANK.
IN VIEW OF THIS, I DECIDED TO CONTACT YOU TO ACT AS
THE NEXT OF KIN. THE REQUEST OF A FOREIGNER AS NEXT OF
KIN IN THIS BUSINESS IS OCCASIONED BY THE FACT THAT
THE CUSTOMER WAS A FOREIGNER. I AGREED THAT 30% OF
THIS MONEY WILL BE FOR YOU AS A FOREIGN PARTNER IN
RESPECT OF PROVIDING AN ACCOUNT, WHILE THE REST WILL
BE FOR ME.
THEREAFTER I WILL VISIT YOUR COUNTRY FOR THE
DISBURSEMENT  OF THIS FUND. THEREFORE TO FACILITATE THE IMMEDIATE
TRANSFER OF THIS FUND TO YOUR ACCOUNT AS ARRANGED, YOU
MUST APPLY FIRST TO THE BANK AS A RELATION TO THE
DECEASED INDICATING YOUR BANK NAME, YOUR BANK
ACCOUNT NUMBER, YOUR PRIVATE TELEPHONE NUMBER, AND FAX
NUMBER FOR EASY COMMUNICATION AND LOCATION WHERE THE
MONEY WILL BE REMITTED. UPON THE RECEIPT OF YOUR
REPLY, I WILL SEND YOU BY FAX OR E-MAIL THE
SAMPLE APPLICATION AND THE NEXT STEP TO TAKE. I WILL NOT FAIL
TO BRING TO YOUR NOTICE THAT THIS BUSINESS IS HITCH
FREE AND THAT YOU SHOULD NOT ENTERTAIN ANY FEAR
AS THE WHOLE REQUIRED ARRANGEMENT HAS BEEN MADE FOR
THE TRANSFER. YOU SHOULD CONTACT ME IMMEDIATELY AS
SOON AS YOU RECEIVE THIS LETTER.

TRUSTING TO HEAR FROM YOU.

YOURS RESPECTFULLY,

MR BEN IFEANYI.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] URGENT: how to make a global "server temporarily down" page?

2003-09-05 Thread David T-G
Hi, all --

I thought I knew the trick for this, but I don't, and I have about an
hour to figure it out.

We're going to be taking down our web server for some unavoidable
maintenance and we want to put up a polite "we're not here" page rather
than just look like we went out of business.  We're going to bring up
httpd but leave all databases etcetc turned off.

How can i make a script, perhaps with an htaccess trick file, which will
take

  example.com/
  example.com/login.php
  example.com/index.php?some¶ms&etc

and always be found?  The trick I knew depended on looking in a
subdirectory so that I could fake the name, but this has to work from the
root.


TIA & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


RE: [PHP] Urgent help required for using Cron

2003-08-29 Thread Javier Tacon

It seems problems with permissions.

Can you pass me the output from "ls -la /var/spool/cron/"

May be exists a directory called root inside /var/spool/cron, so, if exists, you 
should delete it and try again.



-Mensaje original-
De: Safal Solutions [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 29 de agosto de 2003 3:37
Para: PHP General; Javier Tacon
CC: Bimal Jain
Asunto: RE: [PHP] Urgent help required for using Cron


Dear Javier,

We have done the following as per your suggestion
15 17 * * *   /path/to/your/php/binary  /path/to/your/script.php
After editing and saving crontab file the following message pops up at the
commond prompt -
crontab:installing new crontab
crontab:error renaming cron/tmp.1885 to cron/root
rename: is a directory
crontab: edit left in /tmp/crontab.1885

It did not work.  Please suggest what to do next?

Regards

Siva
-Original Message-
From: Javier Tacon [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 5:17 PM
To: Safal Solutions
Subject: RE: [PHP] Urgent help required for using Cron



For example, you want execute a script every day at 09:00 am:
$ crontab -e
And put this line:
0 9 * * *   /path/to/your/php/binary  /path/to/your/script.php
Crontab only can say if the cron was executed correctly or not, but it
doesn't say if your script in php has sent the mail correctly or not.
For debug if the mail was successfully sent, develope the debug into your
script.
You can use a some mail classes that they have debug options (for example I
use phpmailer v1.65).


-Mensaje original-
De: Safal Solutions [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 13:32
Para: PHP General
Asunto: [PHP] Urgent help required for using Cron


Hi friends,
  I have to send mail  to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time using
cron facility.
So, How can we do that? Can any one help me?.

I have another problem also.   We want Cron to indicate ( through a message
or a mail)  to us that a given task is completed or not.  In the present
case Cron does a task of sending a mail to a user.  After sending the mail
we want Cron to indicate to us that the mail was successfully sent or not
sent.  This we want to know through a program because we want to use this as
a part of automation of sending mails.

Thanking you,

Siva

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Urgent help required for using Cron

2003-08-29 Thread Safal Solutions
Dear Javier,

We have done the following as per your suggestion
15 17 * * *   /path/to/your/php/binary  /path/to/your/script.php
After editing and saving crontab file the following message pops up at the
commond prompt -
crontab:installing new crontab
crontab:error renaming cron/tmp.1885 to cron/root
rename: is a directory
crontab: edit left in /tmp/crontab.1885

It did not work.  Please suggest what to do next?

Regards

Siva
-Original Message-
From: Javier Tacon [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 5:17 PM
To: Safal Solutions
Subject: RE: [PHP] Urgent help required for using Cron



For example, you want execute a script every day at 09:00 am:
$ crontab -e
And put this line:
0 9 * * *   /path/to/your/php/binary  /path/to/your/script.php
Crontab only can say if the cron was executed correctly or not, but it
doesn't say if your script in php has sent the mail correctly or not.
For debug if the mail was successfully sent, develope the debug into your
script.
You can use a some mail classes that they have debug options (for example I
use phpmailer v1.65).


-Mensaje original-
De: Safal Solutions [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 13:32
Para: PHP General
Asunto: [PHP] Urgent help required for using Cron


Hi friends,
  I have to send mail  to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time using
cron facility.
So, How can we do that? Can any one help me?.

I have another problem also.   We want Cron to indicate ( through a message
or a mail)  to us that a given task is completed or not.  In the present
case Cron does a task of sending a mail to a user.  After sending the mail
we want Cron to indicate to us that the mail was successfully sent or not
sent.  This we want to know through a program because we want to use this as
a part of automation of sending mails.

Thanking you,

Siva

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Urgent help required for using Cron

2003-08-28 Thread Javier Tacon
For example, you want execute a script every day at 09:00 am:
$ crontab -e
And put this line:
0 9 * * *   /path/to/your/php/binary  /path/to/your/script.php
Crontab only can say if the cron was executed correctly or not, but it doesn't say if 
your script in php has sent the mail correctly or not.
For debug if the mail was successfully sent, develope the debug into your script.
You can use a some mail classes that they have debug options (for example I use 
phpmailer v1.65).


-Mensaje original-
De: Safal Solutions [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 13:32
Para: PHP General
Asunto: [PHP] Urgent help required for using Cron


Hi friends,
  I have to send mail  to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time using
cron facility.
So, How can we do that? Can any one help me?.

I have another problem also.   We want Cron to indicate ( through a message
or a mail)  to us that a given task is completed or not.  In the present
case Cron does a task of sending a mail to a user.  After sending the mail
we want Cron to indicate to us that the mail was successfully sent or not
sent.  This we want to know through a program because we want to use this as
a part of automation of sending mails.

Thanking you,

Siva

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Urgent help required for using Cron

2003-08-28 Thread Jay Blanchard
[snip]
  I have to send mail  to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time
using
cron facility.
So, How can we do that? Can any one help me?.

I have another problem also.   We want Cron to indicate ( through a
message
or a mail)  to us that a given task is completed or not.  In the present
case Cron does a task of sending a mail to a user.  After sending the
mail
we want Cron to indicate to us that the mail was successfully sent or
not
sent.  This we want to know through a program because we want to use
this as
a part of automation of sending mails.
[/snip]

Did you have a look at the tutorial I sent you?
http://www.unixgeeks.org/security/newbie/unix/cron-1.html
What, specifically, do you not understand?

1. From the command line type "crontab -e". This brings up the cron list
in vi
2. type "i" for the insert command
3. on the last line type the time you would like the cron to run, along
with commands

15 3 * * * /usr/local/bin/php /path/to/my/mail_script.php

will run the PHP script each morning at 3:15 AM

4. Hit 'escape' and type :w! to save
5. type :q! to quit

The cron job will now run each morning at 3:15 AM

HTH!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Urgent help required for using Cron

2003-08-28 Thread [EMAIL PROTECTED]
Hi

briefly: you need to create a cron job by typing crontab -e at the 
command line.
each line in the crontab has five fields which define the time at which 
the cron job will run.
more info in man cron and man crontab.

Cron sends a mail to the owner of the job when a job fails. you can pipe 
it to a program (this has been discussed extensively in this group this 
week so i will not go into details)

all the best

Safal Solutions wrote:

Hi friends,
 I have to send mail  to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time using
cron facility.
So, How can we do that? Can any one help me?.
I have another problem also.   We want Cron to indicate ( through a message
or a mail)  to us that a given task is completed or not.  In the present
case Cron does a task of sending a mail to a user.  After sending the mail
we want Cron to indicate to us that the mail was successfully sent or not
sent.  This we want to know through a program because we want to use this as
a part of automation of sending mails.
Thanking you,

Siva

 



--
http://www.raditha.com/php/progress.php
A progress bar for PHP file uploads.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Urgent help required for using Cron

2003-08-28 Thread Safal Solutions
Hi friends,
  I have to send mail  to people automatically at specified time . Our
environment is RedhatLinux 7.3 , Apache ,mysql and php. I am writing a
program in php to send the mail if some
Condition is met. I want to activate this program at specified time using
cron facility.
So, How can we do that? Can any one help me?.

I have another problem also.   We want Cron to indicate ( through a message
or a mail)  to us that a given task is completed or not.  In the present
case Cron does a task of sending a mail to a user.  After sending the mail
we want Cron to indicate to us that the mail was successfully sent or not
sent.  This we want to know through a program because we want to use this as
a part of automation of sending mails.

Thanking you,

Siva

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] URGENT PROPOSAL

2003-08-18 Thread MRS EKI OMORODION
MRS. EKI OMORODION
#8 Queens Drive Ikoyi
Lagos.
Email:[EMAIL PROTECTED]

INTRODUCTION: l am Mrs. Eki Omorodion l know this proposal will come to
you as a surprise because we have not met before  either hysically or
through correspondence.
I have no doubt in your ability to handle this proposal involving huge
sum of money.

THE SUBJECT: MY HUSBAND CHIEF JOSEPH OMORODION (NowLate)
was the Royal Head of my Community, JESSE (an oil rich town) in Nigeria.
My late husband’S community produces 3.5%  of the total crude oil
production in Nigeria and 0.5%  of the Dollar value of each barrel is
paid to my husband as royalty by the Federal Government.

My husband was also the Chairman of  OMPADEC,Jesse branch.
In his position as the Royal head and Chairman of the OMPADEC, Jesse
branch,he made some money which he left for me and our children as
the only thing to inherit.
The money is Twelve Million US Dollars($12M).

Though this said fund accumulated  between the period 1976-1998.
Due to poor banking system in Nigeria and political instability as a
result of past Military rules (1985-1999), he deposited this
Money in a  Strong Room/safe with an open beneficiary in Apex Bank of
Nigeria pending when he would finish arrangement to transfer it broad
as a CONTRACT PAYMENT.
He  was planning this when he died late last year of Heart Attack.

THE PROPOSAL: Just before my husband died he called my attention to the
money and charged me to look for a foreigner who would assist me in the
transfer / investment of the funds abroad.
So l would be very grateful if you could accept to help me archieve
this great objective.

I promise to give you 20% of the total funds transferred to your vital
bank account as compensation for your assistance.
Five percent (5%)would be set aside to take care of all expenses we
may incure during the transaction.
To indicate your interest, contact me urgently and confidentially for
more information and the roles you will play in this business.
All the legal information concerning  this Money will be sent to you
as soon as we agree together.

Send your reply through this mail box, or see the note below

Yours faithfully,
MRS. Eki Omorodion.

N.B
I will like you to provide me immediately with your full names,
telephone and fax numbers to enable my eldest son Humphrey Omorodion to
contact you.
He shall handle this transaction from A-Z on behalf of the family.
Alternatively you can call him on his telephone  numbers
234-1-7767689, fax 234-1-7598907, fax 873-762-533-731
Ask him for the code and he shall respond GOODLUCK before discussion.
Just to be sure that you are speaking to him.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] URGENT PROPOSAL

2003-08-18 Thread MRS EKI OMORODION
MRS. EKI OMORODION
#8 Queens Drive Ikoyi
Lagos.
Email:[EMAIL PROTECTED]

INTRODUCTION: l am Mrs. Eki Omorodion l know this proposal will come to
you as a surprise because we have not met before  either hysically or
through correspondence.
I have no doubt in your ability to handle this proposal involving huge
sum of money.

THE SUBJECT: MY HUSBAND CHIEF JOSEPH OMORODION (NowLate)
was the Royal Head of my Community, JESSE (an oil rich town) in Nigeria.
My late husband’S community produces 3.5%  of the total crude oil
production in Nigeria and 0.5%  of the Dollar value of each barrel is
paid to my husband as royalty by the Federal Government.

My husband was also the Chairman of  OMPADEC,Jesse branch.
In his position as the Royal head and Chairman of the OMPADEC, Jesse
branch,he made some money which he left for me and our children as
the only thing to inherit.
The money is Twelve Million US Dollars($12M).

Though this said fund accumulated  between the period 1976-1998.
Due to poor banking system in Nigeria and political instability as a
result of past Military rules (1985-1999), he deposited this
Money in a  Strong Room/safe with an open beneficiary in Apex Bank of
Nigeria pending when he would finish arrangement to transfer it broad
as a CONTRACT PAYMENT.
He  was planning this when he died late last year of Heart Attack.

THE PROPOSAL: Just before my husband died he called my attention to the
money and charged me to look for a foreigner who would assist me in the
transfer / investment of the funds abroad.
So l would be very grateful if you could accept to help me archieve
this great objective.

I promise to give you 20% of the total funds transferred to your vital
bank account as compensation for your assistance.
Five percent (5%)would be set aside to take care of all expenses we
may incure during the transaction.
To indicate your interest, contact me urgently and confidentially for
more information and the roles you will play in this business.
All the legal information concerning  this Money will be sent to you
as soon as we agree together.

Send your reply through this mail box, or see the note below

Yours faithfully,
MRS. Eki Omorodion.

N.B
I will like you to provide me immediately with your full names,
telephone and fax numbers to enable my eldest son Humphrey Omorodion to
contact you.
He shall handle this transaction from A-Z on behalf of the family.
Alternatively you can call him on his telephone  numbers
234-1-7767689, fax 234-1-7598907, fax 873-762-533-731
Ask him for the code and he shall respond GOODLUCK before discussion.
Just to be sure that you are speaking to him.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] URGENT, READ AND REPLY IF IT'S FINE BY YOU.

2003-07-10 Thread muwangat
muwangatapio
[EMAIL PROTECTED]
.

 Firstly, I am Muwanga tapio, the first son and the Asst. chiarman of (muwanga's 
farms zimbabwe,)and my father Mr.Tapio Andrew one of the black farmers in Zimbabwe who 
was recently murdered in the land dispute in my country zimbabwe. I got your 
contact through your country's classified email address book hence decided to write 
you, Before the death of my father, he took me to Johannesburg to deposit the sum of 
USD,6 million (Six million United States dollars only), in one of the private security 
company, as he foresaw the looming danger in Zimbabwe, this money was deposited in a 
box as personal effect to avoid much demurrage from the security company.
  This amount was meant for the purchase of equipment for a Poultry farming 
project in Zimbabwe before the  introduction of the new Land Reform Act by Mr. Robert 
Mugabe wholly affecting the rich white farmers and targeting some few black farmers 
(i.e.my father mr. Ayagobe Robert)who are in surpport of the white farmers, and this 
resulted to the killing and mobbing by Zimbabwean war veterans who took advantage of 
the situation.

 It is against this background that, my family and I fled Zimbabwe for South 
Africa for safety but i am currently in the united kingdom(England) where i am seeking 
political asylum and am also looking for a reliable foreign partner who can stand as 
the beneficiary to claim this fund on my family's  behalf  since the law of united 
kingdom prohibits a refugee (asylum seeker) to open a bank account or be involved in 
any financial transaction throughout the territorial zone of united kingdom.

 I am faced with the responsibility of seeking for a genuine foreign partner whom 
we can transfer the beneficiaryship to without the knowledge of my government whom are 
bent on taking everything we have got. also the  South African government seems to be 
playing along with them, I am also faced with the dilemma of moving this fund out of 
South Africa for fear of going through the same experience in future because both 
countries have similar political history.
 As a man trying to start life all over again, I am seeking for a partner whom I 
can entrust my future and that of my family in his hands,  If you accept to assist us 
all I want you to do is to make an arrangements with the security company to clear the 
consignment (funds) from their affiliate office here in the united kingdom because i 
have already given directives for the consignment to be taking to the Netherlands from 
South Africa. But before then all modalities will have to be put in place, like change 
of ownership to the consignment.
  I have mapped out 5% of this money for all kinds of expenses incured in the 
process of this transaction, 20% for your assistance while the remaining 75% will be 
for my family and it will also be investment in your country.
  If you are willing to assist, please send to me the following informations,. 
Your full name, address, Passport or Drivers license number, your personal phone and 
fax number and Date of birth   to enable me change the beneficiaryship to your 
name.Contact me with the E-mail address while I implore you to maintain absolute 
confidentiality required in this transaction.i have no phone for now,but if you have 
one i can always try to call you privately.
  Yours faithfully,
  Muwanga Tapio.
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] URGENT MYSQL HELP!!

2003-03-02 Thread Stephen Craton
Hello,

I turns out I accidently over wrote my MySQL user table and now everything is out of 
wack. I overwrite it again with a backup install of MySQL and it's 
working...somewhat.. When I try logging in through phpMyAdmin (it's a hosted site with 
ssh access) I get this error:

MySQL Connection Failed: Access denied for user: '[EMAIL PROTECTED]' (Using 
password: NO)

Funn thing is I made the table user have a user with roo, no password, and all that. 
If you can fix this yourself or walk me through it I'd be much obliged!! I need help 
ASAP!! I'll email you the ssh account settings once you reply.

Thanks,
Stephen Craton
http://www.melchior.us



Re: [PHP] Urgent Help Needed removing \n\r

2003-02-14 Thread Ernest E Vogelsinger
At 23:12 14.02.2003, Daniel Negron/KBE said:
[snip]
>have run into a problem now, that every page I have edited has somehow
>corrupted most/all of the  and  tags.  so they look like  this
>
>  face="ARIAL, HELVETICA">
>
>Now when the page is read it actually prints out "" instead of changing the font or showing the IMAGE.  The font I
[snip] 

There must be a different problem since the tag is perfectly valid, even
with the spaces/newlines you are showing. If it prints our the HTML tags
have a look at the source if they didn't get encoded somehow (like )


-- 
   >O Ernest E. Vogelsinger
   (\)ICQ #13394035
^ http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Urgent Help Needed removing \n\r

Hi all,

Slight problem, I have about 200 pages of HTML stored in a mysqlDB.  I had
to manually edit some information on EVERY single page.  I used MySQL-Front
and edited these pages.  All of the tags were correct  and  I
have run into a problem now, that every page I have edited has somehow
corrupted most/all of the  and  tags.  so they look like  this



Now when the page is read it actually prints out "" instead of changing the font or showing the IMAGE.  The font I
am not so much worried about it is the image that is not showing up and the
there are too many pages to go through manually.

Can someone help me with a PHP script to go through the db and replace the
\n\r ?


Thank you,


---
-Daniel Negron

  // \\*
 /  _  __ ___  \Lotus Notes Admin / Developer
|  | |/ /| _ )  |   KB Electronic, Inc.
|  | ' < | _ \  |   12095 NW 39th Street
|  |_|\ \|___/  |   Coral Springs, FL. 33065
 \ \_\ /954.346.4900 x 122
  \\ // email: [EMAIL PROTECTED]

-   http://www.kbelectronics.com
---



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

Hey Vern,

PHP does not think you have the MySQL module installed. none of the mysql_*
commands are going to work. check the output of phpinfo() to verify. What
version of PHP are you running? Since you are using RPMs the only (helpful)
advice I can give is try re-installing the PHP rpm. Possibly it needs to
refresh itself. (I can offer some unhelpful advice like quit using RPMs and
compile from source...switch to gentoo linux instead of RedHat for a better
package manager...you know, stuff like that. But that's not helpful at the
moment!)  :)

=C=


* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com


-Original Message-
From: Vernon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2


After upgrading to MySQL 4.0.1.2 I ma getting the message :

Fatal error: Call to undefined function: mysql_connect() in
/home/penpals/pub/mysql.php on line 3

Please help my production server is down!



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

On Thursday 13 February 2003 20:42, Vernon wrote:
> This is not helping me. I know very well that I should not and I tried the
> upgrade on two other machines and all went wll.
>
> My problem still stands and a search does ntohiong but tell me to check
> that the path is correct. If it worked before then obviously the path is
> fine, unless something has changed.
>
> Please I need help getting this thing up now.

archives > Call to undefined function mysql_connect()

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
With clothes the new are best, with friends the old are best.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

For some reason I do not see any error logs for today.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

> -Original Message-
>  If it worked before then obviously the path is fine,
> unless something has changed.

Obviously something changed if it worked on 2 other servers. Check all your
logs.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

What are apache logs telling you?

Vernon wrote:


After upgrading to MySQL 4.0.1.2 I ma getting the message :

Fatal error: Call to undefined function: mysql_connect() in
/home/penpals/pub/mysql.php on line 3

Please help my production server is down!



 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

This is not helping me. I know very well that I should not and I tried the
upgrade on two other machines and all went wll.

My problem still stands and a search does ntohiong but tell me to check that
the path is correct. If it worked before then obviously the path is fine,
unless something has changed.

Please I need help getting this thing up now.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

On Thursday 13 February 2003 20:12, Vernon wrote:
> After upgrading to MySQL 4.0.1.2 I ma getting the message :
>
> Fatal error: Call to undefined function: mysql_connect() in

Search archive on the above.

> Please help my production server is down!

If it's critical shouldn't you test all upgrades on a development server 
before rolling out onto the production server?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
There never was a good war or a bad peace.
-- B. Franklin
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URGENT HELP NEEDED - After Upgrade to MySQL 4.0.1.2

Yes



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  1   2   3   >