Re: [PHP] Re: how to retrieve path to web server files

2004-09-28 Thread Maciek Ruckgaber Bielecki
this could be handy for you:
print_r($_SERVER); or phpinfo();

On Tue, Sep 28, 2004 at 04:15:39PM -0400, GH wrote:
> does that work for sub directories ... i.e. I have multiple "mini"
> sites that I run on my domain and they are just folders underneath...
> 
> I.E. mydom.com
>   --- mydom.com/123
>   --- mydom.com/ahr
>   --- mydom.com/subsite4
> 
> 
> 
> 
> On Sat, 25 Sep 2004 14:17:50 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote:
> > $base_dir = $_SERVER['document_root']
> > 
> > 
> > On Sat, 25 Sep 2004 14:17:16 -0700, Jasper Howard <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > On Sat, 25 Sep 2004 14:29:27 +0200, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
> > > > $path = getcwd();
> > > >
> > > >
> > > > Amc wrote:
> > > > > Hi,
> > > > >
> > > > > How can I get the string that is the path to the directories on my web
> > > > > server? I need to upload some files, but don't know what to supply for the
> > > > > destination path. In asp I used server.mappath, but I'm new to php.
> > > > >
> > > > > Thanks,
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > >
> > > --
> > > <<
> > > Jasper Howard - Database Administration
> > > ApexEleven.com
> > > 530 559 0107
> > > --->>
> > >
> > 
> > -- 
> > 
> > 
> > <<
> > Jasper Howard - Database Administration
> > ApexEleven.com
> > 530 559 0107
> > --->>
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> >
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki



"The foundation of morality should not be made dependent on myth nor tied to any 
authority lest doubt about the myth or about the legitimacy of the authority imperil 
the foundation of sound judgment and action."
--Albert Einstein--

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



Re: [PHP] classes in php5

2004-09-28 Thread Maciek Ruckgaber Bielecki
you are just missing the (); it wont work either in php4 or php5 that
way.


 $className = "Foo";
 $fooInstance = new $className();

Cheers

On Tue, Sep 28, 2004 at 01:46:27PM -0600, Daniel Watrous wrote:
> Hello all,
> 
> I have a class Foo.  In PHP4 I could create an instance of Foo in the following 
> manner:
> $className = "Foo";
> $fooInstance = new $className;
> 
> This would yield the same result as:
> $fooInstance = new Foo;
> 
> In my efforts to port this over to PHP5 I am having trouble.  Not only do I not get 
> back an instance of my Foo class, but the script execution stops entirely without so 
> much as a warning.  Is this a bug?  Is there a new mechanism in PHP5, such as a 
> getInstance function (i.e. object getInstance (string className))?  Thanks in 
> advance for any comments!
> 
> Daniel
-- 

Maciek Ruckgaber Bielecki



"The wireless telegraph is not difficult to understand. The ordinary telegraph is like 
a very long cat. You pull the tail in New York, and it meows in Los Angeles. The 
wireless is the same, only without the cat. " 
--Albert Einstein--

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



Re: [PHP] __call and static methods

2004-09-28 Thread Maciek Ruckgaber Bielecki
Hmm don't see clearly how could work for static methods :P

On Tue, Sep 28, 2004 at 01:39:46PM -0500, Jay Blanchard wrote:
> [snip]
> Is there a way to get __call to work for static methods?  It doesn't
> seem to work by default and the docs are pretty sparse.
> [/snip]
> 
> Found a little more info
> http://us4.php.net/manual/en/language.oop5.overloading.php
> 
>  class Caller {
>   private $x = array(1, 2, 3);
> 
>   function __call($m, $a) {
>print "Method $m called:\n";
>var_dump($a);
>return $this->x;
>   }
> }
> 
> $foo = new Caller();
> $a = $foo->test(1, "2", 3.4, true);
> var_dump($a);
> ?> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki



"If my theory of relativity is proven successful, Germany will claim me as a German 
and France will declare that I am a citizen of the world."  
--Albert Einstein--

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



Re: [PHP] Make cron file

2004-09-28 Thread Maciek Ruckgaber Bielecki
So I understand, correct me if i am wrong, that your problem is just to
append a line to the file ?

if that is the case:
  
  //open and place pointer at the end of the file
  $fhandler = fopen("file",'a'); 
  fputs($fhandler,$string_with_code);
  fclose($fhandler);

if not, the case and you are having bad time trying to explain, i
  understand some spanish, so lets review it ;-)

Cheers
  
  
  On Tue, Sep 28, 2004 at 01:45:09PM -0300, Juan Pablo Herrera wrote:
> sorry, my cuestion is about the construction of the job file with php.
> I send parameters via POST: day, hours, minute, sentence for execuite with
> cron. This is cached for a php file that make the job file. Well, my
> problem is make this php file.I think to use file() for this, but maybe somebody 
> think other idea.
> 
> Regards,
> JP
> 
> > Jay Blanchard wrote:
> >> [snip]
> >> I need make a cron file, for example a .job file:
> >> #mi  hodimeseq  jobcomment 45
> >>  11**  0-5 php -q /home/test/test.php  # Make backup
> >> How can make it?.
> >> [/snip]
> >>
> >> Type crontab -e and the cron file will be openedunless you're on a
> >> Windows machine
> > in both cases, this is the wrong list to ask this.
> >
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki



"I never think of the future. It comes soon enough." 
--Albert Einstein--

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



Re: [PHP] Make cron file

2004-09-28 Thread Maciek Ruckgaber Bielecki
I do not understand what is the problem, you just add the
the time format as should be and put the following at the beginning of
your script:
#!/usr/local/bin/php -q (or your path to the php interpreter)


then you simply add the line (crontab -e)
0 3  * * * /area_backup/bin/sync.php [args]

hope it helps, and yes, this is probably the wrong list mate ;-)

Cheers,

On Tue, Sep 28, 2004 at 11:47:51AM -0400, John Nichel wrote:
> Juan Pablo Herrera wrote:
> >Hi!
> >I need make a cron file, for example a .job file:
> >#mi  hodimeseq  jobcomment
> >45   11**  0-5 php -q /home/test/test.php  # Make backup
> >How can make it?.
> 
> How about asking on the proper list?  Or Google?
> 
> Do we now add Cron to the list what this list supports?
> 
> -- 
> John C. Nichel
> ÜberGeek
> KegWorks.com
> 716.856.9675
> [EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki



"All our lauded technological progress -- our very civilization - is like the axe in 
the hand of the pathological criminal." 
--Albert Einstein--

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



Re: [PHP] Good xml to array class?

2004-09-23 Thread Maciek Ruckgaber Bielecki
for all kind of "convertions" XML to Array and Array to XML a very easy
  way to get something running is wddx. Depending on your needs, you may
get more complicated then and use DOM, but that will need to develop your 
own parsing object. 
 
 Cheers 


On Thu, Sep 23, 2004 at 01:13:17AM -0400, Greg Beaver wrote:
> Yann Larrivée wrote:
> 
> >Go with SimleXML it's a PHP extention.
> >
> >Yann
> 
> simplexml is PHP 5, and relies on libxml.  If you don't have DOM, you 
> don't have simplexml.  Also, simplexml cannot be serialized in any form 
> other than an xml string.  If you wish to work with actual arrays (for 
> instance, if you're returning values through xml-rpc or soap), you will 
> be better off with XML_Serializer.
> 
> Otherwise, simplexml is truly magnificent.
> 
> Greg
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki



"Sometimes one pays most for the things one gets for nothing."
--Albert Einstein--

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



Re: [PHP] PDF from PHP generated HTML, possible?

2004-09-23 Thread Maciek Ruckgaber Bielecki
I strongly recomend to check the documentation for XSLT for this kind of
transformations:
http://w3.org/Style/XSL/

cheers.

On Thu, Sep 23, 2004 at 03:44:01PM +0100, Graham Cossey wrote:
> 
> Following the topic about generating PDF documents from within PHP has
> prompted a thought...
> 
> Is it possible to have PHP dynamically build an HTML page (from database
> data etc) and provide an option to output the page as PDF without going
> through all the database query routine again?
> 
> In other words, to produce a PDF file from dynamic HTML.
> 
> This is because I have seen at least one 'product' that reports to produce
> PDF from HTML 'files'.
> 
> Any help/guidance/suggestions/URLs welcomed.
> 
> Graham
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki



"Perfections of mean and confusion of goals seem -in my opinion- to characterize our 
age. " 
--Albert Einstein--

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



Re: [PHP] PDF from PHP generated HTML, possible?

2004-09-23 Thread Maciek Ruckgaber Bielecki
i strongly recomend XSL for all this kind of conversion. From a single
source you can obtain whatever you need building the adequate
stylesheet.  for more info http://w3.org/Style/XSL/

cheers

On Thu, Sep 23, 2004 at 03:44:01PM +0100, Graham Cossey wrote:
> 
> Following the topic about generating PDF documents from within PHP has
> prompted a thought...
> 
> Is it possible to have PHP dynamically build an HTML page (from database
> data etc) and provide an option to output the page as PDF without going
> through all the database query routine again?
> 
> In other words, to produce a PDF file from dynamic HTML.
> 
> This is because I have seen at least one 'product' that reports to produce
> PDF from HTML 'files'.
> 
> Any help/guidance/suggestions/URLs welcomed.
> 
> Graham
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki



"Perfections of mean and confusion of goals seem -in my opinion- to characterize our 
age. " 
--Albert Einstein--

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



Re: [PHP] Good xml to array class?

2004-09-23 Thread Maciek Ruckgaber Bielecki
You also may consider wddx, which is very useful when you need to store
something to load it later to an array, and vice versa

 Thu, Sep 23, 2004 at 07:40:45AM -0600, Chris Gregors wrote:
> I've had good success with this one: http://www.devdump.com/phpxml.php
> 
> 
> 
> -Original Message-
> From: Curt Zirzow [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 23, 2004 12:04 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Good xml to array class?
> 
> 
> * Thus wrote Brent Clements:
> > I've done searching on google for "xml parsers" and xml to array using
> php and honestly there are S many. Most of the classes I've taken a
> look at either aren't finished, or require dom to work.
> > 
> 
> Converting xml to an array isn't an easy of a task. given:
> 
>   value
>   value
>   
> 
> 
> 
> How is one to make this into an array?
> 
> 
> > Either I write my own or I get help from you guys.
> 
> If you have an sample xml file you wish to convert, you might
> consider posting. Someone might be able to recognize your pattern
> and come up with a way to convert it.
> 
> > 
> > I need it to not rely on DOM since the php which I am dealing with,
> only has expat compiled in. 
> 
> DOM and expat are two completly differnt things.
> 
> 
> Curt
> -- 
> The above comments may offend you. flame at will.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



-- 

Maciek Ruckgaber Bielecki



"If you are out to describe the truth, leave elegance to the tailor."
--Albert Einstein--

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



Re: [PHP] How can I get IP of ppp0?

2003-09-05 Thread Maciek Ruckgaber Bielecki
I would use  something like this

$ifconfMess = shell_exec("ifconfig tun0");
if(preg_match("/\d{2,3}(\.(\d){1,3}){3}/",$ifconfMess,$ip))
  $tunip = $ip[0];

see ya !
  

On Fri, Sep 05, 2003 at 09:46:41AM -0300, Erick Okasaki wrote:
> Hello List,
> 
> How can I get IP Address from my connection ppp0 or ppp1 in Linux? What 
> 's the function?
> 
> 
> thanks
> Erick
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki



"An empty stomach is not a good political advisor." 
--Albert Einstein--

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



[PHP] DOM setting encoding attribute

2003-08-27 Thread Maciek Ruckgaber Bielecki
Hi there everybody !!

i have been trying to set the encoding attribute in the 
 document definition, using the DOM model
any idea about some info ???

Thanks in advance!!!
-- 
Maciek Ruckgaber Bielecki

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



[PHP] problem with --enable-gd-native-ttf

2003-08-14 Thread Maciek Ruckgaber Bielecki
Hi there everybody!

I found the following problem while working with the GD library:

if you try to make an image containing áéíóú (aeiou with tilde) WITHOUT
  spaces, results in annoying non existng chars and ú. While separating
  each character with a whitespace makes the thing display what wanted
  (á é í ó ú )

  if you write : célula, will obtain cula, the character following the
tilde char dissapears !!

i found that compiling php WITHOUT --enable-gd-native-ttf 
make things work normally again. 

Any ideas ??

-- 

Maciek Ruckgaber Bielecki



"Perfections of mean and confusion of goals seem -in my opinion- to characterize our 
age. " 
--Albert Einstein--

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



Re: [PHP] Submit Image Button

2003-04-03 Thread Maciek Ruckgaber Bielecki
have a look on  tag in w3c.org mate

On Wed, Apr 02, 2003 at 09:27:01PM -0500, Thomas wrote:
> I have a problem with my php.
> 
> I have a form and in that form there is an image submit button.  When I
> click on it, it won't tell me if the submit button is clicked.
> It works fine with a normal one.
> 
> sample:
> 
>   if (!$submit) {
> ?>
> 
> 
> 
>  border="0" name="submit" value="Login" width="55" height="19" alt="Submit">
> 
> 
>  } else {
> echo "you clicked";
> }
> ?>
> 
> If I use   This works finedo I need to do
> something else with the code?
> Help is very appreciated.
> 
> Cheers.
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki
Desarrollo
http://www.colegiosenlinea.com

"Perfection of means and confusion of ends seem to characterize our age."
--Albert Einstein--

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



Re: [PHP] Verisign pfpro

2003-04-01 Thread Maciek Ruckgaber Bielecki
Those pfpro functions are the hell!!! 

it is even said its said it conflicts with apaches OpenSSL (see notes on
http://www.php.net/manual/en/ref.pfpro.php) so you could have a look on
other solution, i decided to do it the "hard" way :
shellExec .. of course i had to close logging of untrusted users to that
machine.

i know it is not the better one, but it works ... for now ;-)

On Tue, Apr 01, 2003 at 04:49:16PM -0800, Samantha Ha wrote:
> Hello,
> 
> I'm running Apache 1.3.27, PHP 4.3.1 on Mac OS X 10.2.4 and need to
> reconfigure PHP with Verisign's pfpro functions. PHP wouldn't even configure
> with the --with-pfpro[=DIR] flag. I've tried --with-pfpro=shared,(path to a
> directory with libpfpro.so and pfpro.h inside) the result says Verisign
> Payflowpro support = yes, but there's a configuration error, pfro.h cannot
> be located. Please help.
> 
> Samantha
> Sacramento, CA
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki
Desarrollo
http://www.colegiosenlinea.com

"Only one who devotes himself to a cause with his whole strength and soul can be a 
true master. For this reason mastery demands all of a person." 
--Albert Einstein--

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



Re: [PHP] possible?

2003-03-28 Thread Maciek Ruckgaber Bielecki
Hi there mate i'll suggest you to have a look to ImageMagick to do
tricky things to images

heres the address:
http://www.imagemagick.org/

have fun!!
On Sat, Mar 29, 2003 at 12:58:17AM -0500, Sebastian wrote:
> hello,
> 
> I have some images in mysql, currently the images aren't resize, and this
> displays the image, like: image.php?id=1
> 
> But i'd like to resize the image with html tags: e.g. width="300" and
> print/echo it.
> 
> since Content-type is for image is it even possible? If not then how about
> dynamically resizing them such as:
> image.php?id=1&width=300   is that possible? If so, please let me know how.
> 
> Thanks in advanced.
> 
> cheers,
> Sebastian
> 
>  $conn = mysql_connect("host", "root", "pass") OR DIE (mysql_error());
> @mysql_select_db("images", $conn) OR DIE (mysql_error());
> 
> $sql = ("SELECT * FROM images WHERE id = '$_GET[id]'");
> $result = mysql_query($sql, $conn);
> 
> if (mysql_num_rows ($result ) > 0)
>  {
>  $row = @mysql_fetch_array($result);
>  $image_type = $row['type'];
>  $image = $row["image"];
>  header ("Content-type: $image_type");
>  print $image;
> }
> ?>

-- 

Maciek Ruckgaber Bielecki
Programacion
http://colegiosenlinea.com

"We have penetrated far less deeply into the regularities obtaining within the realm 
of living things, but deeply enough nevertheless to sense at least the rule of fixed 
necessity . what is still lacking here is a grasp of the connections of profound 
generality, but not a knowledge of order itself."
--Albert Einstein--

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



Re: [PHP] What do I do wrong?

2003-03-14 Thread Maciek Ruckgaber Bielecki
On Thu, Mar 13, 2003 at 05:56:40PM -0600, Tom Woody wrote:
> On Fri, 14 Mar 2003 00:37:38 +0100
> Michael Cronstrom <[EMAIL PROTECTED]> wrote:
> 
> > I get the message:
> > 
> > Notice: Undefined variable: msg in 
> > F:\www-root\domain.com\website\script.php on line 202
> >
mate, this is not actually an error is a Notice, and the var $msg is not
defined when the script reaches the line 202. Since i dont know what are
you doing i can't help anymore.

Maciek Ruckgaber
> > whats wrong?
> Questions like this and you are asking for trouble... first off how are
> we supposed to help you with the problem if we don't know what is on
> line 202.  Are we supposed to be clairvoyent, or should we divine the
> answer from tea leaves.  Without the code, or at least the code around
> line 202 you are asking the impossible  yes this would make me a
> troll...
> 
> -- 
> Tom Woody
> Systems Administrator
> 
> Don't throw your computer out the window, 
> throw the Windows out of your computer! 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



Re: [PHP] ayuda mysql

2003-02-21 Thread Maciek Ruckgaber Bielecki
On Fri, Feb 21, 2003 at 09:03:18AM -0800, Rot Alvarez wrote:
> Bueno gracias..ten??as tod al raz??n...pero haora sale esto:
> 
> Listado de tablas: 
> 
> Warning: Supplied argument is not a valid MySQL result resource in 
>/../web/php_mysql.php on line 40
> 
tiene cara de que le estas pasando algo no valido a fetch array o fetch
row o algo por el estilo ;-)
> _
> Registra gratis tu cuenta email en http://www.exploraiquique.cl
> 
> _
> Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
>POP & more! http://www.everyone.net/selectmail?campaign=tag

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




Re: [PHP] Masive mail Advice

2003-01-26 Thread Maciek Ruckgaber Bielecki
Thanks a lot for your sugestions guys, and i'll have a look into phpMail
and write a prototype keeping in mind your advice about the size of
chunks and use of sleep. Just let me bother you a little bit more
if i run into trouble Michael ;-)

Thanks again guys !

--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki







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




[PHP] Masive mail Advice

2003-01-25 Thread Maciek Ruckgaber Bielecki
Hi there Guys!

I'll start to write an application which will be used to send large
amounts of mail to users in a DB. All these mails to be sent shoul be
personalized. Since i understand, and please correct me if im wrong, the
mail() function is not a good option for this purpose. (the amount of mail
to be sent may vary from 50 to 800 messages). I have considered using some
masive mail application such majordomo or EZMLM. EZMLM is not easily
configurable for sending personalized mail, and majordomo requires
sendmail, (i would prefer to use qmail), i know about patches to be done
so it works with qmail, but i dont consider them really clean.

What would you guys suggest ?? should i jump into majordomo - sendmail,
or do you know something else that might be a better solution.

Thanks a lot in Advance, regards

--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki





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




Re: [PHP] Shopping Cart Credit Card Verification

2002-12-30 Thread Maciek Ruckgaber Bielecki

see at http://verisign.com
two services are available:

payflo link & payflow pro

regards,

--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki



On Mon, 30 Dec 2002, Josiah Peters wrote:

> I sure hope this is the correct mailing list. I have been struggling with
> this problem for quite some time.
> Does anyone know a way to verify credit card information in real time with
> your bank over the internet in say a shopping cart?
>
> Joey Peters
>
> _
> STOP MORE SPAM with the new MSN 8 and get 3 months FREE*.
> http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU=
> http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_stopmorespam_3mf
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP] Making with $values!!!

2002-12-30 Thread Maciek Ruckgaber Bielecki
i dont finally understand mate what do need, load the values already
filled, when the form is not sent because of an error?

you can try something like this

for($i=0;$1<5;$i++)
{
   
}

if that is what you need, if no, you can write to me in spanish, and
explain better in spanish ;)

regards

--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki



On Tue, 31 Dec 2002, Alexander Guevara wrote:

> hi.. i have this and i cant get it work!!..
>
>
> HERES THE CODE
> 
> ---
> for ($i=1;$i<11;$i++){
> echo"
>
>  TEXT
>   
>  
> ";
>}
> 
> ---
>
>
> so what i need is that the output in HTML shows tha value as is.. for
> example the output of the  code above  is like this (im going to show only
> the input  part thats the one i need to resolve!)
>
> 
>
> Remember the number depends on the $i.. i only showing one...
> thats what that code generates... what i need is like this:
>
> 
>
>
> So in conclusion what i need is the "$nom1" for retrieving the value of that
> variable later if an error ocurrs during a trasanction: (when an error
> occurs and i have to go back to thhis page)
>
>
> Thanks in advance!
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




RE: [PHP] Formatting text

2002-12-29 Thread Maciek Ruckgaber Bielecki
have alook at this one, i have one prob, dont know how your 'Results'
field does look like so i used ' '(or space) separator

hope it helps :-)
\n";
print " \n";
  }

   $content = "";
  while($row=mysql_fetch_array($result))
  {
$content .= "Identity : ".$row['GGID']."\n"
 .= "Organisation name :
".$row['OrgName']."\n"
 .= "Organisation country :
".$row['OrgCountry']." \n"
 .= "Organisation Address :
".$row['OrgAddress']."\n";

$content .="Results:";

// sorry, dont know which separator you can use exactly, i lost your
previous code
$results = explode(' ',$row['Results']);
foreach($results as $value)
{
  $content .="$value";
}

$content .="";
  }
?>

--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki





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




Re: [PHP] Populating a list box from a database - The code

2002-12-28 Thread Maciek Ruckgaber Bielecki

be carefull with the results of mysql_fetch_array, array names are DB
field names, for easier access =)

";

while($orgData=mysql_fetch_array($result))
{
  // note that OrgName is the field name in the database.
  // for value you may use the org_id instead, if you have one in the
DB
  $content .= "".$orgData['OrgName']."\n");
}

$content .="\n";

echo $content;

?>
hope it helps :-)

--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki



On Sun, 29 Dec 2002, Denis L. Menezes wrote:

> 
>  //connecting to the database
> $link = mysql_connect("localhost","lodestone","trypass");
> if ($link){
>Print "";
>}  else {
>Print "No connection to the database";
>}
>if (!mysql_select_db("catapult_com")){
> Print "Couldn't connect database";
>  } else {
>  Print ""."\n";
>  }
>
> $sql="SELECT OrgName From TableResults ORDER BY OrgName";
> $result=mysql_query($sql);
>
> While($Organisation=mysql_fetch_array($result))
>  {
>  Print("$Organisation[1]\n");
>  }
>
> ?>
>   
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP] exec, system , backtick

2002-12-27 Thread Maciek Ruckgaber Bielecki
how about :
#!/usr/local/bin/php -q


regards,
Maciek Ruckaber Bielecki



On Sat, 28 Dec 2002, gamin wrote:

>
> "Maciek Ruckgaber Bielecki" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > try :
> >  > $message = shell_exec('rm file');
> > ?>
>
>
> Tried that too, :-( no success
>
> gamin
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP] exec, system , backtick

2002-12-27 Thread Maciek Ruckgaber Bielecki
try :


--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki



On Sat, 28 Dec 2002, gamin wrote:

> Hello,
>
>Im running PHP 4.0.6 on Red Hat 7.2
>
> I tried a simple command line script, in all cases no_file does not exist. I
> do not want the command line script to show the error on the screen but to
> deliver it in the variable $r. But alas, in all 3 cases i get 'rm: canoot
> remove `no_file': No such file or directory'
>
> #! /usr/bin/php -q
>  $r = `rm no_file`;  \\ or $r = system("rm no_file") or exec("rm no_file");
> echo "the value in r is $r";
> ?>
>
> What should i do ?
>
> thank you
>
> gamin.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP] directory list function?

2002-12-27 Thread Maciek Ruckgaber Bielecki

o of course !!
mine won't work in !UNIX ;-)

On Fri, 27 Dec 2002, Johannes Schlueter wrote:

> On Friday 27 December 2002 21:46, Maciek Ruckgaber Bielecki wrote:
> > depending on what you need, sometimes this does the trick for me :-)
> >
> >exec("ls path/",$files);
> >
> > foreach($files as $value)
> > {
> >   $elem .= $value."\n";
> > }
> >
> >echo $elem;
>
> This should
>
>$i=0;
>   if ($dir = opendir('/insert/directory/name/here')) {
> while (($file = readdir($dir)) !== false) {
>   $i++;
> }
> closedir($dir);
>   }
> ?>
> (ok, this one counts even . and ..)
> johannes
>
>


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




Re: [PHP] monster form and compression?

2002-12-27 Thread Maciek Ruckgaber Bielecki

hi there !!!
check your HTML code, probably you miss something, it may be why the
form does not display properly always, have a look on
WWW: http://www.w3c.org/People/Raggett/tidy/

:-)
--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki



On Fri, 27 Dec 2002, Jeff D. Hamann wrote:

> I have a monster form (really a funky grid - hey the client is always right)
> that does not display entirely each time the form is displayed. Some times,
> quite repeatably, the bottom half of the form's select boxes will be blank
> (not good). Is there a way to compress the web page before it gets sent, or
> any method to ensure the page will display correctly?
>
> Jeff.
>
> --
> Jeff D. Hamann
> Hamann, Donald & Associates, Inc.
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> Bus. 541-753-7333
> Cell. 541-740-5988
> [EMAIL PROTECTED]
> www.hamanndonald.com
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




Re: [PHP] directory list function?

2002-12-27 Thread Maciek Ruckgaber Bielecki

depending on what you need, sometimes this does the trick for me :-)

   exec("ls path/",$files);

foreach($files as $value)
{
  $elem .= $value."\n";
}

   echo $elem;



--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki



On Fri, 27 Dec 2002, Dade Register wrote:

> A question for you all. Is there a php function that
> could count the number of files in a dir? Using
> FreeBSD and php4.2.2 and Apache. Thanx.
> -Dade
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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




Re: [PHP] processform.php not found

2002-12-27 Thread Maciek Ruckgaber Bielecki
i gess it is just a small example of how control your program flux using
the propertie ACTION of the  tag, if the code is not included on the
CD as Stephen points, it will be explained later, so at this point in the
book you probably should be paying attention to the order in which scripts
are executed and probably how the variables are past :-)

regards,

--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki



On Fri, 27 Dec 2002, Cerebrimbor wrote:

> I'm reading "PHP and MySQL for Dummies", to try to develop a very small
> web database.  In the examples, I see many references to:
> echo ""
> and
> echo ""
> but I have no php scripts called processform.php or checkAll.php.
> They seem to be fairly common scripts considering the number of Google
> hits I get when I do a search for them.
>
> Does anyone have any idea where I can get these scripts?
>
> Cerebrimbor
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



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




Re: [PHP] CLI delay

2002-12-27 Thread Maciek Ruckgaber Bielecki

thanks guys sleep did the miracle for me :-)
--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki





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




[PHP] CLI delay

2002-12-27 Thread Maciek Ruckgaber Bielecki
Hi guys !!
im starting on this list today so hello to everyone :-)
i have been programming in php for 2 years now, so i hope i may be
helpfull.
on the other hand im quite new to CLI PHP, an here my first question on
the list :

has anyone an idea of how can i do some kind of decent delay (instead of
some shell_exec doing pings)  :-P

thanks,
regards ...

--
"Few are those who see with their own eyes and feel with their own
hearts."
Albert Einstein
-
Maciek Ruckaber Bielecki




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