Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-03-05 Thread Barry Smith
I know less about WordPress than I do about Joomla, but I did notice a
template site that I cannot find any support for (cool templates) which
supports both Joomla and WordPress, as well as HTML/CSS.
I know that there are lists of buttons which I was going to rely on PHP to
handle.
The problem with WordPress and Joomla is that the current webhost will
allow PHP, but will not allow MySQL.

:) I know... time to move the site to a FREE php/MySQL host.  I already
have one in mind, but the throughput from the host at a major ISP (Charter)
is hard to leave... since the client has been paying for that webhost for
over 20 years.  A GoDaddy hosted site I might be able to talk her into, in
a pinch... but she is a firm believer in the idea that you pay for quality.
It might be very hard convincing her to consider another webhost that isn't
local, and Charter is a local (non-toll-free) phone call away.

Thank you for the suggestion.  A WordPress site might actually be the
solution... if she is willing to leave Charter.
--
Barry Smith
c 704-497-4217
e scs.bns...@gmail.com

On Tue, Feb 26, 2013 at 11:22 PM, tamouse mailing lists <
tamouse.li...@gmail.com> wrote:

> Have you considered setting this up in wordpress?
>
>
>


Re: [PHP] Cold Intermediate Programmer trying to modularize website...

2013-02-26 Thread Barry Smith
Yes, Jim, and "tamouse",

Apologies for the length of this response.

I am asking for help organizing the rewrite of the site, from a LOT of
HTMLs that have 90% in common, containing a couple of php links to do a php
mail form and command, and an article... to a "template-article-footer"
format.

I am having a problem visualizing how I need to proceed (from the highest
level), so I was asking for opinions on how to organize the index.php plus
template.php plus home.article design... at the highest level.

>From the sounds of it ( I didn't bother to un-zip his file) it appears that
> he just wants to create a model template and fill in the center (the
> 'article'?) appropriately depending upon the user's request


That is basically the project.

I have used Joomla for sites like this before, but the business owner is
not tech-savvy (not a power-user) in the least.

Setting up Joomla for her site, teaching her how to navigate Joomla to
modify articles, and giving her the access to the articles that she wants
access to is WAY beyond what she is capable of and REALLY overkill for this
small website. Besides, she could destroy the whole site as Joomla admin or
a Joomla user very easily.

She wants access to some of the articles, ONLY to change the wording of
some articles (the article on the about page and the home page, and maybe a
"specials" page yet to be designed) but I am trying not to giving her the
ability to destroy the whole site because she has access to.  I want to
place .article files in a folder, and let her work on the articles.  I can
build a default article into the PHP if the document that she edits gets
deleted.  Yet she's a smart business owner... "if i have access to the
articles to change them and I mess up, I don't want the website to
disappear" was how she expressed it to me.

The other wrinkle (at a programming level) is that she wants a header in
every email that the website sends to the company, to track which link was
clicked.

I'm thinking that (as an example of the changes that I need to make to the
files contained in the zip )--

I. index.html would "require" index.php.
1) index.php would define variables for that page, i.e. a var
building="index" or "about" or "services" or "products", and then include
"template.php", a home.article file, and a footer.php .
2) template.php would use the "building" value to build each custom header
and left column and right column. Within the header, it would use the
variable "building" to send a label that identifies "building" and another
value "header" to "contact.php" (see more about "contact.php" later).
Programatically, template.php will highlight tab buttons at the top of the
page (if they need to be highlighted) and menu buttons in left column (if
they need to be highlighted) dependent on the value of "building", and in
column 2 choose the correct list of buttons to display in a vendor list
dependent on the value of "building".
3) footer.php would use the "building" value to build each custom footer
for the page.  Within the footer, it would use the variable "building" to
send a label that identifies "building" and another value "footer" to
"contact.php" (see more about "contact.php" later).

II. contact.php will bring up an email form, use the label passed in to
create a custom header to insert into the php mail command/function.

III/IV/V/VI. Each HTML in the site will have an associated php that calls
template, grabs any appropriate .article file, calls footer.

Does that structure make sense?

Are there gotchas, things to "verify" and "watch out for" that you have run
into doing similar projects?

As a past for this design procedure, I worked on a "sales agent" site years
ago that did a similar "build each page dependent on logged.in.user" ...
but the control for this project is not logged.in.user in this project...
the control is page.being.built .

Thank you for the input, and any links to online articles that I should
probably read, or topics that I should make sure I understand completely in
php.

Peace,
--
Barry Smith
c 704-497-4217
e scs.bns...@gmail.com


[PHP] Re: __get() accessor question (a bug maybe?)

2006-11-15 Thread Barry

TemuriI schrieb:
just a small idea.

public function __get() {...}

Might work *untested*

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: __get() accessor question (a bug maybe?)

2006-11-15 Thread Barry

TemuriI schrieb:

Hi all, here is the code I am having problem with:



class baseForm {
   private $_id = 10;

   function __get($member)
   {
   echo "Accessing member \"{$member}\" : \n";
   return $this->$member;
   }
   function checkID()
   {
   echo $this->_id."\n";
   }
}
class inputText extends baseForm
{
   function display()
   {
   $this->checkID();
   echo $this->_id."\n";
   }
}
$f = new inputText();
echo $f -> display();





Probably bcause its private and therefore only for that class?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Regular expression to find from start of string to first space

2006-08-08 Thread Barry

Dave M G schrieb:

PHP,

Shouldn't this regular expression select everything from the start of 
the string to the first space character:


$firstWord = preg_match('#^*(.*) #iU', $word);

It doesn't, so clearly I'm wrong, but here's why I thought it would:

The enclosing has marks, "#", I *think* just encloses the expression. I 
was told to use them before, but I can't find them here:

http://jp2.php.net/manual/en/reference.pcre.pattern.syntax.php

The caret, "^", says to start at the beginning of the line.

The first asterix, "*" after the caret says to use any starting character.

The space just before the second "#" is the closing character of my search.

The "(.*)" in the middle says to take anything in between the beginning 
of the line and the space.


"iU" says, "be case insensitive, and don't be greedy".

So, it should start at the beginning of the line and get everything up 
to the first space. But it doesn't work.


Where did I go wrong?

--
Dave M G

http://www.rexv.org/

This is a quite good site to learn and test regexpressions.

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Is this really a pdf?

2006-08-07 Thread Barry

Sjef schrieb:
Is it possible to recognize if a file for upload really is a pdf (like the 
function getimagesize retuns the file type of the image)?

Thanxs,
Sjef 

this "might" help

http://de3.php.net/manual/en/function.mime-content-type.php

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: UTF-8 With content-type text/xml problem.

2006-07-21 Thread Barry

Mathijs schrieb:

Hello ppl,

I have a big prob.

I have a page which post some input.
This input can be UTF-8 like chinese or other utf-8 chars.
Also i need it to return UTF-8 and it has to be xml.

For some strange reason this isn't working.

Small example.

PHP Code:
'."\n";
print ''.$_GET['test'].''."\n";
?>

as GET var fill in something like ?test=éëêæ

This will break it..
Only Opera does a good job. Firefox and IE both can't handle it.
If i remove the header Firefox goes well.
IE Still can't handle it.

I Just need simple XML with UTF8 data.

PS:
This also breaks database saving, it doesn't save correct.
And i have mbstring installed.


Thx in advance.


Is the output also UTF-8 encoded?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: I cannot forget you!

2006-07-11 Thread Barry

[EMAIL PROTECTED] schrieb:

your big love, ;-)


Well PHP is good  but is it that good?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: login problem

2006-06-26 Thread Barry

suresh kumar schrieb:

Hi,
 I am facing one problem.i previously mailed ,but there is no response,its 
running out of time.


There are responses. You should read them!

And we are here not for coding stuff for you, you totally misunderstand 
what this mailing list is for.


I told you last time.

PHP don't have functions specialized for that, and you have to use your 
brain to think about a way around that.


And ppl told you that this can lead you into problems.

I don't know where this here gets but you will doing you good to do some 
"own" research.


Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: session problem

2006-06-21 Thread Barry

weetat schrieb:
>>
>> Let me take a guess:
>> Your FORM action is action="http:// "
>>
>> Barry

yes i am
Thank for you help



Ookay ... no problem ... probably .

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: helping people...

2006-06-21 Thread Barry

Jochem Maas schrieb:

helping some people will get you no end of trouble.

and so it seems as though I'm going to be DoSSed by someone who uses
Outlook Express as their mail client. I guess it's monday somewhere.


It's the email from Rob W.

See further down in this list.

Barry


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: session problem

2006-06-21 Thread Barry

weetat schrieb:

Hi all,

 I have 2 php page , whenever i click the submit in 1st page , the
 $_SESSION['LIST_OF_DATA'] display nothing in the 2nd page.

 If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it 
displayed the data correctly.


Anybody have any ideas why php session behaviour is like that ?

Thanks - weetat

   below is the 1st page :

'Jumping',
'itemData'  => $arrayoffiles,
 'perPage' => 10,
'delta' => 8,
 'append' => true,
 'clearIfVoid' => true,
 'useSessions' => true,
  'closeSession' => true,
   );

   $pager = & Pager::factory($params);
   $data  = $pager->getPageData();
   $links = $pager->getLinks();
   $_SESSION['LIST_OF_DATA'] = $data;

   ?>


   below is second page :




Let me take a guess:
Your FORM action is action="http:// "

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: User Login Problem

2006-06-20 Thread Barry

suresh kumar schrieb:

Hi,
 I am facing one problem in my project.i want to restrict more than one 
user login in the same account .



Is there any functions available to check r we can implement using session.


Nothing specialized than that.

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Barry

Jochem Maas schrieb:

Rory Browne wrote:

Do you know who the list admin is?

php-general has been traditionally "admined" by users flaming people
posting
"bad content".

This doesn't work for spam.


just wait till we have spambots with AI and emotion subroutines ;-)


Oh yeah then i will have it to bring me some beer when i watch football :D

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: How to run one php app from another? RECAP

2006-06-16 Thread Barry

tedd schrieb:

1. There was the suggestion to use includes(). However, includes simply adds 
code into the current application. It does not terminate the parent nor start 
another application. It simply bloats the parent.


Well it would if the webpage showed would also be included.
You have one main code header which chooses what action to do and which 
code to load.

So every app would have that code header.
Applications run normally like that.

You could even have tha analyzing done with include.

But once output is made. You can't remove it.

That isn't possible with PHP.

Anything before that would not be seen by the user so you can do a lots 
of things before you output actually something.


Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Automatic email sending

2006-06-16 Thread Barry

Murtaza Chang schrieb:

Hi everyone, my website need to automatically send an email to people
when thier account is about to expire, but iam not sure how to do it.
In other words its easy to put a check if an account is about to
expire and send automatic email when admin logs in to system, but how
is it possible to do it in background.



Another solution.

Take the Page which is most viewed and put the function that checks in it.

So you have a very high possibility that it will run at least once a day.

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: File Download Headers

2006-06-16 Thread Barry

tedd schrieb:

At 1:44 AM -0400 6/16/06, Chris Shiflett wrote:

Richard Lynch wrote:

It is possible that all "modern" browsers have given
in to whichever johnny-come-lately 'standard' made
up the Content-disposition header.

The original RFC for it is dated June 1995, so it's not too recent. There are 
plenty of useful aspects of HTTP not defined in RFC 2616.


Content-type: application/octet-stream

There's no reason you can't use both.

Chris


Chris:

Barry says you can use these three:

header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");

Richard says only use this one:

header("Content-type: application/octet-stream");

And, you say use both.  Which both?

tedd


Either my three or the one richard mentioned.

Both are ok!

:)

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: tag and PHP

2006-06-16 Thread Barry

weetat schrieb:

Hi all ,

  I have a  for country in the php file . I would like to load 
the country and city belong to the country dynamically  from the database.


Anyone have ideas how to do it ?

Thanks
- weetat

www.php.net/foreach

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: File Download Headers

2006-06-15 Thread Barry

Chris Shiflett schrieb:

Barry wrote:

You can send every header twice, triple. a zillion
times if you want.


Sure, but you have to know how to use header():

http://php.net/header

"By default it will replace, but if you pass in FALSE as the second 
argument you can force multiple headers of the same type."


Regardless, I think Content-Disposition is the header you need, not 
Content-Type.


Yes. My fault, forgot the false. Sorry for that ;)

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: readdir problem with white spaces

2006-06-15 Thread Barry

Francisco Morales schrieb:
Hello, I the following problem with readdir 

 


When I read the directory, if the file has more than one "white spaces",
readdir only return me 


the file with one space ...

 


so if I have on the file system . "ROAD 1  005.JPG"  or "ROAD1
0005.JPG"  php readdir 


return me ROAD 1 005.JPG!!

 


while ($file = readdir ($dirlist))

   {

   if ($file != '.' && $file != '..')

   {   echo "FILE: $file";  -> ROAD 1 005.JPG

}

 


-rw-rw-r--  1 seaquist edi  125352 jun 15 12:06 ROAD 1 001.JPG

-rw-rw-r--  1 seaquist edi  157365 jun 15 12:06 ROAD 1 002.JPG

-rw-rw-r--  1 seaquist edi  115891 jun 15 12:07 ROAD 1 004.JPG

-rw-rw-r--  1 seaquist edi  135876 jun 15 12:07 ROAD 1 005.JPG

-rw-rw-r--  1 seaquist edi  103983 jun 15 12:07 ROAD 2  003.JPG

-rw-rw-r--  1 seaquist edi   92410 jun 15 12:07 ROAD 2  006.JPG

-rw-rw-r--  1 seaquist edi   75342 jun 15 12:07 ROAD 3  002.JPG

 


How can I fix this?

 


Thanks a lot

 



Key fingerprint = A232 A22F AEF0 1988 6ACB  99AF A18F A220 BD2E 8CD8

 




Replace whitespace with " " and the output will be right.

The browser don't outputs every whitespace (which is good!).

This might handle it ;)

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: CMS Typo 3 (Slightly 0T(?))

2006-06-15 Thread Barry

Ryan A schrieb:


How hard was it for you to learn it?

It's like a new language...

How useful has it been to you?
Very. Depends on what you. When you get into meodul coding you are very 
near to a extremly useable CMS system.

Support when you hit a programming wall?

The community is quite helpful.

Would you recommend it for a first CMS to me?


Well it's a very hard question.
Example question: learn Basic and get known of simple logic or start 
with C and OO programming.


Both ways have their pros and contras.

Have you ever coded a CMs so that you have slight basic knowledge of it?
That will be helpful.
Top3 is a very big Hammer when you start from scratch.
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: File Download Headers

2006-06-15 Thread Barry

Jochem Maas schrieb:

Barry wrote:

Barry, chances are Richard was already initiating downloads
when you were still eating from a bottle.

I don't think so well because the Zuse had no network capability.



I for myself use this:
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");


IIRC:
one Content-Type header per request is all your allowed,
php will overwrite the first to 'Content-Type' header calls with
the content

What?
You can send every header twice, triple. a zillion times if you want.
The browser at the end decides what to do with it.
PHP doesn't interfere here.
And i bet it will never do, because that would be extremely stupid.



Never had any problems with any browser.


have you ever used/tried Mosiac1.0?

Yes. Works fine.
But i don't get what the point is in having a 13 year old browser (which 
hasn't even HTML 2.0 support) beeing able to actually download stuff. Or 
optimize pages for it.


Sorry you would more having a problem actually getting to the download 
than the download itself.


This is such a usless conversation u want to start here.

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Simple blog software... Simple but clean code... suggestions?

2006-06-15 Thread Barry

Micky Hulse schrieb:

Hi,

I am looking for a very simple blog software... I would prefer something 
that functions well with CSS and is standards compliant.


I am getting tired of setting-up the bigger full-featured blogging 
packages for small/quick/simple sites. It would be nice to know what 
others people prefer.


TIA.  :)
Cheers,
Micky
Well if you have that often this case, i would prefer you code one for 
yourself.


Imho the best way :)

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Simulating a POST

2006-06-15 Thread Barry

Man-wai Chang schrieb:

Here is the new version:




{ 
	$NetGeoURL = "http://netgeo.caida.org/perl/netgeo.cgi?target=".$ip; 
	if($NetGeoFP = fopen($NetGeoURL,r))
	{ 
		ob_start();

fpassthru($NetGeoFP);
$NetGeoHTML = ob_get_contents();
ob_end_clean();
fclose($NetGeoFP);
}
return $NetGeoHTML;
}

if ($HTTP_POST_VARS['btnsubmit']) {
print_r(getLocationCaidaNetGeo($_POST['ip']));
} else {
?>










Ah forgot something.

You still are not able to fill out anything because it submittes itself 
automatically.


you have to remove that onload.

Otherwise the post will still be empty and it will reload itself again 
and again.


Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Simulating a POST

2006-06-15 Thread Barry

Man-wai Chang schrieb:

Here is the new version:


this should work.

Have you tested it?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: File Download Headers

2006-06-15 Thread Barry

Richard Lynch schrieb:

and are all you can find from Google?

O_o


Anybody?

What?!?


I for myself use this:
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");

Never had any problems with any browser.

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Simulating a POST

2006-06-15 Thread Barry
Man-wai Chang schrieb:
> I hit the script by http://server/haha.php?ip=192.168.1.1
> 
> But the script entered an endless loop. What's wrong?
> 
> 
> 
> 
> 
> 
> 
This is causing the reload.

It says : everytime page loads submit the form.
And since submitting a form is like reloading a page it will go over and
over again.

-- 
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: Setting headers for file download

2006-06-14 Thread Barry

Peter Lauri schrieb:

That did it, thanks...

Ok, my knowledge about HTTP is not the best. But how can you send three
different content-type headers? :)



There are not so different at all.
Just giving the browser the job to download that thing.

Every browser likes to interpret every content-type like he wants to.
They ignore mostly every type they dislike.

That's the problem you encounter in using firefox/IE.

Greets
    Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Setting headers for file download

2006-06-14 Thread Barry

Peter Lauri schrieb:

Best group member,

This is how I try to push files to download using headers:

header("Content-type: $file_type");
header("Content-Disposition: attachment; filename=$filename"); 
print $file;


It works fine in FireFox, but not that good in IE. I have been googled to
find the fix for IE, but I can not find it. Anyone with experience of this?

Best regards,
Peter Lauri


There ya go:
// fix for IE catching or PHP bug issue
header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, 
pre-check=0");

// browser must download file from server instead of cache

// force download dialog
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");

// use the Content-Disposition header to supply a recommended 
filename and

// force the browser to display the save dialog.
header("Content-Disposition: attachment; filename=".$path.";");

header("Content-Transfer-Encoding: binary");

header("Content-Length: ".filesize($file));

readfile($file);

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Sending UTF-8 mail with mail()

2006-06-13 Thread Barry

Peter Lauri schrieb:

How can I send UTF-8 mails with the mail() function. Right now I am doing:

mail('[EMAIL PROTECTED]', 'Subject', 'Message', 
"From: The Sender <[EMAIL PROTECTED]> \n" . 
"Content-Type: text/plain; charset=utf-8 \n" .

"Content-Transfer-Encoding: 7bit\n\n")

The message is being sent, but the UTF-8 specific characters are not being
presented. Is there any fix on this?

The messages etc are coming from a form. Is it possible to set the charset
for the form?

/Peter

$bodytext = utf8_encode($bodytext);
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Help with some clever bit operations

2006-06-13 Thread Barry

Niels schrieb:

Hi,

I have a problem I can solve with some loops and if-thens, but I'm sure it
can be done with bit operations -- that would be prettier. I've tried to
work it out on paper, but I keep missing the final solution. Maybe I'm
missing something obvious...

The problem: A function tries to update an existing value, but is only
allowed to write certain bits.

There are 3 variables:
A: the existing value, eg. 10110101
B: what the function wants to write, eg. 01011100
C: which bits the function is allowed to write, eg. 

With these examples, 1000 should be written.

How do I combine A, B and C to get that result?


addition probably?

Btw. the result of the addition would be : 111010101

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Video compression with php?

2006-06-12 Thread Barry

Merlin schrieb:

Hi there,

I am searching for a way to convert video during an upload
to a flash format including compression. Is there any php module
which does something like that? I know that there is a lot out there
for images, but for videos?

Thank you for any hint,

Merlin

google is your friend ;)

www.google.com

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry

Jochem Maas schrieb:

Barry wrote:

Jochem Maas schrieb:
 > I find a switch statement sometimes handy for creating a 'truth table'

like you describe (I sometimes find it easier to read and/or add 'if'
clauses):

switch (true) {
case ($grandmaAge >= $tableAge):
case ($grandmaAge < $houseAge):
case ($grandmaAge == array_sum($grandKids)):
bakeCookie();
break;
default:
haveABeer();
watchFootball();
}

functionally the above could just as well be an if statement - it's
pretty much
a question of personal preference.


Yeah true, it is better to view.
Is it the same as the if i stated? (the grandma one)


the example I gave does this:

iif any of the case expressions (they can be arbitrary statements of which the
complexity is up to you - as long as they return a boolean) equates to true then
you bake a cookie OTHERWISE (the default ;-) you drink beer and watch footy - 
which
given your german email address is rather apt right now :-P

I believe that is what you grandma example was aiming at
(I used artistic license with the beer and football part :-).


Well not if "any". The have "all" to be true :)

Well i don't want the grandma to be not as old as the table and older 
than the house age and still baking a cookie.


Only if all cases stated are true, i want to bake a cookie :)

( Yeah the wm is up and running ;) )



f*** 'short' the time taken to write a line is negligable compared to the
time taken to maintain, reread, change, enhance and/or adapt it.


Surely true but writing short doesn't have to mean to write unreadable 
stuff.


IF ($grandma >= $tableage
AND < $houseage
AND== array_sum($grandkids)
)
something like that (theoretically)



try to think in terms of maintainability and readability - and of course
performance (the length of a line of code says very little, if anything,
about it's performance) - jmho.


Yeah it's not a performance issue its more like having to code a lot 
less than ATM "with" having the same readability as now.

Just shorter :)

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry

Stut schrieb:

Jochem Maas wrote:

Stut wrote:
 

But it begs the question why you would want to do this?



it's a handy way to white list data. e.g.

if (in_array($_GET['yourarg'], $allowedValsForYourArg)) echo "nice arg 
dude";


(btw: no need to beg ;-)
  


I agree that the in_array function is useful, but the OP was asking for 
a way to shorten (a == 1 or a == 2). Maybe the question was poorly 
stated and meant to ask how to compare a variable to a larger number of 
values but that's not what I got from it. 

Well that's exactly what i wanted
if (a == 1 AND a == 2 OR a ==3 OR a == c_d OR a == my_function())

i wanted to write it like:
IF (a == 1 AND 2 OR 3 OR c_d OR my_function())

YI read it as an 'I want to

save my fingers a bit of typing' and wondered if I was missing the point.

well exactly. I want to save some typing.
Having rater long variables or associative arrays is much of typing
if ($db_array["my_fieldname"] != $other_db_array["my_other_fieldname"] 
OR $db_array["my_fieldname"] == 2 OR $db_array["my_fieldname"] == 
my_very_special_functionname())


and so on.

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry

Jochem Maas schrieb:
 > I find a switch statement sometimes handy for creating a 'truth table'

like you describe (I sometimes find it easier to read and/or add 'if' clauses):

switch (true) {
case ($grandmaAge >= $tableAge):
case ($grandmaAge < $houseAge):
case ($grandmaAge == array_sum($grandKids)):
bakeCookie();
break;
default:
haveABeer();
watchFootball();
}

functionally the above could just as well be an if statement - it's pretty much
a question of personal preference.


Yeah true, it is better to view.
Is it the same as the if i stated? (the grandma one)
it's one if but not multiple ones (if elseif elseif .. etc.)

The problem still is it's not that "short" ;)

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Short writage of clauses

2006-06-12 Thread Barry

Stut schrieb:

Barry wrote:
Well i do know that you can write IF as ( ? : ) but what i am asking 
about is something like this:


if (a = 1 OR a = 2)


I think you mean == not =.

Yeah. sorry ;)



is it anyway possible to write it like:
if (a = 1 OR 2)

I know this is wrong because "2" will always be true ...

Any infos on that would be nice :)


The only way I know of to do this sort of thing would be...

   if (in_array($a, array(1, 2)))

Hmm yes this is actually a shorter way.

But it has limits hasn't it?
if (in_array(a, array(date("d",time),CONSTANT_NAME,function_call(

Like that



But it begs the question why you would want to do this?


Oh, uhm well something like this probably:
If the age of my grandma is as old as the age of the table, lower than 
the age the house was build, equal to the summary of ages from the 
grandchilds, bigger than 50 but not higher than 70 AND only when she is 
as old as me i do have to bake a cookie


Something like that.


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Short writage of clauses

2006-06-12 Thread Barry

Hi everyone!

Well i do know that you can write IF as ( ? : ) but what i am asking 
about is something like this:


if (a = 1 OR a = 2)

is it anyway possible to write it like:
if (a = 1 OR 2)

I know this is wrong because "2" will always be true ...

Any infos on that would be nice :)

Greets
    Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Passing variables.

2006-06-08 Thread Barry

William Stokes schrieb:

Hello,

I've used like 3 hours to get this done but I can't figure this out. Hope 
someone here can help.


I have a form that a user can use to edit www pages. Page content is stored 
in DB as a HTML code. First user has to select, from  menu,  which 
page to edit. Then the selected page content html is retrieved to a 
 where it can be edited with tinyMCE editor. Then there's two 
buttons. Publish to save the edited content back to DB (no problems there) 
and Preview to open the full page layout in a popup window. The problem is 
that I can't pass the edited data from the  to the popup window. 
Here's last (desperate) attempt:



Hint: Fool around with the "target" property of HTML ;)

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: order of elements in $_POST super global

2006-06-08 Thread Barry

Ben Liu schrieb:

Hello All,

I'm using a form (method="POST") to collect 30 boolean values from the
end user using a series of checkboxes in the form. The form is
arranged in a table so that the 30 check boxes are not a long list but
rather three columns (with related items columnized). The problem is
when I iterate through the $_POST results:

The order in which I wish to present the checkboxes to the end user is
different than the order I want to have in the $_POST super global and
subsequently when I dump that information out to a text file.

What would be the best way to solve this?

1) Is there a way to present the checkboxes in a certain order, yet
have the data transmitted into the $_POST super global in a different
order?

2) Does it make more sense to process the $_POST super global array
and reorder the items within the array?

3) Some other method?

Thanks for any advice.

- Ben

1. Use Keys in your form like a[1],a[2]
2. order the array by usort (alphabetically or whatever u prefer)

that way => 2: yes it is.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] server sending notifications to clients

2006-06-08 Thread Barry

Angelo Zanetti schrieb:

kartikay malhotra wrote:

Hi All,

Is there a way for the server to notify the client about an event, 
provided

the client was online in the past X minutes?

To elaborate:

A client comes online. A script PHP executes (serves the client), and
terminates. Now if a new event occurs, how can the server notify the 
client

about that event?

Thanks
KM




what kind of event??


Server bored and fooling around with the neighbor servers hardware :P

But Ajax would be the best method using.

Anyway else isn't possible (well refreshing would be one way)

But since you don't want php files to execute forever you will have to 
stick to AJAX.


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] HTML mailing list

2006-06-07 Thread Barry

Anyone know any good HTML mailing list?

Sorry for OT but google don't give me any good lists, and probably 
somone here has a list which is good :)


My Problem:
I want to use "mailto:"; in one of my pages but i have to use umlauts 
(ü).
Thunderbird just works fine and is displaying me the bodytext as it 
should. But Outlook express isn't working.

It looks like it encodes it to URL like internally.
Hexadezimal numbers with a leading %

Any help or a mailing list would be nice :)

Thanks

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: File downloads

2006-06-07 Thread Barry

kartikay malhotra schrieb:

Dear All,

I have a HTTP server + MySQL database. Everytime a file is requested for
download, my PHP script loads the content from the database into a 
temporary

file (on the server). I then pass a URL to the client, with a link to this
file. The client can thus download the file at any time.

However, I can foresee many problems with this approach. One is, when to
delete the temporary file? Also with more than one client, this approach
would have to be refined. Security is also an issue: One user may read
another's files.

Can anyone kindly give me an alternative approach?

I reiterate, I cannot supply static URLs as the downloadable file is
generated on-demand.

Thanks & Regards
KM

Code a page that passes the appropriate headers for the file to the user 
and passthrough the file to the user.

That way no file is been generated and therefore nothing can be stolen.

I would do it like that

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: HTTP ERRORS Boolean

2006-06-07 Thread Barry

Rodrigo de Oliveira Costa schrieb:

Guys is there a way that I can call the func file("www.url.com") and
get a result true if there is a page and false if the page doesnt
exists (error 404)? the thing is I'm trying to retrieve a page but I
cant be sure that it exists so I need my script to try to access it
and if it cant access it then he should write something else.

Thanks,
Rodrigo

Read the comments of file, fopen, filegetcontents.

There might be a function already written i think i saw one there giving 
you the error.


Best way to handle would be to go over sockets and catch the 
headerinformation.

since 200 is OK and 404 would be GONE and so on.

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] When is "z" != "z" ?

2006-06-06 Thread Barry

Martin Alterisio schrieb:


is it really worthy the functionality supplied with the string ++ operator
as it is? I don't see its usefullness yet.


guess you want to order something by "name" not by number which might be 
false in some cases (1,10,2,20,21 ... and so on).


There it might be useful.

Well i don think it is wrong behavior in that way.

because having looping from a till z you wil get "aa" after z  so that 
means aa is "higher" as z internally.


but looping till "aa" dont brings out a-z like you get a-y when you loop 
till z (remember: for $i = a; $i <= z; $i++ gives the chars a-yz z right 
followed by "aa")


Well if you implement something like that into a programming language it 
should at least have some kind of logic behavior. Don't you think?


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Parse string with variables

2006-05-31 Thread Barry

Merlin schrieb:

Hi there,

I am trying to parse a plain text which contains variables. The string 
looks like this:


P=1
U=test
T=ok
P=2
U=test2
T=anything

How could I create arrays out of this. To be able to access the values 
like this:

echo $P[1];

parse_str does not work here and I could not find another function which 
does this.


Thank you for any hint,

Merlin


quite less infos you give.

echo $P[2] would output test or what?
$U["test"] or $U[1] = test ??

a hint. Uhm, use regexpressions to split the string and form variables 
out of it.


my guess.

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: SV: [PHP] One works, but the other doesn't

2006-05-23 Thread Barry

-
Well, I'm kind of a newbie at this. So you think this will solve my problem?

Why don't you test it?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Graphics generation.

2006-05-23 Thread Barry

Carles Xavier Munyoz Baldó schrieb:

Hi,
Is there any free PHP class with which I can create lines and bars graphics ?
For example, for represent temperature samples over time, population of a 
country over time, etc.


Greegints.
---
Carles Xavier Munyoz Baldó
[EMAIL PROTECTED]
http://www.unlimitedmail.net/
---


A very good one is:
JPgraph

http://www.aditus.nu/jpgraph/

Greets
Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: What's this in my dir list?

2006-05-18 Thread Barry

tedd schrieb:

Hi Gang:

When I list one of my directories, via:

echo("");
system("ls -l");
echo("");

I get:

-rw-r--r--  1 ancientstones psacln  6980 Apr 28 18:46 ancientstones.gif
-rw-r--r--  1 ancientstones psacln  2090 May 14 10:10 as.css
-rw-r--r--  1 ancientstones psacln   658 May  2 14:59 big_m.php
...

My question is, what is "psacln"?

In all the reference material I've looked at, that column is absent. Is 
that the "name" for the group?


Thanks.

tedd

groupowner of that file.
yes.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Range mktime?

2006-05-18 Thread Barry

Gustav Wiberg schrieb:

Hi

I wondew which range the mktime has? (in digits)
In my case it always start with 1.
something like
1147951344

Is this ALWAYS TRUE (that it would start with 1)

Best regards
/Gustav Wiberg

mktime is giving you the time in seconds since 1st april 1970

So no. It's not true.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Converting characters

2006-05-17 Thread Barry

Jonas Rosling schrieb:

Hi,
the PHP newbie is here again asking questions.
Is there anyway in PHP to convert none international characters so the are
displayed correct?
In my case I have lots of data in the database with å,ä and ö.

Thanks // Jonas

displayed where?
in html with htmlentities.
otherwise you should use a utf-8 encoding

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: A searching problem in lists

2006-05-17 Thread Barry

[EMAIL PROTECTED] schrieb:

Hello,

I'm not a Perl guru so I (still) have problems :-)

And this is not a Perl mailinglist so we have the same problem :)

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Help w/ 'headers already sent' and file download

2006-05-16 Thread Barry

Mike Walsh schrieb:
I have an application which I am working on which takes a file supplied by 
the user via a File Upload, peforms some processing on it, then prompts the 
user to download a generated CSV file.  What I would like to do is report 
some processing statistics prior to the user prior to sending the CSV steam.


My CSV export ends with this:


header("Content-type: application/vnd.ms-excel") ;
header("Content-disposition:  attachment; filename=CSVData." . 
date("Y-m-d").".csv") ;


print $csvStream ;

Unfortunately if I display any content prior to sending the CSV stream I get 
the 'headers already sent' error message.


Is there a way to both display a web page and send content to be saved by 
the user?  If someone knows of an example I could look at I'd be greatful.



Split the page.
One php page showing the content and the second generating the csv file.
Call that script with Javascript when the page is load.

That way you could display the content and download the file.

Greets
Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Views on e-commerce download tracking

2006-05-15 Thread Barry

Chris Grigor schrieb:

Hey all

Was just wondering what others have used on there e-commerce sites to 
manage digital downloads, for instance how to track if a user 
succesfully downloaded a complete file from you (what happens if there 
connection drops halfway through a download)


Is there something in php / javascript that could do this - 
javascript:oncomplete_ofdownloadfile send response to server

Anyone have any ideas?

Your views / suggestions are appreciated.
Chris

Well checking the logs is very useful for that.
(talking about the apache / webserverlogs)

I don't know any javascript doing something like that.

You can buffer the file to the client via fread or such and buffer only 
a few chunks and let php wait till he downloaded it.

On sucessfull download you might add a db entry or whatever.

Something like that though.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: phpEditIni has moved to phpeditini.net

2006-05-12 Thread Barry

Jeremy C O'Connor schrieb:

The new browser based editor of PHP.INI files on Windows, phpEditIni, has
moved to a new site: http://phpeditini.net Download it today!

--
info at phpeditini dot net

Not interesting though since it only works on Windows.

Uhm remember that most Webserevers are running with unix.

And you should remove those debug stuffs you left inside that file which 
you had commented out.


Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: check socket status

2006-05-10 Thread Barry

Antanas Vipartas schrieb:

Hi

I need to check if socket on some port is listened by some service.

How could I do this ?

thanks,
Antanas Vipartas

Knock at the port door ;)

Nah just kidding. you can try to connect via fsockopen.
I hope that port gives something back you can read out. because every 
port allows connections if it's not blocked or firewalled.


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: Upload File

2006-05-10 Thread Barry

Peter Hoskin schrieb:

But mysql can be quite a good spool though.

That way you don't have to code one for yourself.


That does not mean that there are not SIGNIFICANT ADVANTAGES to coding
something to use the filesystem - such as seek speed. When dealing with
large datasets of binary, filesystems are much quicker at seeking.


I was talking about a spool not a filesystem.
Do you actually read my comments?


As I said, images are binary and sql is ascii - does it sound suited to you?


No Problem with that.



Google, don't argue - many will agree with me.



No need to cry. ;)


Best wishes
    Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: Upload File

2006-05-10 Thread Barry

Peter Hoskin schrieb:

Renzo Clavijo wrote:

hi all..

I'm gonna be more precise:

I wrote a form with fields , then i need to
know how
to upload the files to the MySQL server (postgreSQL wold be
appreciated). It
implies: Which field(s) must have the table where I'll save the
image?. Is
there an example code to upload the file(s)?

Despite common belief, SQL is not suited to the storage of binary files.
SQL is based on ASCII.
Store your files on the filesystem, not SQL.


But mysql can be quite a good spool though.

That way you don't have to code one for yourself.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Upload File

2006-05-10 Thread Barry

Renzo Clavijo schrieb:

hi all..

I'm gonna be more precise:

I wrote a form with fields , then i need to know 
how
to upload the files to the MySQL server (postgreSQL wold be 
appreciated). It

implies: Which field(s) must have the table where I'll save the image?. Is
there an example code to upload the file(s)?

Thanks a lot.

Best Regards

RENZO CLAVIJO


Add a BLOB field in Database and make an INSERT
Best way would be to BASE64 encode your imagefile so you wont have any 
encoding problems (UTF-8 or such).

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] file Upload - checking file size before uploading

2006-05-10 Thread Barry

James Nunnerley schrieb:

Is there anyway to check the size of a file before it starts uploading it?
For instance, if the file is huge, and takes ages to upload, and is then
rejected by the server, the user will be somewhat annoyed!

 


I'm not even sure this is a php question!


No you can't.
Not with PHP.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Is there an easier way of doing this?

2006-05-10 Thread Barry

Chris Grigor schrieb:

morning all,

Is there an easier way of doing the following??

form1 submitting to form1.php


failed:" . mysql_error());


mysql_select_db('yourdbname', $link) or die ("selection failed: " . 
mysql_error());


if(isset($_POST[1])) {
   mysql_query("INSERT INTO menu (label) VALUES ('item 1 selected')");
   }
else {
   mysql_query("INSERT INTO menu (label) VALUES ('item 1 not selected')");
   }
if(isset($_POST[2])) {
   mysql_query("INSERT INTO menu (label) VALUES ('item 2 selected')");
   }
else {
   mysql_query("INSERT INTO menu (label) VALUES ('item 2 not selected')");
   }

mysql_close($link);
?>

So my question is, if I have a form with 20 + items which can be 
checkboxes, when submitted do I need to go through each one and add it 
to the datasbase or maybe some kind of loop?.


Thank you

Chris

SELECT ... INTO
http://dev.mysql.com/doc/refman/4.1/en/ansi-diff-select-into-table.html

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] SPANISH E-MAIL RESULT

2006-05-09 Thread Barry

Paul Scott schrieb:

On Tue, 2006-05-09 at 06:11 -0400, SPANISH SWEEPSTAKE LOTTERY wrote:

SPANISH SWEEPSTAKE LOTTERY


OK this is getting crazy. Is it "Spam the list day" today? Did I miss
the memo in the flurry of spam mails?

Looks like it time to tighten up the ol spam traps again...

--Paul

Looks like someone found a leak in that mailinglist.

Looks really like "spam day" today

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: blowfish result varies local > server

2006-05-08 Thread Barry
D_C schrieb:
> hi -
> 
> just wondering if anyone knows the answer to this.
> 
> i have an item being blowfish encrypted... with the same key, but on
> my local and remote machines it gives a different result...
> 
> any ideas on this? we're both running simliar (5.x) versions of PHP +
> the blowfish is an external (PEAR) library anyway...
> 
> very puzzling!
> 

やほ!
ここはもPEARメールリストがあります。
そこでをといかけますをください;)

じゃね〜♪

Hi!
Here is also a PEAR mailing-list.
You should ask there.

Greets

Barry

-- 
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Browser displays blank page, while request still beinghandled

2006-05-08 Thread Barry

Rolf Wouters schrieb:

Try adding some flush() calls to the script. That might get the 
browser to display some content.. Don't know whether it will work though.

That's something I haven't tried yet, so thanks for the tip.


You should show some progress bars or smiliar.
Having a blank page for too long might ppl to do an abort and the script 
gets f***ed up.


Better is to show some "please wait while copying" or something.
Let him know what you do and probably show it like:

Starting copying:
|:-> OO <:-< 100%
Finished Copying.

Starting generating XML stuff please wait:

And so on.

There are some really nasty outputs you can generate while the user has 
to wait.


And you wouldn't have a blank page anymore.

Greets
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Showing an image outside of the web folder

2006-05-05 Thread Barry

James Nunnerley schrieb:

I'm creating a file manager application, from which I want the user to be
able to edit/view files.

On the text side of things, it's pretty easy, however from the image side of
things, I'm not sure how to allow the user to view files outside of the web
folder.

Doing a "readfile ($file_location)" outputs the binary... can someone point
me in the direction of being able to translate that binary into a viewable
image file?

Cheers
Nunners

 




img src="showimage.php?location=\path\to\image.gif"

showimage.php :

readfile("location");

something like that

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: php and ssl

2006-05-04 Thread Barry

Schalk schrieb:

Greetings All,

I am currently implementing a form for a client that will run over 
https. Now, all is good and well except, for some reason when the form 
loads in IE the lock in the status bar displays for a short while and 
then goes away, it is fine in Firefox though. The way I have the form 
coded is something like this:


{ $name = 
$_POST['name'];

$street_address = $_POST['street_address'];

$to = 'address';
$subject = "subject";
$headers = "MIME-Version: 1.0\r\n".
  "Content-type: text/html; charset=iso-8859-1\r\n".
  "From: ".$name."\r\n".
  "Reply-to: ".$email."\r\n".   
   "Date: ".date("r")."\r\n";


// Compose message:
$message = "message";

// Send message
mail($to, $subject, $message, $headers);

// Thank the generous user
echo "Thank You!";
}
else {

?>
method="post">


Fill in your details



Name:
maxlength="150" />


   





The page in question is here: https://www.epda.cc/donation_eng.php

Is there any reason why coding the form like this will cause IE to think 
that the form is not secure and not loaded over https? Thank you in 
advance!


Since you load it framewise. is there probably a problem with the loaded 
frames?


It has nothing to do with PHP though.

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



Re: [PHP] printf and number_format rounding

2006-05-04 Thread Barry

Richard Lynch schrieb:

On Wed, May 3, 2006 12:25 pm, Duffy, Scott E wrote:

Are printf and number_format supposed to round?

echo ($hcount-$lcount)/$hilow." ";
echo number_format(($hcount-$lcount)/$hilow,2,'.','');


0.208333 0.21
0.145833 0.15
0.17 0.17
0.083 0.08
Printf ("%.2f",($hcount-$lcount)/$hilow);
Does the same.

It would appear to be. If there is a function to print just to the
digit
could you point me in the direction? So I would want 0.20  0.14   0.16
0.08 respectively.


http://php.net/substring might do what you want.

You'll have to calculate the decimal point for yourself and work from
there.


I use this function to add tax to a price.
Probably it will help you:

function addtax($price,$tax)
  {
bcscale(6);
$calc = bcmul(bcdiv($price,100,6),bcadd(100,$tax,6),6);
$output = bcadd (0,$calc,2);
$roundarray = explode (".",$calc);
if (substr($roundarray[1],2,1) >= 5)
{
$output = $roundarray[0]+(substr($roundarray[1],0,2)/100)+0.01;
}
else $output = $roundarray[0]+(substr($roundarray[1],0,2)/100)+0.0;
return $output;
  }

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] PHP Standard style of writing your code

2006-05-03 Thread Barry

Richard Lynch schrieb:

On Tue, May 2, 2006 4:07 am, Barry wrote:
[snip]

Barry;

I'm sorry, but you screwed up the indentation in the sample with
in-line brackets.

So, duh, it's unreadable.


It's not quite easy to intend in mail clients because that might be they 
are not suited for coding at all.




I can read them equally fast, because they are properly indented.

Now what?


And i can't. Now what?
See that's the problem.
We are talking about standarts and not a "Richard Lynch-Standard".
Sorry, it doesn't mean anything to this thread if you can read it good / 
fast or not.

Neither if i can.


No, I suffer like anybody else does when you're on that small a screen.
I coded BASIC in school on 12" monochrome screens and never had any 
problems reading code.

That might be because you just had one line above with File, Edit and such.
Nowadays the whole screen is filled with blinky toolboxes and code 
insight class showing thingies.
No wonder ppl start to compress the code as much as possible to have 
their beautiful usless stuff on screen.



Well, I suffer a little bit less than you do, as I've wasted fewer
lines. :-)


Really, you cant waste something where you have infinite of it.


Errr.  Okay Barry.  All the code written on small monitors is
inherently bad in your world-view. :-)


I told you: That's IMHO no way you can code good in such places.
Never said it's bad code just said it's bad to code!


I'm outta this thread.
Probably a good choice since you like to not read statements and 
comments properly.


Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry

tedd schrieb:
As you might have guessed, I *HATE* curly brackets with a vengeance, 
which is why I eschew both those styles and use PHP's alternative syntax:


And, I *LOVE* curly brackets -- before them we had repeat the opening 
statement statement in some fashion, such as FOR/NEXT, WHILE/WEND, 
IF/END IF. Curly brackets allow us to shorten the code and it looks a 
lot better to me.


At any rate. Brackets do really fast show where the beginning and the 
end is.

"IF" the brackets are set up in a logial order.

Besides any standards:
if (...) {
}
elseif (...)
{
} else {
}

This is actually we will see probably someday if noone gets a good 
standard up :P


Ahaha:
For I = 0 STEP 5;
NEXT I;

i love that XD

C64 rulez :P



PS: Barry, you and I use the exact same style -- you must be very 
intelligent. ;-)

Or very stupid, depends on who looks at us ^_^"

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry

Ford, Mike schrieb:

On 02 May 2006 14:19, Barry wrote:


Oh my god -- curly brackets and excessive indentation --

and curly brackets.  Just a mo, where did I put my
curly-brackets-and-whitespace-glasses?  Aaaahhh, that's better!!

As you might have guessed, I *HATE* curly brackets with a

vengeance, which is why I eschew both those styles and use
PHP's alternative syntax:

  if (...):
 if (...):
   // mmh
 else:
   // oh
 endif;
 while (...):
   if (...):
 // oh
   else:
 if (...):
   // where am i?
 else:
   // huh!?
 endif;
 // hmm
   endif;
 if (...):
   if (...):
 // blah
   endif;
   // blah
 endif;
  // blah
  endif;

Replacing { with : and } with endif doesn't make it more
readable at all.


Sez you. To me, it totally does, and by quite a large factor.

For you. Probably. But we are talking about "standards"



Just beeeautiful!

Still extreme compacted code.
I just see codesalad on first look, nothing else.


Fair enough.  Whereas to me, in any of the curly-brace styles, all I see on a 
first look is all those curly braces leaping up and trying to scratch my eyes 
with their sharp little pointy bits.  Each to his own preference.
Well i'd like to comment that sentence but something in me is telling me 
i should not.


We should all just say thank goodness PHP lets us each do it to our own 
preference -- I would daily curse the curly brackets if I had to use your 
style, and you would long to expand my compact code if you had to use mine.  
And at least we can all agree (we can, right?) that almost *any* kind of decent 
layout is better than:

  if (...): if (...): // mmh
  else: /* oh */ endif; while (...):
  if (...): /* oh */ else: if (...): // where am i?
  else: /* huh!? */ endif; /* hmm */ endif; if
   (...): if (...): /* blah */ endif;
  /* blah */ endwhile; /* blah */
  endif;

Now that's extreme compaction -- and, yes, I have seen code written like that!! 
;(

OMG. worst case scenario


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry



Oh my god -- curly brackets and excessive indentation -- and curly brackets.  
Just a mo, where did I put my curly-brackets-and-whitespace-glasses?  Aaaahhh, 
that's better!!

As you might have guessed, I *HATE* curly brackets with a vengeance, which is 
why I eschew both those styles and use PHP's alternative syntax:

  if (...):
 if (...):
   // mmh
 else:
   // oh
 endif;
 while (...):
   if (...):
 // oh
   else:
 if (...):
   // where am i?
 else:
   // huh!?
 endif;
 // hmm
   endif;
 if (...):
   if (...):
 // blah
   endif;
 // blah
 endif;
  // blah
  endif;


Replacing { with : and } with endif doesn't make it more readable at all.



Just beeeautiful!


Still extreme compacted code.
I just see codesalad on first look, nothing else.


 And, oh look, all the end tags tell me which kind of start tag they should 
match.  And the compiler.  Which leads to much more focussed error messages 
when you cock your structure up.  I can't remeber the last time PHP told me I 
had a syntax arror at the end of the file -- if I've got unbalanced start/end 
tags, the error message usually points to a line in the middle of the file, 
slap bang in the target area.

Yeah true. : and endif is nicer.
But it's a bit more about the formatting.

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: php mysql problem

2006-05-02 Thread Barry

Ross schrieb:

Just say I have a db

CREATE TABLE `mytable` (
  `id` int(4) NOT NULL auto_increment,
`fileName` varchar(50) NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;


when I add items they go id 1,2,3 etc. Whn I delete them gaps appear. 1, 3, 
7. I need to know


(a) when items are removed how can I sort the database to all the gaps are 
take out 1, 3, 7 becomes 1,2,3


Why do you auto_increment them then?

Normally it's very wrong to set back autoincremented values because you 
don't have any reference anymore.


So if ID X is causing an error it could be Article X or Article Y or 
article Z. You don't know because the database is shifting it around.
Add a second field called "sort" or something similiar and let it sort 
on that.

Or give it Article Numbers or whatever.


(b) allow the ids to be changed so the items can change position in the 
list. If I change id 3 to id 1 then everything else shifts down.

update id = id +1 WHERE id > X

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry

Richard Lynch schrieb:

On Tue, May 2, 2006 3:02 am, Barry wrote:

Rafael schrieb:

IMHO, vertical aligned brackets can be messy when nesting
relatively-small blocks (and seems to me like a lot of wasted space)

Huh?!
Show an example. I don't think you will be able to show one.
But this wasted space gives you a lot more insight into the code when
looking for loops,whiles,functions and such.


if (...)
{
  if (...)
  {
if (...)
{
  //blah
}
//blah
  }
  //blah
}


Sorry, where is this here better?
if (...) {
  if (...) {
if (...) {
  // blah
}
  //blah
  }
//blah
}

And then it goes like:
if (...) {
  if (...) {
// mmh
  } else {
// oh
  }
  while (...) {
if(...) {
  // oh
} else {
  if (...) {
// where am i?
} else {
  // huh!?
}
  // hmm
}
  if (...) {
if (...) {
  // blah
}
  // blah
  }
// blah
}
The same as above in the other style:
if (...)
{
  if (...)
  {
//mmh
  }
  else
  {
//oh
  }
  while (...)
  {
if (...)
{
  //oh
}
else
{
  if (...)
  {
//where am i?
  }
  else
  {
//huh!?
  }
  // hmm
}
  if (...)
  {
if (...)
{
  // blah
}
// blah
  }
  // blah
}

I know you could use elseif, but it's okay like this for presentation.

I bet you would have problems coding so much nested IFs or such, i did 
had them writing that first style above.



Bt.

Without indentation, it's just garbage.


I've seen ppl coding like that.
And using that inline bracket method just makes it so hard to read.



If you indent, you see it as you scroll through without actually
"reading" it no matter where you put the braces.


I give an example.
Probably you see for yourself what of those would be rad better and 
"faster" (^_^)


Your style:
function findetag() {
$wochentag = func_get_arg (0);
if (func_num_args() >= 2) {
$letztezeit = func_get_arg (1);
} else {
$letztezeit = time();
}
$count=0;
$taggefunden = false;
while (!$taggefunden) {
$count++;
$tagarray = getdate($letztezeit);
if (strtolower($wochentag) == strtolower($tagarray["weekday"])) 
{
$taggefunden = true;
} else {
// tag drauf
$letztezeit = $letztezeit+86400;
}
//endlosschleife abbrechen
if ($count > 20) {
$taggefunden = true;
$letztezeit = false;
}
}
return $letztezeit;
}

My style:
function findetag()
{
$wochentag = func_get_arg (0);
if (func_num_args() >= 2)
{
$letztezeit = func_get_arg (1);
}
else
{
$letztezeit = time();
}
$count=0;
$taggefunden = false;
while (!$taggefunden)
{
$count++;
$tagarray = getdate($letztezeit);
if (strtolower($wochentag) == 
strtolower($tagarray["weekday"]))
{
$taggefunden = true;
}
else
{
// tag drauf
$letztezeit = $letztezeit+86400;
}
//endlosschleife abbrechen
if ($count > 20)
{
$taggefunden = true;
$letztezeit = false;
}
}
return $letztezeit;
}

On "first" view i can clearly see what is happening without going 
"through" the code.




I frequently code on smaller monitors -- laptop, ancient desktop,
stripped-down flat-panel monitor that fits inside a rack-mount 2-RU
shelf in my sound booth...
Yes, and some people actually code on PALM handhelds and i have seeing 
ppl coding on mobile phones.
There won't fit your 80 chars per line style. Are you going to strip it 
down to 13 per line now because of that?


Yes you can actually code it that it fits in any small space so that you 
might even see it on a digital watch.


But that fact shouldn't be affecting coding style at all.


I can't

[PHP] Re: Syntax Oddity

2006-05-02 Thread Barry

Richard Lynch schrieb:

Does anybody have a rational explanation for what purpose in life the
following syntax is considered acceptable?




Well from PHPs point of view this is not a syntax error.


Note that the line with just $query; on it doesn't, like, "do" anything.

I suppose in a Zen-like sort of way, it "exists" and all, but, really,
what's the point?


There is none :)


Is there some subtle reason for this not being some kind of syntax
error that's way over my head or something?


Why should it be a syntax error?
You can do the same stuff in nearly every programming language besides PHP.
It's just useless.
The languages doesn't decide between usless and not useless.
Just between syntax okay and not okay.



This is not just philosophical minutiae -- Real-world beginners, with
no programming experience, actually type the above (albeit with a lot
more logic and whatnot in between) and then wonder why the query
didn't execute.

It even makes a wild sort of sense to type that, if you presume that a
beginner might not grasp the distinctions between PHP and MySQL and
the relationship yet.

Does anybody actually USE this idiom in any meaningful way?


Well i don't ;P

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Totally 0T - Spam

2006-05-02 Thread Barry

Ryan A schrieb:

Hey all,

I get a crapload of spam and I am pretty sure most of
you too as we work so much online, for the past few
months I joined a site called bluesecurity.com and
installed their "blue frog" client and now my spam has
dropped by over 70% 


Lol sorry these first few lines just sounded like one :D


I suggest you check it out and join yourself (its
free!) as the bigger the community grows the harder we
can fight back to get our mailboxes with only the mail
we wantand not with mail we didnt ask for, dont
want, didnt request etc.


My Mail will be sad because it wins 15 million bucks a week.
(Your email just won 15 million bucks!)
Too bad it's not me winning that money.
Probably my mail itself started to register everywhere because it wanted 
 to win more money lol ;P



I cant speak more highly of its service and will try
to answer any questions you may have about my
experience with it (offlist so as not to irritate
other list members)

Please note:
I dont get ANYTHING by you joining that site, except
probably less spam in my mailbox, no money, no
credit...nothing.


*wipes a tear off* my brave soldier :)

 __

Do You Yahoo!?

No, not really...

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] PHP Standard style of writing your code

2006-05-02 Thread Barry

Rafael schrieb:

IMHO, vertical aligned brackets can be messy when nesting
relatively-small blocks (and seems to me like a lot of wasted space)

Huh?!
Show an example. I don't think you will be able to show one.
But this wasted space gives you a lot more insight into the code when 
looking for loops,whiles,functions and such.



A couple of facts of my codding style:
- I tend to always use brakets, so I ignore the fact that single
  lines/actions can be written without brackets,

This is "your" coding style.
But if you work in a team, and somone does use that because it actually 
is a neater way of programming.

What do you intend to do?

- I try not to let lines grow larger than about 100 cols (cannot
  be really done with strings and other thingies, and maybe that
  should remain in the old 80 cols, but it's too litle space), and

Never possible if you write web-applications.
CLI might be possible for that but for web it's a no-go.


- I use a 4 space indentation, and that alone suffices for making
  a block stand clear enough

It's not just about one block.
I've seen stuff like:
if (blah blah) {
do my code!
} else {
oh my god!
}

Well, without indentation it just looks like a bunch of chars.

if (blah blah)
{
do my code!
}
else
{
oh my god!
}

Even without intendations, you can clearly see that it's an if and an 
else here.

The best part here is that you see it when you scroll through your code.
without actually "reading" it.


So, in my case, the code would be something like
  function foo( $x ) {
  // body...
  }
  ···
  $a = foo($b);

Even this is far too blocky to read.
If you have 4000 rows of code and looking for some if or switch (you are 
not sure) it would save you a lot of time searching for it though.


And for your problem with viewing. probably try to get a 19" monitor.
They are not that expencive anymore.(The CRT ones)
Even on 1024x768 you see LOTSA code.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Beginner's php/mysql connection probs

2006-04-28 Thread Barry

sathyashrayan schrieb:

 Dear group,

(I am a very beginner so please bear with me for a simple question)


I read that sentence somewhere before *mmh*



  I am a self thought php beginner. I wrote my first toy 
code for database connection in php/mysql. The connection

is successful but iam getting a warning and my rows/columns
are not showing. I am getting a warning:

Warning:  mysqli_fetch_row() expects parameter 1 to be mysqli_result, 
boolean given in c:\webs\test\dbs\one.php on line 13


I went through the php manual for the above mentioned function where
I get no clue. Pls guide me.

code:


  
  my first data base page 
  
 
   
 $temp1 = "select *from grape_varity"; 
$result = mysqli_query($conn,$temp);

This is right:
$result = mysqli_query($temp1,$conn);



[OT]
And one more thing is if I want to replay to a msg in this mail list
do I have to hit replay button or replay-all button for posting
in the mail list. I use "microsoft outlook 2000"

Reply all is ok.

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: we are looking for experienced php programmers full time freelance...

2006-04-28 Thread Barry

Sumeet schrieb:

we are looking for experienced php/mysql programmers full time freelance...


What the hell is a full time freelance? Why don't you just give 
aprogrammer the job? I dont' get it. Please enlight me/us :)


should be at least 1 year experienced, knowing pear libraries and having 
worked on several projects.

Knowing? Like: Oh pear? Yeah i know it www.php.net/pear


please contact me at [EMAIL PROTECTED]


quote your charges and the time that you will be available. also mention 
msn or yahoo ids. skype id is more welcome.


Why don't you offer something?

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Help!

2006-04-28 Thread Barry

Martin Alterisio schrieb:

2006/4/28, Dave Goodchild <[EMAIL PROTECTED]>:


Hi all - I am attempting to solve some maddening behaviour that has me
totally stumped and before I take a blade to my throat I thought I would
pick the brains of the group/hive/gang.

I am working on a viral marketing application that uses multipart emails
to
notify entrants of their progress in the 'game'. I have a demo version
which
works fine, and the current rebranded version was also fine until the
client
asked for some changes then POW!

I will try and define the issue as simply as I can. I am passing 11
arguments to a function called sendSantaMail (don't ask) and as a sanity
check I have called mail() to let me know the values just before they are
passed in to the function. I get this result:



sendSantaMail That's just not a *declarative* way of naming a function.
Do you know what "santa" means? No? so how can you tell it's not 
declarative.
Santa could be a coded Mailer and that functions uses that specific 
Mailer Deamon called "santa" to send mails.

Then, 11 arguments Errr, passing an associative array with the email
parameters wouldn't have been a cleaner and better option?


He just told he passes 11 arguments, never told how he does that.


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Help!

2006-04-28 Thread Barry

Dave Goodchild schrieb:
I would do but there are 5000+ lines and no indication of where the 
error is

occurring. I have just copied the demo version into the same dir and it
works fine - and that version calls the same classes (includes).


The problem is without code we neither can give any hints.

Checking the vars going inside the function, and checking the imside 
thefunction again and then again before the mail is sent.


Checking checking debugging. That's in this cases the onyl thing you can 
do. And we cant give any more hints because we actually don't see 
anything ^^



--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Help!

2006-04-28 Thread Barry

Dave Goodchild schrieb:

Hi all - I am attempting to solve some maddening behaviour that has me
totally stumped and before I take a blade to my throat I thought I would
pick the brains of the group/hive/gang.

I am working on a viral marketing application that uses multipart emails to
notify entrants of their progress in the 'game'. I have a demo version 
which
works fine, and the current rebranded version was also fine until the 
client

asked for some changes then POW!

I will try and define the issue as simply as I can. I am passing 11
arguments to a function called sendSantaMail (don't ask) and as a sanity
check I have called mail() to let me know the values just before they are
passed in to the function. I get this result:

"Values to be passed to sendSantaMail:

Friend Name: Treyt
Friend Email: [EMAIL PROTECTED]
Sender Name: Bull Sykes
Sender Email: [EMAIL PROTECTED]
Prize ID: 1
Nominator ID: 2555004452133557e4d
Nominee ID: 851355445213355cc6f
Chain ID: CHAIN824452133561a8d"

- this is all good and correct. I also call mail from the receiving 
function

to check the actual values received by the function and I get this:

"Values sent into sendSantaMail function:

Friend Name: [EMAIL PROTECTED]
Friend Email: Look what you may have won!
Sender Name: 8 Use of undefined constant prize - assumed 'prize'
Sender Email: 158
Sender Email: /home/friend/public_html/process1.php
<[EMAIL PROTECTED]>Prize: 1
Subject: 158
Nominator ID: 33238744520f5235b85
Nominee ID: 96658244520f524bb19
Chain ID: CHAIN84644520f525a56f"

What is happening? I have checked the order of values being passed in and
the function prototype and they match in the correct order, there are no
default values. I have been trying to solve this for two days and am
particularly concerned that somewhere along the way the sender email value
becomes the script name.

Any ideas on this black Friday?



Vardumping the array / object which the function gets is allright?

Vardumping it inside the function gives you the right entries?


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: php <-> js (was Javascript Navigation)

2006-04-28 Thread Barry

tedd schrieb:

At 5:09 PM +0200 4/27/06, Barry wrote:

tedd schrieb:

Hi gang:

Gang?


Gang, group, clan, community, organization, hive, pod, assembly, 
biocenosis -- what do you want to be called?


By my name normally. And if you adress everyone i prefer "everyone"


Show me.


function jstojava()
  {
 // sending stuff to the applet
  }


Javaapplet containing Java that gives infos to PHP through an openened 
PHP socket. PHP giving stuff back



Java executes a JS with the vars given by php




--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: php <-> js (was Javascript Navigation)

2006-04-28 Thread Barry

Robert Cummings schrieb:

On Thu, 2006-04-27 at 11:09, Barry wrote:

tedd schrieb:

Hi gang:

Gang?


You know... Scooby, Shaggy, and Mary-Jane.

ah, ic.



1. A way to send information from js to php and have php act upon it.

Java

... Sucks.

Because?



2. A way to send information from php to js and have js act upon it.

Java

... Sucks :)

Because?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Barry

Gonzalo Monzón schrieb:

I forgot to put some final note into my last message.

PHP can be good for a lot of things, but not really for other. 

Yeah true (o_O)

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] forms and dynamic creation and unique field names

2006-04-27 Thread Barry

Jason Gerfen schrieb:

Martin Zvarík wrote:


Jason Gerfen wrote:

I have come upon a problem and am not sure how to go about resolving 
it.  I have an web form which is generated dynamically from an 
imported file and I am not sure how I can loop over the resulting 
post variables within the global $_POST array due to the array keys 
not being numeric. Any pointers are appreciated.



"You will never be ready for me."
~ Me

Hahah...


HAHA...


O_o

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] how to get the absolute path of an included file?

2006-04-27 Thread Barry

Brad Bonkoski schrieb:



Bing Du wrote:


Hello,

Here are the two scripts.  The result is 'var is' rather than 'var is
foo'.  My suspect is I did not set the file path right in 'include'.  So
in file2.php, how should I get the actual absolute path it really gets 
for

file1.php?  Is it stored in some environment variable or something?  I'd
appreciate any help.

file1.php

==

==

file2.php

==
 

global $var; //you have to declare it as a global otherwise it will 
assume a local value



nonsense. Only for functions and such.

If it's in the same folder why dont you use include ("file2.php"); ?

Otherwise youse pathes like ../subfolder/folder
Only if you really want to load stuff thats not at the web directory use 
full pathes like /path/to/folder


Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: php <-> js (was Javascript Navigation)

2006-04-27 Thread Barry

tedd schrieb:

Hi gang:

Gang?

1. A way to send information from js to php and have php act upon it.

Java


2. A way to send information from php to js and have js act upon it.

Java



--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: forms and dynamic creation and unique field names

2006-04-27 Thread Barry

Jason Gerfen schrieb:
I have come upon a problem and am not sure how to go about resolving 
it.  I have an web form which is generated dynamically from an imported 
file and I am not sure how I can loop over the resulting post variables 
within the global $_POST array due to the array keys not being numeric. 
Any pointers are appreciated.



foreach?

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: How to convert a string( "23/04/2006") to a string "23042006" in javascript?

2006-04-25 Thread Barry

Pham Huu Le Quoc Phuc wrote:

Hi you!
I am a newbie to web programming,  I have a following problem:
I have a string: "23/04/2006", want to convert it become 23042006 in
javascript.
Thanks.

YOU! Hi!

And you are a newbie to mailing lists as it seems.
This is a PHP mailing list so only stuff related to PHP should be asked.
You are having a problem with JAVASCRIPT so you should ask in a 
JAVASCRIPT mailing list or either start reading MANUALS and 
DOCUMENTATIONS because they provide LOTS of INFORMATION about the things 
you are SEARCHING for.


But i will give you a hint: replace()

Barry

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Barry

Merlin wrote:

Hi there,

I am operating page where user receive a message which they do
have to confirm. The message does have about 5 links inside to give the 
user administration to his postings.


Now recently I discovered that the message does not go through to 
everybody since the spam score is 4.2! This is of course not what I want 
as some users are not able to confirm their postings without this e-mail.


I am using the newest phpmailer class available and this is what the 
header tells me:


X-Spam: high
X-Spam-score: 4.2
X-Spam-hits: BAYES_50, EXTRA_MPART_TYPE, FORGED_RCVD_HELO, HTML_MESSAGE,
  HTML_TAG_BALANCE_BODY, MIME_HTML_MOSTLY, SARE_OBFU_PART_ING

Is there something I can do about this?

Thank you for any suggestions.

Merlin

- Tell the people to put your domain on the whitelist or the specific
  mailadress it comes from.
- Use plaintext only mails

The scroe is so high because of the links.

Greets
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Serveral forms in a page.

2006-04-25 Thread Barry

William Stokes wrote:

Hello,

This "might be" more HTML stuff but anyway...

Yeah, anyway who cares if it belongs in here or not.

I have several forms in a page which is ok otherwise but the reset buttons 
doesn't clear anything that is queried from DB and printed to the text 
fields. Any idea how to create Reset buttons that clear the fields even when 
the data is not from user input? Or do I have to create reset buttons that 
are actually submit buttons and play with variables after that or something 
like that? Javascript is the way I don't want to go...


Yeah very nice cars can you get in Ohio.
Ever been there?

Ah, what? It doesn't belong to your post?
Ah shame on me, but anyway ...
cookie?
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] unexpected T_NEW on object property

2006-04-21 Thread Paul Barry
With php5, I'm trying to create an object that has a property that is
another object.  First I have this class:



Then I have another class:



Then if I try to use the user object like this:

name = 'Paul Barry';
$user->address->city = 'Washington';

?>
name ?> lives in address->city ?>

I get this error:

Parse error: syntax error, unexpected T_NEW in /app/model/User.class.php on
line 5

What am I doing wrong?


Re: [PHP] POST arrays?

2006-04-20 Thread Barry

William Stokes wrote:

No other way?




Over sessions or saving as file and loading it in the following page.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: POST arrays?

2006-04-20 Thread Barry

William Stokes wrote:

Hello,

How to post an array with associated values?

This works ok



But if I post it to another form with this:

">

And print there with:

print_r($arr_siirt_jouk);

prints: Array

So how can post the values forward?

Thanks
-Will 

serialize() unserialize()

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Best way to start a CRON

2006-04-20 Thread Barry

Pure Web Solution wrote:

I run several PHP scripts via CRON in the following way:

put the following in the top of the php script:

#!/usr/local/bin/php -q (linux system - location of php bin)

and in the CRONTAB I have the following:

10 1 * * * root /usr/local/bin/php -q /script/CRONexport.php

the -q supress HTML headers.

hope this helps!


Yes it does. Thanks :)

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Best way to start a CRON

2006-04-20 Thread Barry

Hello Everyone!

What would be the best way to start a PHP Script via CRONJOB?
Should i use the 'php' command or use curl or lynx or something to
open that URL?

The Script does a MySQL query, collects data and sends it via E-Mail 
every monday morning to the recipient.


Any help will be appriciated :)

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: Execute script and redirect

2006-04-20 Thread Barry

Peter Lauri wrote:

Best groupmember,

 


I have a form that is being filled out. This is the process:

 


1.  Fill out form and click submit
2.  Script validates data
3.  Data is being sent to external source via Web Service
4.  A file is being downloaded (redirects to files location)

 


The problem is that #3 is taking around 15 seconds to complete because the
Web Service is very slow. I would like to run #3 in the background and
directly jump to #4.

 


Is this possible?



Yes. you might use the shell execution for that OR fopen() without url 
restriction and send the commands to the file.


There are lots of ways to do that...

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Pushing Vars into $_SESSION

2006-04-20 Thread Barry

Chris Grigor wrote:


The method behind the madness here, is that I am only pulling the data 
once from the db throughout the whole session. This means that all the 
user info is available on every page they visit. I can also
then identify on each page that loads if a user has signed in and a 
session is present. Do you think I am going about this in the wrong way? 
What would you suggest is a better idea???


Chris


All the user info? Wouldn't it be enough to have a link on that User?
So that you can get the information you need rather than have all stored 
in a Session.

Btw. what would you do if the User starts updating his Profile.
Wouldn't it be easier to just update the Data-Field of the User rather 
than updating session and Data-Field?


--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: programming contests as a way of finding/evaluating offshore talent...

2006-04-19 Thread Barry

bruce wrote:

hi..

i'm looking for opinions on the "worth" of programming contests as a way of
judging the talent of potential software developers...

any thoughts/pros/cons would be appreciated..

and yeah.. i know this is a little off topic.. but some of us here deal with
these issues.. if you know of a better email list for this kind of question,
let me know, and i'll move it to there..

thanks in advance!

-bruce
A good programmer is somone who can (mostly) easily find answers to 
given problems.
You can then start looking on how somone programmed, how good it was 
tested, how good it's commented and documentated.


If a contest is in that way, i think it really has a worth.
But the most problems are that the contests are too specific.

For example. If a Bank would start something like that, you surely 
should have a knowledge on how bills and such are done and so on.



--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: no offense to Rasmus... are you kidding me

2006-04-19 Thread Barry

Stut wrote:

Matt Todd wrote:


But of course, that is just conjecture. I'm just saying that I think
he has vested interest and will be least of all willing to make the
shift in thought (even if he did think it held some merit).
 



I didn't read that article too closely, but I would appreciate *brief* 
answers to these questions...


In what way does PHP not allow development in the style that has 
unfortunately become known as Web 2.0? Why does it need to change? If 
you were "in charge" of PHP development what would you be doing to make 
it "better"?


As a PHP developer with too many years experience to mention I am 
curious about specifically why you are of the opinion that it's behind 
the times.


-Stut

Right, That's why ppl use PHP more than Perl/CGI for example.
It's because PHP is easier to understand and to code (for most ppl).
And when something else comes that is more useful than PHP and will come 
in more handy than it than PHP will take his place in order.

That's how stuff goes.
I don't think it's that important to debate it that much.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] a funny variable composition out of my daily programmer life

2006-04-19 Thread Barry

He really didn't knew what he hase done when he came to this varname.

$_POST["f-art-nlid"];

burn baby :D *boom* xD
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



  1   2   3   4   >