The problem with smarty is that they are still using PHP4 as their main
language so they cannot take advantage of speed improvements in PHP5.
So, my suggestion is that if you're stuck with PHP4, go with smarty,
otherwise, find another engine that's up to date.
Thank you,
Micah Gerst
The question is, why aren't you using a session variable instead of
cookies? That's one of the greatest features of PHP.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ben Stones wrote:
> What I mean is I cannot use setcookie, I need to
The problem with bottom posting is that if you follow the conversation,
you have to scroll to find the new content. I guess if you trim and
bottom post it's not so bad.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Wolf wrote:
> By Bottom Posting
If you're using file_get_contents, why aren't you using file_put_contents?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Nitsan Bin-Nun wrote:
> Hi,
> I have this function:
>
>
> function saveImageFromUr
Don't use cookies, use sessions.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ben Stones wrote:
> I've read a few videos on cookie security and it makes sense that people can
> modify cookie values which is a problem I'm trying
> or die(mysql_error());
>
>
> or do I need to loop through all records? or is there a better solution?
>
> How can I get the database size?
>
> bye
>
> R.
>
>
Perhaps you should not have search engines index your calendar.
Thank you,
Micah Gersten
onShore
Are you using MySQL abstraction? That's the easiest way to control what
data goes into your DB in a central place.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
blackwater dev wrote:
> I have a project now where we would like to properly remove
In that case, I suggest you look to the MySQL lists for tips on handling
data coming in.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
blackwater dev wrote:
> Yes, I agree but the code I am inheriting doesn't use abstraction
> unfortunately.
uot;,",",":",";","~","..",".@","@."};
>
> I want to a pregmatch for these characters on my whole email address and if
> match is found I need to return false.
>
> Thank you
>
>
If your trying to filter
Keep in mind that ereg will disappear with PHP 6. You might want to use
the preg functions:
http://www.making-the-web.com/2007/09/21/becoming-php-6-compatible/
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
VamVan wrote:
> Thank Guys,
>
> I at
What are you talking about with a cookie and an E-Mail address?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
VamVan wrote:
> Yeah, I understand that its allowed in RFC. But unfortunately I use
> SSO layer which decrypts the Cookie to get email a
How is anything but your webserver decrypting the $_POST data? PHP
should get it after that as is.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
VamVan wrote:
> SSO process:
>
> $_POST the Email Address and password
>
> Get Authenticated,
y
> time (as you only have to wait for one connection to be made rather than
> two)
>
>
> Ash
> www.ashleysheridan.co.uk
>
>
Generally you want separation of data. MySQL doesn't have a problem
accessing another DB on the same server with the same connection. Also,
how would database convergence use less memory?
.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ashley Sheridan wrote:
> On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote:
>
>> Ashley Sheridan wrote:
>>
>>> On Thu, 2008-10-30 at 08:55 +1100, Chris wrote:
>>>
>>>
>>>> Waynn Lue wrote:
>>>>
>>
Ashley Sheridan wrote:
> On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote:
>
>> Ashley Sheridan wrote:
>>
>>> On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote:
>>>
>>>
>>>> Ashley Sheridan wrote:
>>>&
Ashley Sheridan wrote:
> On Wed, 2008-10-29 at 19:49 -0500, Micah Gersten wrote:
>
>> Ashley Sheridan wrote:
>>
>>> On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote:
>>>
>>>
>>>> Ashley Sheridan wrote:
>>>&
Ashley Sheridan wrote:
> On Wed, 2008-10-29 at 19:57 -0500, Micah Gersten wrote:
>
>> Ashley Sheridan wrote:
>>
>>> On Wed, 2008-10-29 at 19:49 -0500, Micah Gersten wrote:
>>>
>>>
>>>> Ashley Sheridan wrote:
>>>&
nstead of just using the database name in the
query. However, this should not be that expensive.
Yes, connections should be available for the whole script if you don't
destroy them.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ashley Sheridan wrote:
> On Wed, 2008-10-29 at 20:12 -0500, Micah Gersten wrote:
>
>> Waynn Lue wrote:
>>
>>>> With MySQL, you can change the DB from query to query with
>>>> mysql_select_db. The alternative as I stated in my last post is
AFAIK, the query commands just pass the query to the DB engine. The DB
decides whether or not to execute. You need special permissions in
mssql and mysql to create things. I don't know about informix.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Steve Marquez wrote:
> Greetings,
>
> What is the best way to create authentication for MySQL info displayed
> on PHP pages.
>
> Thanks,
>
Best is relative. How many users do you expect?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.co
If it's a permissions issue, it's related to Windows. Is it a user
share or a system share? Can you access the shares when you log
directly into the windows box? Have you tried command line ssh to see
if it's specifically related to the PHP library?
Thank you,
Micah Gersten
o
foo.php without passing them to it.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
bruce wrote:
> hi guys...foo
>
> i've got a button that i want to select, and i want the app to process some
> logic, and then return the user to the page. m
Have you turned on error logging? What code are you using?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Jacob Overgaard wrote:
>
> Thanks, Micah
>
> I can access the share when I log directly in to the windows machine
> with a bash
;;
>>
>> $fp = fopen($filename, "r") or die ("Couldn't open $filename");
>> if ($fp)
>> {
>> while (!feof($fp))
>> {
>>$thedata = fgets($fp);
>>//Do something to remove the "1. "
>>$findme=" ";
>>$pos=strpos($thedata,$findme);
>>$thedata_fixed=trim(substr($thedata,$findme));
>> //print the modified line and \n
>>echo $thedata_fixed."\n";
>> }
>> fclose($fp);
>> }
>> ?>
>>
>> See, no regex needed and no matter the size of the '##. ' it will always
>> find the first " " and then chop it from there to the end, then you trim it
>> up and you get the text.
>>
>> Wolf
>>
>>
> Thats a lot of code when a couple of lines and a regex will do ;)
>
>
> Ash
> www.ashleysheridan.co.uk
>
>
>
Yep, with a regex, it's real easy (untested code):
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Yep, with a regex, it's real easy (untested code):
>
>
> $fileData = file_get_contents("text,txt");
> $newFileData = preg_replace('/^\d+?\.\s?(.*$)/m','/$1/', $fileData);
> file_put_contents("newfile.txt", $newFileData);
>
you want
to see the +, the use this:
http://us3.php.net/urlencode
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Zhao chunliang[chunliang.zhao] wrote:
> First thanks for Todd 's help
>
> I do have some questions.
>
> 1.Open t
http://php.net/strstr
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Richard Kurth wrote:
> is the a php function to find a word in a string and report back that
> it was found
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
; footer. Each footer is the same right now except I have numbered them
> for testing.
>
> As I refresh the page, I get footer10 almost always with an
> occasional 2 or 4 here and there...
>
> http://www.weisd.com/store2/WINHD-9022.php
>
>
>
Which PHP version are you
designed to do what
> their name suggests.
>
> Software testing requires repeatability, and this includes random number
> generation.
>
> Without knowing how PHP seeds the generator it is difficult to predict what
> it will do.
>
> I still think taking the last digit of the cu
strtotime works fine
>
> in PHP5 strtotime gives a result of 19700101 when the data entered was
> strtotime("20080950")
>
>
What does "work fine" mean? "20080950" isn't normal, so what is the
expected result?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ndreds of items I'd either go with a
> persisted GET var or a cookie. No need to drag server-side storage
> into this.
>
> -Stut
Server side storage is meant to be used. The session was one of the
greatest things that PHP has given to the web programming world. It
should not be feared. Also, why clutter up someone's machine with stuff
held in a cookie?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
; Seriously? You'd rather use sessions than explode, modify and implode
> an array of numbers on each request? You really see that as a valuable
> developer time-saver?
>
> The mind boggles, but as I've said before and probably will again it's
> always a personal choice, I'm just suggesting alternatives.
>
> -Stut
>
Also, by storing the information server side, there is less of a chance
of the user tampering with the data. Storing stuff in the session also
saves on network bandwidth of sending and retrieving the data with each
request.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
> On Sun, 2008-11-09 at 12:26 -0600, Micah Gersten wrote:
>
>> Stut wrote:
>>
>>> On 9 Nov 2008, at 18:14, Robert Cummings wrote:
>>>
>>>> On Sun, 2008-11-09 at 18:00 +, Stut wrote:
>>>>
special characters, such as spaces,
> you need to encode the URI with urlencode().
>
> WTF?!?!
> How do I get FAILS(1) and FAILS(2) to work, in light of FAILS WTF(1)
> and FAILS WTF(2)?
>
>
Have you tried to output the result of urlencode and paste the whole
thing in a browser to make sure that it works?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt;
You should try Xampp then. http://apachefriends.org
They've segregated the apache config files to make things easier.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try the zend list:
[EMAIL PROTECTED]
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
András Csányi wrote:
> Hi all!
>
> I don't know which is the right place to make an bugreport.
> I installed on my linux desktop the pdt-2.0 all-in-one bu
ou ask? tried to google it yet ? That's where...
>
> - Tul
>
>
PDT is a plugin for the Eclipse Platform. The Zend people made a
special PDT 2.0 All-in-one build, that's why I said the zend list.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
se from you.
>
> If you could just provide me with a more specific Leopard tutorial
> tha would be great.
>
> Giving an antecipated "thank you" for any kind of answer.
>
> Regards, and keep up the good work!
>
> Rui Quelhas
>
Is that extensions directory in y
Perhaps you should try the PECL list:
[EMAIL PROTECTED]
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Rui Quelhas wrote:
> Since i'm not obtaining any kind of response from people o first answered
> me. I guess is better to talk through here.
&g
o " & self::mciInput & "";
>echo 'stage 2';
> if ( $fpType == self::mciInput ) {
> echo 5;
> array_push($this->maInput, new $fpName);
> echo 'it\'s done';
>}
>}
>
>
> The Call:
>
>
-type-overview.html
http://dev.mysql.com/doc/refman/5.0/en/data-type-defaults.html
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Michael S. Dunsavage wrote:
> okay I want to pull an integer from a database called confirm_number,
> add 1 and repost it back to t
201 - 242 of 242 matches
Mail list logo