php-general Digest 9 Jul 2008 13:45:53 -0000 Issue 5559

Topics (messages 276476 through 276498):

Re: What font/size do you use for programming?
        276476 by: Robert Cummings
        276480 by: Shawn McKenzie
        276481 by: Sancar Saran
        276482 by: Per Jessen
        276483 by: Aschwin Wesselius
        276490 by: Robin Vickery
        276491 by: Jason Pruim

PDOStatement - dump params to log after binding
        276477 by: Radek Zajkowski

Re: Question before I end up writing alot of extra code...
        276478 by: VamVan
        276479 by: VamVan

Re: Creating zip files
        276484 by: Pavel

mount
        276485 by: Mário Gamito
        276489 by: Maxim Antonov

test
        276486 by: willyam pax
        276497 by: Thiago Melo de Paula

to get time
        276487 by: willyam pax
        276495 by: Per Jessen
        276496 by: Shelley

Need help with regular expression
        276488 by: Maxim Antonov

checking if URL's exist
        276492 by: cr.vegelin.gmail.com
        276493 by: Børge Holen
        276494 by: Maxim Antonov

Re: PHP code will not work
        276498 by: Mike V

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On Tue, 2008-07-08 at 21:35 -0400, Robert Cummings wrote:
> On Tue, 2008-07-08 at 16:28 -0700, Jim Lucas wrote:
> > tedd wrote:
> > > Hi gang:
> > > 
> > > I'm running a Mac (so I know mine is a bit different size wise) but I'm 
> > > currently using Veranda at 14 point for coding.
> > > 
> > > Just out of curiosity, what font and size do you ppls use for your 
> > > programming?
> > > 
> > > Cheers,
> > > 
> > > tedd
> > > 
> > 
> > Courier New 10pt w/ClearType Enabled @ 1680x1050 with a 22in wide screen
> 
> aterm
> 
>     - -adobe-courier-medium-r-normal-*-*-140-*-*-m-*-iso8859-1
> 
> gnome-terminal 
> 
>     - Courier New 14
> 
> rxvt-unicode
> 
>     - xft:Luxi Mono:pixelsize=16

I should probably mention I usually have terminal background
transparency enabled with shading set to 20 (80% black), and gray
default text colour. Additionally, I do custom set my ls colours and
syntax highlighting :)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
tedd wrote:
Hi gang:

I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding.

Just out of curiosity, what font and size do you ppls use for your programming?

Cheers,

tedd

Font: Agent Orange
Size: 64pt

19" Westinghouse flatscreen. My wife bought it for me 2 Christmases ago, this weekend she got a widescreen Samsung :-(

-Shawn

--- End Message ---
--- Begin Message ---
On Wednesday 09 July 2008 02:23:49 tedd wrote:
> Hi gang:
>
> I'm running a Mac (so I know mine is a bit different size wise) but
> I'm currently using Veranda at 14 point for coding.
>
> Just out of curiosity, what font and size do you ppls use for your
> programming?
>
> Cheers,
>
> tedd
>

Monospace 9 regular 22inch wide screen 1680x1050 on linux.

--- End Message ---
--- Begin Message ---
Sancar Saran wrote:

> On Wednesday 09 July 2008 02:23:49 tedd wrote:
>> Hi gang:
>>
>> I'm running a Mac (so I know mine is a bit different size wise) but
>> I'm currently using Veranda at 14 point for coding.
>>
>> Just out of curiosity, what font and size do you ppls use for your
>> programming?
>>
>> Cheers,
>>
>> tedd
>>
> 
> Monospace 9 regular 22inch wide screen 1680x1050 on linux.
> 

Same here, except 10pt monospace.


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
tedd wrote:
Hi gang:

I'm running a Mac (so I know mine is a bit different size wise) but I'm currently using Veranda at 14 point for coding.

Just out of curiosity, what font and size do you ppls use for your programming?

Cheers,

tedd

6pt Terminal font on Windows, using UltraEdit on a 22" Dell flatscreen.

I'd rather use Linux and probably monospace as small as possible.....

In PuTTY I use 6pt Proggy's OptiSmall to hack away in Nano on the commandline.

--

Aschwin Wesselius

/'What you would like to be done to you, do that to the other....'/

--- End Message ---
--- Begin Message ---
2008/7/9 Aschwin Wesselius <[EMAIL PROTECTED]>:
> tedd wrote:
>>
>> Hi gang:
>>
>> I'm running a Mac (so I know mine is a bit different size wise) but I'm
>> currently using Veranda at 14 point for coding.
>>
>> Just out of curiosity, what font and size do you ppls use for your
>> programming?
>>
>> Cheers,
>>
>> tedd
>>
> 6pt Terminal font on Windows, using UltraEdit on a 22" Dell flatscreen.
>
> I'd rather use Linux and probably monospace as small as possible.....
>
> In PuTTY I use 6pt Proggy's OptiSmall to hack away in Nano on the
> commandline.

Wow! I know a Windows 6pt is bigger than the rest of the world's 6pt,
but still...

I use 14pt Terminus on Linux. I use the same font in terminals
(xfce4-terminal), editors (vim and emacs) and non-work email (gmail
with the aid of firefox's 'stylish' extension).

-robin

--- End Message ---
--- Begin Message ---

On Jul 9, 2008, at 5:25 AM, Robin Vickery wrote:

2008/7/9 Aschwin Wesselius <[EMAIL PROTECTED]>:
tedd wrote:

Hi gang:

I'm running a Mac (so I know mine is a bit different size wise) but I'm
currently using Veranda at 14 point for coding.

Just out of curiosity, what font and size do you ppls use for your
programming?

Cheers,

tedd



I use Monaco 10 PT always served me well in Xcode :)

--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
[EMAIL PROTECTED]





--- End Message ---
--- Begin Message ---
Hi all,

is there a way to access parameters in the PDOStatement object after they have been bound? it would be very useful for my debug logging.

Thanks,

Radek.

--- End Message ---
--- Begin Message ---
Hey,

Dude you could use it this way

<input type='checkbox' name='something' value='1'>
<input type='checkbox' name='something' value='2'>
<input type='checkbox' name='something' value='3'>

Once u submit it,

do a small server side validation

if(isset($_POST['something'] || $_POST['something']) != ""){
insert...............
}

This way you could avoid replacing the values with nulls.

Thanks,
Vam

On Mon, Jul 7, 2008 at 12:25 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:

> Hi everyone!
>
> So it's been a nice long weekend, I come in to work and try and mess with a
> project that I'm working on to get some new features added. All was going
> well until I realized that now my application is breaking...
>
> Here's the details...
>
> PHP 5.2
> MySQL 5.2
>
> I store the info in the database which is submitted from a HTML form.. Some
> of it text boxes, some check boxes, some radio buttons... I $_POST the info
> from the form into the processing script.
>
> The problem I'm running into though, is when a value has not changed it
> doesn't get $_POSTed back and my update script erases the info in the
> database... I'm trying to avoid using $_GET since it can be quite a few
> variables.
>
> Is there anyway I can do it without comparing the original field to what I
> am displaying?
>
>
> --
>
> Jason Pruim
> Raoset Inc.
> Technology Manager
> MQC Specialist
> 11287 James St
> Holland, MI 49424
> www.raoset.com
> [EMAIL PROTECTED]
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
sorry it needs to be a array for checkbox for the example below. So you
could use is_empty() instead. something like that.


<input type='checkbox' name='something[]' value='1'>
<input type='checkbox' name='something[]' value='2'>
<input type='checkbox' name='something[]' value='3'>


On Tue, Jul 8, 2008 at 7:37 PM, VamVan <[EMAIL PROTECTED]> wrote:

> Hey,
>
> Dude you could use it this way
>
> <input type='checkbox' name='something' value='1'>
> <input type='checkbox' name='something' value='2'>
> <input type='checkbox' name='something' value='3'>
>
> Once u submit it,
>
> do a small server side validation
>
> if(isset($_POST['something'] || $_POST['something']) != ""){
> insert...............
> }
>
> This way you could avoid replacing the values with nulls.
>
> Thanks,
> Vam
>
>
> On Mon, Jul 7, 2008 at 12:25 PM, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
>> Hi everyone!
>>
>> So it's been a nice long weekend, I come in to work and try and mess with
>> a project that I'm working on to get some new features added. All was going
>> well until I realized that now my application is breaking...
>>
>> Here's the details...
>>
>> PHP 5.2
>> MySQL 5.2
>>
>> I store the info in the database which is submitted from a HTML form..
>> Some of it text boxes, some check boxes, some radio buttons... I $_POST the
>> info from the form into the processing script.
>>
>> The problem I'm running into though, is when a value has not changed it
>> doesn't get $_POSTed back and my update script erases the info in the
>> database... I'm trying to avoid using $_GET since it can be quite a few
>> variables.
>>
>> Is there anyway I can do it without comparing the original field to what I
>> am displaying?
>>
>>
>> --
>>
>> Jason Pruim
>> Raoset Inc.
>> Technology Manager
>> MQC Specialist
>> 11287 James St
>> Holland, MI 49424
>> www.raoset.com
>> [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>

--- End Message ---
--- Begin Message ---
В сообщении от Wednesday 09 July 2008 01:22:32 Eric Butera написал(а):

> [1] http://us2.php.net/manual/en/ref.zip.php
Thank you for this link!


-- 
===============
С уважением, Манылов Павел aka [R-k]
icq: 949-388-0
mailto:[EMAIL PROTECTED]
===============
А ещё говорят так:
Родился сам - помоги другому.
                -- Неизвестный автор
[fortune]

--- End Message ---
--- Begin Message ---
Hi,

I need to perform a mount and a umount from PHP.

I've searched the manual, but didn't find anything useful.

Any ideas ?

Any help would be appreciated.

Warm Regards,
Mário Gamito

--- End Message ---
--- Begin Message ---
Hello, Mário

You may use function system!

system('mount -t vfat -o rw /dev/hdb1 /home/www/upload',$err);

if($err){
   echo "We have error with number {$err}";
}


Mário Gamito :
Hi,

I need to perform a mount and a umount from PHP.

I've searched the manual, but didn't find anything useful.

Any ideas ?

Any help would be appreciated.

Warm Regards,
Mário Gamito


--- End Message ---
--- Begin Message ---
test 



--- End Message ---
--- Begin Message ---
test

--- End Message ---
--- Begin Message ---
hello

im still new to php i just want to know how can u get the only the time of
ur local server




--- End Message ---
--- Begin Message ---
willyam pax wrote:

> hello
> 
> im still new to php i just want to know how can u get the only the
> time of ur local server

Take a look at date() and time().


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
Or date(), such as date('Y-m-d H:i:s');

On Wed, Jul 9, 2008 at 6:29 PM, Per Jessen <[EMAIL PROTECTED]> wrote:

> willyam pax wrote:
>
> > hello
> >
> > im still new to php i just want to know how can u get the only the
> > time of ur local server
>
> Take a look at date() and time().
>
>
> /Per Jessen, Zürich
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Regards,
Shelley
http://phparch.cn



Shelley

--- End Message ---
--- Begin Message ---
Hi, all!

I try to use folowing regular expression:
$out = preg_replace('#\{%%%.*?\{%bigfoto%\}.*?%%%\}#is','==REPLACEMENT==',$str);

It not work as I need. Please tell me - what I do wrong?

I have string:


<tr><td>NAME:</td><td><input type="text" name="name" value="" size="80"/></td></tr>
 <tr><td>Foto:</td><td><input type="file" name="foto" value="{%foto%}" />
  {%%%<br/><img alt="{%name%}" src="{%foto%}"/>%%%}
  </td></tr>
 <tr><td>Big foto:</td><td><input type="file" name="bigfoto" value="" />
  {%%%<br/><img alt="{%name%}" src="{%bigfoto%}"/>%%%}
  </td></tr>



I need result as:


<tr><td>NAME:</td><td><input type="text" name="name" value="" size="80"/></td></tr>
 <tr><td>Foto:</td><td><input type="file" name="foto" value="{%foto%}" />
  {%%%<br/><img alt="{%name%}" src="{%foto%}"/>%%%}
  </td></tr>
==REPLACEMENT==


And I have this result:

<tr><td>NAME:</td><td><input type="text" name="name" value="" size="80"/></td></tr>
 <tr><td>Foto:</td><td><input type="file" name="foto" value="{%foto%}" />
==REPLACEMENT==
  </td></tr>


--- End Message ---
--- Begin Message ---
Hi All,

I have a Directory table with hundreds of URL's to sites
and want to check periodically if all the URL's still exist.
Does anyone know of a utility to check this ?
Or a pointer to a piece of code ...

TIA, Cor

--- End Message ---
--- Begin Message ---
On Wednesday 09 July 2008 12:18:27 [EMAIL PROTECTED] wrote:
> Hi All,
>
> I have a Directory table with hundreds of URL's to sites
> and want to check periodically if all the URL's still exist.
> Does anyone know of a utility to check this ?
> Or a pointer to a piece of code ...
>
> TIA, Cor

ping whois traceroute ... and a lot more

-- 
---
Børge Holen
http://www.arivene.net

--- End Message ---
--- Begin Message ---
You need

$s= fsockopen('host.com',80);

fwrite($s,"GET ".$URL." HTTP/1.1 \r\n");
fwrite($s,"Host: host.com \r\n\r\n");

and you must read first string - if url exists string begining with 200 or 304
if url not exists string begin - is 404




Børge Holen пишет:
On Wednesday 09 July 2008 12:18:27 [EMAIL PROTECTED] wrote:
Hi All,

I have a Directory table with hundreds of URL's to sites
and want to check periodically if all the URL's still exist.
Does anyone know of a utility to check this ?
Or a pointer to a piece of code ...

TIA, Cor

ping whois traceroute ... and a lot more



--- End Message ---
--- Begin Message ---
I had this problem and just figured it out.  I was copying and pasting the
code snippet from the tutorials page to my test editor and in the process
picked up an invisible ctrl char.  Doh!!


Joseph Subida wrote:
> 
> 
> The error I get when I try
> 
> <?php
> echo $_SERVER['HTTP_USER_AGENT'];
> ?>
> 
> is
> 
> Parse error: syntax error, unexpected T_VARIABLE in 
> /Library/WebServer/Documents/test.php on line 106
> 
> I tried Googling "T_VARIABLE" and haven't found any useful solutions. 
> Any ideas? Thanks!
> 
> -J.C.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PHP-code-will-not-work-tp17811807p18362005.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---

Reply via email to