rsers.
> configure: error: libjpeg.(a|so) not found.
>
> but:
> # locate libjpeg.so
> /usr/lib64/libjpeg.so
> /usr/lib64/libjpeg.so.62
> /usr/lib64/libjpeg.so.62.0.0
>
> # locate libjpeg.a
> /usr/lib64/libjpeg.a
>
> I am kind of lost with this one. I can not
eymonkey.com/s.aspx?sm=Jro0rkoIGJKuQNpfWZV_2bBQ_3d_3d
>
What exactly are, Express or Web Edition databases?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ashley Sheridan wrote:
> On Fri, 2009-02-27 at 12:43 -0600, Shawn McKenzie wrote:
>> Merlin Morgenstern wrote:
>>> Hi there,
>>>
>>> I am trying to get a 64 bit suse 10.3 system to run with php 5. Somehow
>>> it does not recognize the libjpg which is
r Zend Optimizer cache bytecodes are torn from a file run
>>> similarly. As I said in an earlier post... the line between the
>>> definition of interpreted language and compiled language is quite blurry
>>> these days.
>>>
>>> Cheers,
>>> Rob.
Stuart wrote:
> 2009/2/28 Shawn McKenzie
>
>> Robert Cummings wrote:
>>> On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote:
>>>> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote:
>>>>&
Stuart wrote:
> 2009/3/1 Shawn McKenzie
>
>> Stuart wrote:
>>> 2009/2/28 Shawn McKenzie
>>>
>>>> Robert Cummings wrote:
>>>>> On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote:
>>>>>> On Fri, 2009-02-27 at 14:32 -
be able to retrieve and INSERT etc.
> As I delve deeper into this the more I know the "horseman knew her" ... :-)
> Please elucidate, enlighten me from my erring ways ...
Just like the last time you asked this, you need to use:
Then it would be easy to:
foreach ($categoriesI
Shawn McKenzie wrote:
> PJ wrote:
>> I'm sure this has been hashed over and over on the web, only I can't
>> find anything that makes sense or the explanations given have been
>> erroneous.
>> This is what I am trying:
>>
>> Choose Ca
;])){
> foreach( $_POST['categoriesIN'] as $key => $value)
> {
> echo "key = $key and value = $value";
> }
> }
>
> Now, how do I send these values to an INSERT statement?
>
Depends. What does your table(s) look like and to what fields do
ad idea because they are confusing
> for users, there's no standard way with which to choose them and users
> often don't know how - if you can use checkboxes instead.
>
> That being said, I think your problem is the $ and the []
>
> Try
>
>
>
> Then wh
Shawn McKenzie wrote:
> Michael A. Peters wrote:
>> PJ wrote:
>>> I'm sure this has been hashed over and over on the web, only I can't
>>> find anything that makes sense or the explanations given have been
>>> erroneous.
>>> T
bazillion, or .2
gazillion. Now if I really wanted to impress, I would go for jillions,
bajillions or maybe gajillions.
Umptillion is right out...
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n
the vcl stuff (so drag and drop it builds the code).
Anybody used it?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PJ wrote:
> Shawn McKenzie wrote:
>> PJ wrote:
>>> PJ wrote:
>>>> I'm sure this has been hashed over and over on the web, only I can't
>>>> find anything that makes sense or the explanations given have been
>>>> erroneous.
>>>
repancies in examples - and some wonder why I
> seem to be so stupid... and don't know the fundamentals... :-\
Others have shown how exec() returns the output. If you use
shell_exec() it's the same as using the backticks:
-or-
You can use single quotes here also, i used double so
-
> Facebook:
> http://www.facebook.com/people/Terion-Miller/1542024891";
> title="Terion Miller's Facebook profile" target=_TOP>http://badge.facebook.com/badge/1542024891.237.919247960.png"; border=0
> alt="Terion Mil
PJ wrote:
> Shawn McKenzie wrote:
>> PJ wrote:
>>
>>> This really needs some explanation
>>> I found this on the web:
>>>
>>> with it there was the comment "the direction of those single-quotes matters"
>>> (WHY ?)
>
($something) {
echo "Some stuff...";
} else {
echo "Some other stuff...";
}
Why is this better:
{if $something}
Some stuff...
{else}
Some other stuff...
{/if}
Like I said earlier, if you have some complex code that you can reduce
to a simple tag or so
Shawn McKenzie wrote:
> Matthew Croud wrote:
>> Hello,
>>
>> First post here, I'm in the process of learning PHP , I'm digesting a
>> few books as we speak.
>> I'm working on a content heavy website that provides a lot of
>> information, a t
Robert Cummings wrote:
> On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote:
>> Matthew Croud wrote:
>>> Hello,
>>>
>>> First post here, I'm in the process of learning PHP , I'm digesting a
>>> few books as we speak.
>>&g
for you gotta have a vision!
>> It's a really interesting property,
>> by the way; ancient Egypt, Mesopotamia, and that region enthralls me.
>> Those folks were truly inspiring, and put the civil engineers of the
>> 20th and 21st centuries to utter shame.
>>
> Indeed. Makes you wonder, doesn't it.
>
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thodoris wrote:
> Didn't have the time to read the whole thread. Sorry for being so lame.
Obviously, or you would have known that this thread has very little if
anything to do with whoami! :-)
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.
Robert Cummings wrote:
> On Wed, 2009-03-04 at 10:55 -0600, Shawn McKenzie wrote:
>> Robert Cummings wrote:
>>> On Tue, 2009-03-03 at 21:18 -0600, Shawn McKenzie wrote:
>>>> Matthew Croud wrote:
>>>>> Hello,
>>>>>
>>>>
m-data encoding for
> all post fields added with addPostFields, even when you are not
> calling addPostFile to add a file?
>
> If not, is there another good way to encode multipart data with PHP?
>
> Thanks!
> Jason
Try: setContentType()
--
Thanks!
-Shawn
http://w
PJ wrote:
> Shawn McKenzie wrote:
>> PJ wrote:
>>
>>> Daniel Brown wrote:
>>>
>>>> On Wed, Mar 4, 2009 at 10:42, PJ wrote:
>>>>
>>>>
>>>>> Right on. Good comments.
>>>>> No offe
Jason Cipriani wrote:
> On Wed, Mar 4, 2009 at 2:10 PM, Shawn McKenzie wrote:
>> Jason Cipriani wrote:
>>> Is there a way to force PECL to use multipart/form-data encoding for
>>> all post fields added with addPostFields, even when you are not
>>> calli
want == to do a comparison.
>
Yes and yes, however the it's the result of the assignment that is used:
if($var = false) {
echo "Succeeded";
} else {
echo "FAIL";
}
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
> On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote:
>> Whatever you do, please, please, please, for the love of all that is
>> holy, please, do not vilify potatoes! ...or the Irish :-)
>
> Potatoes are best served sliced into sticks, pan-fried
tegoriesIN'])) {
> $obligatoryFieldNotPresent = 0;
>
> But now I have to figure out the workflow and see why it is not going
> the right way... wonder where I got some of this stuff...
>
>
Glad to hear it, however just some critique of your coding style while
you're still learning. You should leave no doubt as to what variables
are for. Be descriptive, like:
$theObligatoryFieldFromTheFormTheOneThatMustBePresentAndContainAvalueMayInFactBePresentOrYouWouldReceiveAnE_NOTICEHoweverTheFieldContainsNoValue
= 1
Also look into isset() and empty().
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PJ wrote:
> Shawn McKenzie wrote:
>> Robert Cummings wrote:
>>
>>> On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote:
>>>
>>>> Whatever you do, please, please, please, for the love of all that is
>>>> holy, please, do not vilif
Shawn McKenzie wrote:
> PJ wrote:
>> Shawn McKenzie wrote:
>>> Robert Cummings wrote:
>>>
>>>> On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote:
>>>>
>>>>> Whatever you do, please, please, please, for the love of
-
> * | 1 |Texas | Fort Worth |40|
> *
> */
>
Woo hooo! Did we finally suceed from the union that's going to
socialist shit? Are we once again the great Republic of Texas!
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General M
guage that I get to learn on top of the two that
do the job and that I already know! Bonus!
Not trying to be an ass, I haven't used doctrine, but they need some
marketing help. My point is that the ability to write queries in a
"proprietary dialect" is not really a "feature&q
elper for PJ.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ning things? If not, how would I properly make them able to run
> through a browser?
>
> Thanks!
> G
>
Are you just opening the file in a browser, or do you have a webserver
running that is configured with PHP?
If you have a webserver, do other php scripts work?
--
Thanks!
-Shaw
ta to a file or do you mean write to the browser
(as output)?
>
> Am I imagining things? If not, how would I properly make them able to run
> through a browser?
>
> Thanks!
> G
>
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;> react accordingly.
>>>>
>>> Thanks a lot everyone, particularly Haliphax, Nathan, Virgilio and Bob.
>>>
>>> I will try it and will come back to you.
>>>
>>
>> You're very welcome. This page [1] may help you get started. It's a
>> bit dated, but the information still holds true today.
>>
>> 1. http://whn.vdhri.net/2005/10/how_to_use_the_query_string_in_php.html
>>
>>
>>
> Hello everyone,
>
> Is there any way in which I can assign a variable to a query string?
> Like for example, Let us say that there are two php files a.php and
> b.php. I am currently using a image tag like src="imgtest.php?id=Williams Hall" /> in a.php and am passing the value
> to another variable using $build=$_GET['id']; in b.php. Now for this
> purpose, I am using the img tag in the html part of my first file which
> makes it kind of static. Now if I want to assign a variable (say
> $building) to 'id' in my first file, and retrieve it using the variable
> $build in the second file what is the best way to do it?
> Will the command (written inside the PHP tags) echo ' src="imgtest.php?id=$building />'; be of any help in performing the
> task. I have actually tried this out, but it did not work for me (May be
> my syntax is wrong although I have tried various combinations). So, is
> there a better way or correct way of doing this (If what I have done is
> wrong). I have tried to use $_session() command, but it is kind of
> yielding me a header error.
>
> Thanks,
> Sashi
>
Either:
1. a.php
--or--
2. a.php
echo '';
Then, whicher you choose above: b.php:
$build = $_GET['id'];
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to
call the function or not. This will happen if you include the file in
another one even if the function is never called.
It's hard to see the parse error without your code.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mauricio Muriel wrote:
> Hi Shawn,
>
> Thanks for your time, this is the complete code of the function (in
> fact the complete code in: xml_match.php file)
>
>
> function xml_match($columns,$text,&$result)
> {$debug=true;
> echo "Starting XML Module";
&
Mauricio Muriel wrote:
>
>
>
> Please keep replies on list.
>
> At a minimum you are missing the closing brace } for your function. I
> would suggest that you find an IDE or at least a text editor that has
> PHP syntax checking.
>
> -Shawn
>
&g
ction scope, am I right?
Yes, if you use an include inside a function, then any functions / non
global vars in the included file will only be available inside the
including function.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, the web server looks for index.html and then
index.php in /var/www/ which has a require for webroot/index.php. So
any getcwd() would be /var/www/.
Consequently, CakePHP and the other frameworks that I've seen use
basename() and dirname() in conjunction with __FILE__ to define the
paths/relative
, and
does not contain any occurrence of "--".
This being said, depending on how you do it, some browsers will get it
wrong, so to keep it simple:
An HTML comment begins with "" and does not contain
"--" or ">" anywhere in the comment.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
R/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
page
Line 7, Column 35: document type does not allow element "meta" here.
page
Line 6, Column 33: document type does not allow element "META" here.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
> On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote:
>> Sándor Tamás (HostWare Kft . ) wrote:
>>> Yes, Rob is right. My original question is about the difference between
>>> the processing of a file-based site with include() OR eval(). In tha
Robert Cummings wrote:
> On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote:
>> Robert Cummings wrote:
>>> On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote:
>>>> Sándor Tamás (HostWare Kft . ) wrote:
>>>>> Yes, Rob is right. My orig
Shawn McKenzie wrote:
> Robert Cummings wrote:
>> On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote:
>>> Robert Cummings wrote:
>>>> On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote:
>>>>> Sándor Tamás (HostWare Kft . ) wrote:
>>&g
Robert Cummings wrote:
> On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote:
>> Shawn McKenzie wrote:
>>> Robert Cummings wrote:
>>>> On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote:
>>>>> Robert Cummings wrote:
>>>>&
_
> Use Messenger to talk to your IM friends, even those on Yahoo!
> http://ideas.live.com/programpage.aspx?versionId=7adb59de-a857-45ba-81cc-685ee3e858fe
Well, that's because you are probably thinking that $file2 =
"http://remote_server/copy/test.jpg";; because you assigned i
s I have that I need to make sure
> they put values in, just I have never done this before with a password
> field.
>
> What am I doing wrong? I just want to make sure they put something there!
>
> -Jason
Could it be that your $_POST[PASSSWORD] has three "S"s in it and your
;> #WRITE ROWS TO VARIABLE
>> $_csv_data .=
>> trim($row['PHONE']).",".trim($row['DATE']).","."\n";
>> <-- THIS is where my problem is! This only writes the last row!!
>>
>> --
>>
>> Bastien
>>
>> Cat, the other other white meat
>
>
> AH!!! The Simplest Solution!! It works Absolutely 100% Perfect!!
>
> Much Thanks :)
Or even simpler and won't build a huge string if you have millions of
rows, just move your fwrite() up into the loop to write each record to
the csv:
#WRITE ROWS TO VARIABLE AND WRITE LINE TO CSV
$_csv_data = trim($row['PHONE']).",".trim($row['DATE']).","."\n";
@fwrite( $_fp, $_csv_data );
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ank_cheque == "cleared")
> {
> $set_temp = "warm";
> $drinks_order = "martini";
> $service = "massage";
> $num_ladies = $tasty . " & " . $robs_wife;
> }
> else
> {
> $blank_cheque = 0;
> }
>
> Think you shoul
aped with \
even if I urlencoded the quotes (single or double). I have
magic_quotes_gpc = on but I wouldn't think this would escape urlencoded
quotes. Is it the suhosin patch maybe or something elese?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shawn McKenzie wrote:
> Jochem Maas wrote:
>> Martin Zvarík schreef:
>>> What's the point?
>>>
>>> If user puts in a search input something like alert('I am super
>>> hacker');
>>>
>>> And the website outputs:
>
()
functions or move to a host that supports PHP5/mysqli extension.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
That web interface isn't using the mysqli functions, it probably
phpMyAdmin using the mysql functions. If you would read my previous
post you'd see that mysqli isn't supported under PHP4.
I guess I need to reply all instead of replying to the newsgroup as
people seem to not
Shawn McKenzie wrote:
> revDAVE wrote:
>> On 3/14/2009 10:36 AM, "Gary" wrote:
>>
>>> Can anyone enlighted me as to what I am not doing correctly?
>>
>> Hi Gary,
>>
>> I am hosted using a basic cpanel interface ... There's a button =
s past in a $_POST works just fine.Would there be
>> something in the php.ini file that I have changed that would case this.
>
> What method is your form using?
>
> Cheers,
>
> tedd
>
And what is an area? A textarea?
--
Thanks!
-Shawn
http://www.spidean.com
=us
If you have pear/pecl installed you can run: pecl install pdflib
If not: yum install php-pear
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
aking string comparisons? Or am
> I missing/misreading something?
>
> Paul
>
I would use $str1 === $str2 if you want to make sure they are both
strings and both the same value.
Since PHP is loosely typed, "0" == 0 is true however "0" === 0 is false.
--
Thanks!
-S
Shawn McKenzie wrote:
> Paul M Foster wrote:
>> I had never completely read over the rules with regard to comparisons in
>> PHP, and was recently alarmed to find that $str1 == $str2 might not
>> compare the way I thought they would. Is it common practice among PHP
>> cod
abase.');
while ($row = mysqli_fetch_array($result)) {
$to = $row['email'];
$first_name = $row['first_name'];
$last_name = $row['last_name'];
$msg = "Dear $first_name $last_name,\n$text";
mail($to, $subject, $msg, 'From:' . $from);
echo 'Email sent to: ' . $to . '';
}
mysqli_close($dbc);
}
?>
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Gary wrote:
> Shawn
>
> Thanks for your reply. Some of what you are saying is a little ahead of my
> lessons, but let me address as best I can. The script worked fine in the
> previous lesson where I was to send emails from my DB, this lesson is to
> kill the email from b
Shawn McKenzie wrote:
> Gary wrote:
>> Shawn
>>
>> Thanks for your reply. Some of what you are saying is a little ahead of my
>> lessons, but let me address as best I can. The script worked fine in the
>> previous lesson where I was to send emails from my D
Clancy wrote:
> On Mon, 16 Mar 2009 17:06:35 -0500, nos...@mckenzies.net (Shawn McKenzie)
> wrote:
>
>> Shawn McKenzie wrote:
>>> Paul M Foster wrote:
>>>> I had never completely read over the rules with regard to comparisons in
>>>> PHP, and
> about:
>
> $_POST['go'.$cnt]
>
> I think $_POST['go$cnt'] might also work.
>
> Bob McConnell
What Bob said, and, may I suggest that arrays would be a better way to
go here?
This auto-assign the next array index: 1, 2, 3, etc... just like in PHP:
Then access $_POST:
echo $_POST['go'][0];
echo $_POST['go'][1];
Or in a loop using your incremental var:
echo $_POST['go'][$cnt];
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mike wrote:
> http://www.redmine.org/
>
> Looks pretty useful; I want one in PHP though.
>
> Anyone?
Haven't used it, but it looks pretty cool. Guess it depends on what
features you need.
http://gforge.org/gf/project/gforge/frs/?action=FrsReleaseBrowse&frs_package_
the last argument, gammu.exe is not even called at all.
>
> Problem is that the double quotes are required by gammu to send an sms with
> spaces in it.
>
> Any ideas? :-(
>
> Luke
>
Why not try:
$command = 'C:\path\to\gammu.exe --sendsms EMS 200 -text "test1 test2"';
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at you either parse and replace vars in or just use PHP
code. As long as you keep the PHP in your templates display oriented
and not business/app logic based then it should be a nice solution.
You might also look at a framework (codeignitor, cakephp) and go through
their tutorial, though these are undoubtedly MVC/OOP, it may make more
sense once you start building something with it.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ll, I don't think you stated that at first, on the text message had
spaces. Try:
$command = '"C:\path with spaces\gammu.exe" --sendsms EMS 200 -text
"test1 test2"';
If not, you can use the good old:
$command = 'C:\pathwi~1\gammu.exe --sendsms EMS 200 -text &q
Kyohere Luke wrote:
> Hi,
>
> Tried all that - it'd work well until one of the arguments also had spaces
> and thus had "" or '' encapsulating it - this weirdness is the reason for
> this post.
> Shawn, even the good old "C:\pathwi~1\gammu.exe&q
m admin; I
> am very happy to puzzle things out my self, but sometimes I of course
> get stuck like this due to my lack of specific knowledge!
>
> Cheers: GREG...
I've never done this, but just scanning that link, did you do the
"Per-site PHP process pools" steps?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
co.uk
>
Ummm... And what if they enter or select Texas? You consider it a
valid request even though they are really from Moscow and the other
fields may be junk?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
\bin\gammu.exe
Unless some other directory is alphabetically before one of those and
reduces to the same 6 characters. For example if you have a c:\Program
or a c:\Program File\Gammu 1.111
I'm pretty sure the dir command will show you the 8.3 name.
--
Thanks!
-Shawn
http://www.spidean.com
gt; please let me know if you need any more information. any help would
> be _very_much_appreciated_!!!
>
> thanks!
>
> --fjs--
>
>
It's a cookie problem. When you visit http://www.examplemotion.com and
click add to cart and then click any link it the nav the links in the
n
Shawn McKenzie wrote:
> francisco j sanchez wrote:
>> hello. I have been working on this bug for days now, and have scoured
>> these forums and the web to no avail. I am fairly new to PHP, so
>> please forgive me if I don't provide the right info.
>>
>> he
Andrew Williams wrote:
> I have a program where I process more that 5000 list of 100 data at time
> but it very slow due to many *for statement*s. how you make it run faster
>
Without seeing the code I would have to say optimize the code.
--
Thanks!
-Shawn
http://www.spidean.com
francisco j sanchez wrote:
> Shawn,
>
> thank you so much for your reply. I think this definitely has me on
> the right track. what i need to figure out now is, is it Apache or
> PHP that is switching the domain? all the code uses relative links
> (as far as i can tell... i
e 'mysql_real_esacpe_string(' with
'clean_sql_term(' or does this replace all of my validations on inputs?
And I see the if( !function_exists('clean_sql_term'), so obviously in
some PHP versions this function exists. What versions?
--
Thanks!
-Shawn
http://www.spidean.com
-
),$antisql)
> Or
> eregi(h3x("`"),$antisql)&&eregi(h3x("TRUNCATE"),$antisql)
> Or
> eregi(h3x("NULL"),$antisql)&&eregi(h3x("ALTER"),$antisql)
> ){
> errorview();
> }
> }
> ###
> ## All Rights Reserved!
> ###
> function errorview(){
> echo <<
> aNtisQL ANTI SQL-INJECTION SYSTEM
> by Moriel Pahima
>
> antisql;
> die();
> }
> ###
> function h3x($envar){
> $hax3d = bin2hex($envar);
> $hax3d = chunk_split($hax3d , 2, "%");
> $hax3d = "%" . substr($hax3d , 0, strlen($hax3d ) - 1);
> return $hax3d;
> }
> ?>*
>
Tell him that the PHP experts and me (PHP hobbyist) on this list won't
even pick through his code because it is a garbled mass of shit!
Maybe someone else will disagree and say that its a masterpiece, then
I'll bow out gracefully.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mysqlimport had an option for using first row
as field names I think. The table may have needed to be created first
though.
If so, you could read the first line of the file and create the table
with some default like varchar(255) for each field depending on your
data, import it and then later c
Daniel Brown wrote:
> On Fri, Mar 20, 2009 at 20:06, Shawn McKenzie wrote:
>
>> How is best to update all of my code to use this new function? Should I
>> just search and replace 'mysql_real_esacpe_string(' with
>> 'clean_sql_term(' or does
pp layout/ORM maybe generation plans in the Zend_Tool piece.
FWIW, the only mature frameworks that I've seen are CakePHP, Symphony,
and maybe 1 or 2 that I can't remember. Symphony for me at least is way
too config heavy, Zend is PEAR, just a class libray but with stricter
standards, a
tell her "do it this way until you can explain to me why
> you shouldn't."
>
> Bob McConnell
There are various coding standards. There is one for PEAR, the Zend
Framework and most frameworks/large projects that take contributions
have them. Here's Zend:
http://framework.zend.com/manual/en/coding-standard.html
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
George Larson wrote:
> On Mon, Mar 23, 2009 at 8:23 AM, Shawn McKenzie wrote:
>
>> Bob McConnell wrote:
>>> From: Michael A. Peters
>>>> Angus Mann wrote:
>>>>> Hi all, I'm fairly new to PHP so I don't have too many bad habits
>>
;
> That's a strange answer. Maybe I'm dense, but what does that have to do
> with email?
>
> Cheers,
>
> tedd
>
Nothing. Jason's dad must be from the country, that's the same thing my
dad always said. Doesn't matter what you're doing, drivin
ll mean internet apps are going to be more powerful all round, both
> client and server side.
>
> Arno
>
>
Yes, it's very difficult (and probably insecure) to distribute your
entire database to all of the clients that might use it. Not to mention
all of the libraries: image
deleting "pid" file.
>>>
>>> *Well what`s happend?:*
>>> The script works well when I tune a job to work more 5min from the running
>>> time.
>>> But from some reason the script stop to run after some seconds.. and the
>>> system`s log dosent show any php`s error.
>>>
>>> BUT I found this error on my apache`s logs:
>>> *[Wed Mar 25 10:25:19 2009] [error] [client 67.205.44.109] Premature end
>>> of
>>> script headers: cron.php*
>>>
>>>
>>> I hope thats someone know what I have to do..
>>> Thanks a lot,
>>> Almog Baku, Israel.
>>>
>>> *
>>> *** My script run on Shared DreamHost, with php5 & apache on linux ***
>>> *
>>>
>>>
>>>
>>> *
>>> צור איתי קשר:* <
>>> http://www.facebook.com/profile.php?id=682327963>
>>>
>>
>
What's the code that's receiving this post? Also, if running PHP under
fastcgi, fastcgi has its own timesettings.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uot;", 2*60*60, null));
>
I was talking about timeout settings for scripts in fastcgi.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have multiple pages, then in the switch set a $filename and then
after the switch include($filename).
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lp very
> much
>
>
>
> Thanks,
>
> Jesse
Ctrl z suspends the current process running in the shell in linux. Not
sure about winbloze. Probably sends an escape char of some sort.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To un
t;
> - Ken Watkins
>
>
Even if you don't need it secure, have a login. Dad and mom can login
with dad or mom with no password if all you need to do is give them
their own cookie/session.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shawn McKenzie wrote:
> Ken Watkins wrote:
>> Hi all.
>>
>> Newbie here.
>>
>> I have set up a blog site where my family creates posts and they get emailed
>> to members of the family. To keep up with their identities, I created a
>> script for eac
next error:
>
> Fatal error: Call to undefined function printer_open().
>
> What can I do?
> Thanks for your help!
>
>
> Gerardo
>
You restarted your web server?
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ken Watkins wrote:
>>>> On 3/26/2009 at 11:12 PM, in message <70.12.30978.2144c...@pb1.pair.com>,
>>>> Shawn McKenzie wrote:
> Shawn McKenzie wrote:
>> Ken Watkins wrote:
>>> Hi all.
>>>
>>> Newbie here.
>>>
>>>
7;|{\$([^}]+)}(.+)({/\1})|Us', $out, $matches);
Gives:
Array
(
[0] => Array
(
)
[1] => Array
(
)
[2] => Array
(
)
[3] => Array
(
)
)
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mail
haliphax wrote:
> On Fri, Mar 27, 2009 at 9:40 AM, Shawn McKenzie wrote:
>> I'm normally OK with regex, especially if I fiddle with it long enough,
>> however I have fiddled with this one so long that I'm either totally
>> missing it or it's something simpl
this (example only):
switch ($_GET['file']) {
case 'yourfile':
include('files/yourfile.php');
break;
case 'somefile':
include('more_files/somefile.php');
break;
}
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
en't deduced the answer from other replies, this would
probably be more readable:
$start_time = time(); //or microtime()
//do something
$end_time = time(); //or microtime()
$duration = $end_time - $start_time;
echo $duration;
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing L
your trying to chown.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
301 - 400 of 1191 matches
Mail list logo