.
I know if you do this with wget (cli app) that you can have it re-write the domain + path url
references. But, I'm not sure if cURL has an option for that. You might RTM on the cURL options
page to find out.
http://php.net/curl
--
Jim Lucas
"Some men are born to greatness, some
Floyd Resler wrote:
> Well that's odd. locale_get_default() gave me an undefined function
> error. Apparently this year problem has been reported as a bug on
> bugs.php.net but the status for it (and everything else) is Bogus. I'm
> not sure if that means anything or not but hopefully a fix wil
s += $defaults;
END of examples...
Now, IMO, the last one is the simplest one and for me, I think it will be the
new way that I solve this type of problem.
But, my question that I put out to all of you is...
How would you solve this problem?
TIA
Jim Lucas
--
PHP General Mailing L
Eddie Drapkin wrote:
On Mon, Oct 5, 2009 at 8:48 PM, Jim Lucas wrote:
Here is a problem that I have had for years now. I have been trying to come up
with the perfect solution for this problem. But, I have come down to two
different methods for solving it.
Here is the problem...
date(
#x27;,
array('encode' => FALSE));
echo createHTMLBox('This is my TITLE',
'Item 1Item 2');
Both of the above will have different output to the screen.
Hope this clears things up.
--
Jim Lucas
"Some men are born to greatne
Mert Oztekin wrote:
> IMO, array_merge() is easy to use, however it suppose to use more cpu than
> other options. If you are a performance freak, i suggest you to not choose
> array_merge() solution. (also you execute date() and md5() functions even if
> you wont need to use them)
>
> In the ot
Haig Davis wrote:
> Hello All,
>
> I have spent the entire day trying to get my calendar app to function
> correctly --- I have no problem with the actual functioning of the
> calendar. What is giving me trouble is for each calendar day the user has
> the option to check a checkbox requesting the
Ashley Sheridan wrote:
> On Thu, 2009-10-08 at 15:54 -0300, Jonathan Tapicer wrote:
>
>> Can you show the generated XML?
>>
>> Jonathan
>>
>> On Thu, Oct 8, 2009 at 3:45 PM, Ashley Sheridan
>> wrote:
>>> Hi guys,
>>>
>>> I've knocked up a quick RSS feed on my site. It works fine in Fx 2 & 3,
>>>
Stephan Ebelt wrote:
> On Mon, Oct 05, 2009 at 05:48:32PM -0700, Jim Lucas wrote:
>> Here is a problem that I have had for years now. I have been trying to come
>> up
>> with the perfect solution for this problem. But, I have come down to two
>> different methods fo
tumped.
Tia,
Andre
FYI: did you know that your computer thinks it is in the future?
You need to check your date settings...
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by
Jay Ess wrote:
> hessi...@hessiess.com wrote:
>> I have some code which will loop over the whole $_POST array, runs it
>> through mysql_real_escape_string and then writes it all back to the array
>> again, which seams to work. Are there any incompatibility problems or
>> such
>> like with writing i
Ashley Sheridan wrote:
> On Fri, 2009-10-16 at 08:34 -0700, bruce wrote:
>
>> Hi.
>>
>> I've got a situation where I have a couple of tables. The relationship
>> between the tables is one of parent/child. I'm trying to figure out the best
>> approach to being able to delete the associated children
Dotan Cohen wrote:
> How would you read this out loud if you were to read it to someone
> over the phone?
>
> ($item->getServiceId() ? $item->getServiceId() : $item->getId(;
>
> Thanks!
>
FATAL ERROR: Non matching parenthesis.
Ok, but really, I would say something along these lines:
Op
url - so I guess that option is out.
>
> Q: what is the best way to create / display line graphs in with PHP?
>
> Thanks in advance for your help - dave
>
>
>
>
> Thanks,
> c...@hosting4days.com
>
>
>
>
>
>
I would recommend http://www.rg
c...@hosting4days.com wrote:
> Jim Lucas wrote:
>
>>
>> I would recommend http://www.rgraph.net/
>>
>> It was written and is currently maintained by a member of this list.
>>
>> Jim Lucas
>>
>
> Hi Jim,
>
> rgraph looks cool... most de
Marshall Burns wrote:
> I am developing a crawler. It has worked fine throughout testing until this
> morning, when suddenly it started yielding an access violation error. I have
> not been able to find any explanation of this. I've reduced the script to
> the following test code:
>
>
And what are you planning on doing with
the output?
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
en it has to be.
All you need is to replicate the escaping of the same characters that
mysql_real_escape_string() escapes. Simply do that. They are listed on the
functions manual page on php.net
http://php.net/mysql_real_escape_string
Here is a function that I mocked up really quick.
I have n
Jim Lucas wrote:
> Dotan Cohen wrote:
>> 2009/10/19 Kim Madsen :
>>> Dotan Cohen wrote on 2009-10-18 21:21:
>>>
>>>> I thought that one could not test if a database connection is
>>>> established or not, this is the most relevant thi
d \x1a
\0 = \x0
\10 = \n
\13 = \r
\92 = \
\44 = '
\34 = "
\26 = \x1a
You could do something like this.
function cleaner($input) {
return addcslashes($input, "\0\10\13\92\44\34\26");
}
Maybe this will help...
Jim
So far as I understand mysql_real_escape_string() was in
Jim Lucas wrote:
> Dotan Cohen wrote:
>>> So, actually taking a minute to read up on addcslashes(), it is a
>>> rather handy
>>> little function.
>>>
>>> Taking the list of characters that mysql_real_escape_string() says it
>>> esc
Dotan Cohen wrote:
>> If you look a little closer, you will see that I am not using addslashes().
>> Rather, I am using addcslashes(). This allows to specify the characters
>> that I want escaped, instead of the default assumed characters from
>> addslashes().
>>
>
> I do not know which characte
.
To squelch the warning notice that is generated, you might want to put an @ in
front of the file_get_contents() call.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brad Fuller wrote:
> I'm looking for a regular expression to accomplish a specific task.
>
> I'm hoping someone who's really good at regex patterns can lend a quick hand.
>
> I need a regex pattern that will grab URLs out of HTML that have a
> certain link text. (i.e. the word "Continue")
>
> Th
Thanks,
Ash
http://www.ashleysheridan.co.uk
foreach works with array and instances.
Unless the class implements Transversable, it's public properties are
used on the loop.
foreach($object as $prop => $value )
//php translates t
MEM wrote:
> Thank you all.
>
> Ok. Please stay with me, cause I still have some doubts.
> Not only do I need to display the subitems on click but also, when the user
> clicks on one menu item, I need to change the URI as well.
> Why? Because, each time the user clicks on a menu item (whateaver
tokenizer shared extension for php
>>> php5-xml-5.2.11_1 The xml shared extension for php
>>> php5-xmlreader-5.2.11_1 The xmlreader shared extension for php
>>> php5-xmlwriter-5.2.11_1 The xmlwriter shared extension for php
>>> [r...@ricky /]#
>>>
>>> Any ideas for a completely ignorant, non-developer type?
>>>
>>> Thanks in advance.
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>> create a small file with this code
>>
>>
>>
>> which will tell you want modules are enabled in php
>>
>> --
>>
>> Bastien
>>
>> Cat, the other other white meat
>>
>
> He already mentioned that phpinfo() fails.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
No, he mentioned that the "page" that he navigates to fails.
My best guess would be that he is getting a fatal error, like he mentioned
above, which is preventing the output of the phpinfo() to be displayed.
He needs a stripped down file that has nothing but this in it.
If that still doesn't work, the op needs to set the error level and error
reporting options in his php.ini so it will display the errors in the browser.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nick Cooper wrote:
> Hi,
>
> I was just wondering what the difference/advantage of these two
> methods of writing a string are:
>
> 1) $string = "foo{$bar}";
>
> 2) $string = 'foo'.$bar;
>
> I always use method 2 but have been noticing method 1 more and more in
> source code. Is this just user
Nick Cooper wrote:
> 2009/10/28 Jim Lucas:
>> Nick Cooper wrote:
>>> Hi,
>>>
>>> I was just wondering what the difference/advantage of these two
>>> methods of writing a string are:
>>>
>>> 1) $string = "foo{$bar}";
>
tedd wrote:
> At 2:48 PM -0400 10/28/09, Robert Cummings wrote:
>> Bob McConnell wrote:
>>> From: tedd
>>>
I found the problem, which basically was that I had declared a
variable in a preceding script with the same name, namely $user_id.
When I changed my script to $u_id, everyt
t so wise to call sed
> everytime, i would like to ask someone for help how to write preg_replace
> pattern.
>
> thanx
>
> Rene
>
I would add one thing and change another.
Adding an additional '^' to the start tells it to start at the beginning.
And changing '*' to a '+'
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
data = phpinfo_array(TRUE);
list(, $server_name) = explode(' ', $data['PHP Configuration']['System']);
print( $server_name );
This will give you what you are looking for.
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a combo box from PHP with these (or other
> classes)? By combobox I mean the / dropdown box in HTML.
>
Where will your combobox reside?
What will your combobox contain/display?
What are you going to generating your combobox with? Are you wanting to build
it with one of the two listed so
sono...@fannullone.us wrote:
> I think I've solved a problem that I had posted back in September.
> Here's a recap:
>
> ==
> I need to grab a dollar amount from a text field in a MySQL db that
> can contain more information than just the price. Here are 4 examples
> o
sono...@fannullone.us wrote:
Jim,
$parts = explode(PHP_EOL, $item['unitprice']);
$price = '$'.(( count($parts) > 1 ) ? $parts[0] :
$parts[(count($parts)-1)]);
For some reason, I couldn't get explode to work with PHP_EOL.
$parts[0] would return the en
th(get_include_path() . PATH_SEPARATOR . $basePath);
# Well, it is what it is
$filename = "{$basePath}/php/Mail.php";
# Check to see if file exists and is readable BEFORE you try including it
if ( is_file($filename) && is_readable($filename) ) {
require_once $fil
ct DB settings, and have it connect
to the DB. If that doesn't work, try using a command line utility that came with your mysql
installation.
Jim Lucas
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them.&qu
ode() on a given string. My guess is that json_decode()
set an internal variable that json_last_error() picks up and returns.
Without having json_decode() say what the problem was/is then you can never
recreate the json_last_error() function.
Jim Lucas
--
PHP General Mailing List (http://www.
Lester Caine wrote:
>
> I often find that it's quicker to ask - because invariably the answer
> presents itself the second you hit send ;)
>
Isn't that the truth!
Jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Because you are trying to look for a file or folder called test in the "C:/Program Files/Apache
Software Foundation/Apache2.2/test" directory.
Jim
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Ashley Sheridan wrote:
> On Thu, 2010-01-07 at 08:32 -0500, Rick Dwyer wrote:
>
>> Thanks Ashley & Nathan.
>>
>> As it turns out, there is more than one "tmp" folder... and I was
>> looking in the wrong one. When I SSH'd in the correct one, I created
>> the missing file and it began to work p
he second included the first, it would
still have the same results.
Simple test:
CONTENTS
EOF
No, as is, this will return 'No'. But if you place /ANY/ character between the
?>
\n. But, you better make sure that nothing else is there along with it.
J
Richard Lynch wrote:
> The subject line says it all:
>
> mysql_real_escape_string(0x) yields -1
>
> What's up with that?
>
> Is there some way to convince mysql_real_escape_string to use BIGINT?
>
> I guess I'll just PCRE for digits and then pass it in and...
>
> But what if somebody p
/clk.atdmt.com/GBL/go/196390709/direct/01/
How about showing a little of the insert code. ie: how you are gathering the
data, how you are preping the data, and the actual insert statement.
--
Jim Lucas
NOC Manager
541-323-9113
BendTel, Inc.
http://www.bendtel.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s presentation. Jump to slide 11.
>
> http://www.phpclasses.org/browse/video/3/package/9.html
>
> If you want to use this solution, the MIME message package has a driver
> class for queueing messages in Exchange pickup queue directory . Take a
> look at the test_pickup_message.php example script.
>
>
> http://www.phpclasses.org/mimemessage
>
>
--
Jim Lucas
NOC Manager
541-323-9113
BendTel, Inc.
http://www.bendtel.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
evaluated at compile time and must not depend on run-time
information in order to be evaluated.
[/quote]
Basically, anything that requires the concatenation of string parts or usage of variables is not
allowed.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
ial to JOE. Pffft. Real men use Vim. And Emacs is for
Martians with ten fingers on each hand.
I use mg on OpenBSD. Somewhat the same as Emacs. Just a simplified version of
it.
And yeah, for what it's worth, I've been running Linux since 1996.
And yeah, cats are smarter than dogs.
Fla
ISTS `wine` (
`wineid` int(11) NOT NULL auto_increment,
`barcode2` int(11) NOT NULL,
PRIMARY KEY (`wineid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin AUTO_INCREMENT=4 ;
INSERT INTO `wine` (`wineid`, `barcode2`) VALUES
(1, 5),
(2, -5),
(3, 10);
--
Jim Lucas
A: Maybe beca
dex.htm, index.html, or index.php
Basically, with PHP, you need to make sure that anything you include is actually
in your include path. Check that and let us know what you find.
--
Jim Lucas
NOC Manager
541-323-9113
BendTel, Inc.
http://www.bendtel.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are limited.
>
>
>
Might I ask, how are the multiple slashes getting generated in the first place?
Where is the data coming from?
Next question would be: Do you want to completely remove all instances of
multiple backslashes? Or, do you want to replace all instances of multiple
backsla
max_array_depth($row);
}
$cur_depth--;
}
}
max_array_depth($in);
echo "Max depth of array is: {$max_depth}";
?>
http://www.cmsws.com/examples/php/testscripts/dae...@daevid.com/0002.php
--
Jim Lucas
NOC Manager
541-323-9113
BendTel, Inc.
http://www.bendtel.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$tonames = (is_array($tonames) ? $tonames : array($tonames) );
$toemails = (is_array($toemails) ? $toemails : array($toemails));
--
Jim Lucas
NOC Manager
541-323-9113
BendTel, Inc.
http://www.bendtel.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
] => 311
>
> [letter] => -
>
> [2] => -
>
> )
>
> Array
>
> (
>
> )
>
> However that's as far as it goes. For the other number it returns an empty
> array and I know why, the decimal point. Now I can evaluate each $item
impact on the size of the file, and all the while it's
>> very easy to read. If you've accidentally missed out a closing brace
>> you'll spot it immediately.
>>
>> It's called the Allman style and has another advantage. Consider:
>
> While we all love Ash, he is a blasphemer, as he argues against the One
> True Style, which is K&R. (Please forgive him, Lords Kernighan and
> Richie). ;-}
>
> In the OP's case, his error was syntax (a condition after an else
> clause). But I don't know that even a syntax-highlighting editor would
> have caught his error.
>
> Paul
>
The syntax highlighters that I use didn't recognize it as a problem. They
styled it right up...
--
Jim Lucas
NOC Manager
541-323-9113
BendTel, Inc.
http://www.bendtel.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s one and
thought it was very informative.
http://devzone.zend.com/article/4497-The-ZendCon-Sessions-Episode-17-SQL-Query-Tuning-The-Legend-of-Drunken-Query-Master
It is pretty long, but it contains a lot of good information.
Listen the part about how many records you can contain in memor
27;test')or die('Error
>> connecting to
>> MySQL server');
>>
>> $query="INSERT INTO name(fname, lname)"."VALUES('$fname','$lname')";
>>
>> $result=mysqli_query($dbc, $query)
>> or die('Error querying dat
too. This is achieved by having two separate
tables to hold the data. It is a 1 to nth relationship.
PS: Gary, fix your mail server. It is telling me that you don't exist.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness th
rport security doesn't allow them to use
their terminals to run
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
named "nobody"] and permissions 755.
>
> Is there any way the files could have been written other than by ftp
> access or at the host root level? Clearly a php script couldn't.
>
> Thanks, Al..
>
What version of Apache/PHP is it running?
--
Jim Lucas
entler.de/tools/filemanager/
Put it in a password protected area on your server and you have it made.
It comes with syntax highlighting that has worked for me so far.
--
Jim Lucas
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because i
host Recon, etc.).
My gamer tag is "special tedd"
What's your game?
Cheers,
tedd
Battlefield 2142 Call Sign: ChefLord
--
Jim Lucas
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order
understand the basics of these two sections,
present some code that you think does the trick and we can give you advice.
--
Jim Lucas
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally
ne files for us.
Might try something similar. It would be a lot safer then giving root access
via PHP... :)
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespear
echo "Some Error Occured While Inserting Records";
}
}
}
}
}
mysqli_close($batchconnection);
}
?>
__ Information from ESET Smart Security, version of virus signature
database 5076 (20100430) __
The message was checked by ESET Smart Security.
htt
sing? Is it Apache, lighttpd, php daemon, etc?
If it is anything but directly talking to a php daemon, you must take into
consideration that the parent web server does not hand off processing to PHP
until it has received the entire file. At this point is when your timer script
starts workin
"i" in team."
I'm pretty sure the ones who helped me figure this one out will find
the humor in that one. :-)
Maybe no 'i' but there's "me", "met", "meat", "eat", "at", and "am" :)
Cheers,
Rob.
+ mat
[0] => 261
)
[EGYPT] => Array
(
[0] => 53
)
[INDIA] => Array
(
[0] => 62
[1] => 50
)
)
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatnes
Paul Halliday wrote:
> On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote:
>> Paul Halliday wrote:
>>> I have this:
>>>
>>> while ($row = mysql_fetch_array($theData[0])) {
>>>
>>> $col1[] = $row[0];
>>> $col2[] = lookup($row[
;
>
> Post a regex and what you think it should match but doesn't.
>
>
Again...
Why don't you show us an example of what it is you are trying to match this
against. Then, after that example, show us what you would like to see as the
output.
Then, send us a copy
.$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol;
$msg .= "This is a multi-part message in MIME format.".$eol;
$msg .= "If you are reading this, please update your
email-reading-software.".$eol;
$msg .= "+ + Text Only + +".$eol.$eol;
# Finished
$msg .
text-align: left;
}
--
Jim Lucas
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
--
PHP General Mailing List (htt
'',
);
# Original String
echo $text."\n";
# After regex is applied
echo preg_replace($regex, $replacements, $text)."\n";
# After plain tag replacement happens
echo str_replace($oldtags, $replacements, $text)."\n";
?>
See if that works for you.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Al wrote:
>
>
> On 5/20/2010 11:23 AM, David Otton wrote:
>> On 20 May 2010 15:52, Al wrote:
>>
>>> I agree blacklisting is a flawed approach in general. My approach is to
>>> strictly confine entry text to a whitelist of benign, acceptable
>>> tags. The
>>
>> But that's not what you've done. Yo
epending on what version of apache you are running, you need to make sure that
you are loading the pgsql.so file or have the psql.ini file in your
/var/www/conf/php5/ directory.
This way it knows to load pg.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
an
er msg which says to
> contact tech support with a link.
>
>
>
Do you actually "show them" the error. That would give away your mystical
powers of detection... :)
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have gre
ysql from php
3. prepare the SQL query
4. executing said query
5. collecting/displaying the results of executed query
As you can see, you gave us step 3. The problem could be in any of the
other setups.
--
Jim Lucas
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get
t be doing? (Happened to me once...)
Are you accessing the files via http://localhost/... ?? or as a local file?
--
Jim Lucas
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read
they are all at home.
>
> :)
>
--
Jim Lucas
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
--
PHP General Mailing
Sam Smith wrote:
> Can someone briefly point me to the functions I'll need to parse some
> information from thousands of files in a single directory and then
> prepare the extracted info into a single file for SQL import?
>
> Like file() or readfile() and some regex and writefile??
>
> Thanks
>
rocessing
script that processes said form. Change all the forms to use a single
processing script and then you won't have such a big problem tracking down the
"information processing error/insecurity" that you are having.
--
Jim Lucas
A: Maybe because some people are too annoyed by to
Roberts suggestion. Please go back and re-read his
message. Once you understand what information will be sent to you, you will
realize by implementing this technique that you will be given all the
information you need to identify the source of the problem. Then, hopefully you
will also get the
$year1 = (int)$_POST['year1'];
$date_value1= "{$year1}-{$month1}-{$day1}";
#if ( !checkdate($month1, $day1, $year1) )
if ( ($date_value1_ts = strtotime($date_value1) ) === FALSE )
{
echo "Invalid Date.\n";
} els
OR, __DIR__);
> $web_root = '/' . implode('/', array_diff($cwd, $root));
> echo $web_root;
> ?>
>
> maybe there is a function for that :D:D:D
>
> Br
> Tanel
>
>
>
If I understand what you are asking for, I think this will work.
-
Tanel Tammik wrote:
> "Jim Lucas" wrote in message
> news:4c0e99d9.20...@cmsws.com...
>> Tanel Tammik wrote:
>>> Hi,
>>>
>>> i like to find the web root where the current file is. is there a better
>>> solution? it must work both o
Jim Lucas wrote:
> Tanel Tammik wrote:
>> "Jim Lucas" wrote in message
>> news:4c0e99d9.20...@cmsws.com...
>>> Tanel Tammik wrote:
>>>> Hi,
>>>>
>>>> i like to find the web root where the current file is. is there a
mrfroasty wrote:
>
> //NOTHING!!!//
>
Well Mr. Froasty, was there a point to your email or do you always send empty
emails with random files attached to them to list the list? Was their suppose
to be a question along with that email? You simply forgot to add it?
--
Jim Lucas
A: Mayb
y is referenced, foreach operates on a copy of the
specified array and not the array itself. foreach has some side effects
on the array pointer. Don't rely on the array pointer during or after
the foreach without resetting it.
--
Jim Lucas
A: Maybe because some people are too annoyed by top-
lue is ignored in PHP 5.3 unless php is compiled with
--enable-zend-multibyte.
[/quote]
Also, doesn't look like you are using the "register_tick_function()" function.
Is it required? Not sure, but their examples show its usage.
--
Jim Lucas
A: Maybe because some people are too annoyed by
ne 73
>
>
> The relevant lines are :
>
put a var_dump($thumbarray); right here and see what $thumbarray is
>
> 72 reset($thumbsarray);
>
> 73 while (list($key, $value) = each($thumbsarray)) {
>
> The site is at www.aadf.co.uk and select 'News'.
>
> Is
>> -
>> Richard Quadling
>> "Standing on the shoulders of some very clever giants!"
>> EE : http://www.experts-exchange.com/M_248814.html
>> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
>> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND0024
e. The problem is more
the likely the calls to include a remote file. Basically, to expand your
variables out, you would be doing this:
include ( 'http://localhost/~user/new_project/sql/sql_dflts.inc' ) ;
include ( 'http://localhost/~user/new_project/fnc/fnc_include_dir.inc' ) ;
Danny wrote:
> Thanks Ashley and Jim,
>
>> When you say 'sessions did not work' what do you mean? Sessions aren't being
>> created? You can't access session variables? You need to be a bit more
>> specific
>> about the issue.
>
> Sorry, h
#x27;];
With that said, going back to your issue, you would do this:
if ( $_REQUEST['painDesc'] && count($_REQUEST['painDesc']) ) {
foreach($_REQUEST['painDesc'] as $key => $val) {
echo "{$key}:{$val}";
}
}
--
Jim Lucas
A: Maybe because some people ar
at said, it will be much slower. It
has to detect what type of object it is and then deal with all the pieces. And
then in the end, output everything to the screen.
--
Jim Lucas
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Becaus
can
> find it in the archives again?
>
David,
Daniel Brown wrote a weekly summary stats app that scanned his email account and
totaled the number of lines of code someone wrote in their email sent to the
mailing list. It might worth while to ask him for this code detection
method(s).
click on the city, the list blinks and then deletes the contents of
the state and zip code dropdown menus.
System: Windows XP SP3 + FF v3.5.3 w/Firebug
Checking with my Opera 9.24 install, seems to do something similar. Timer is
very fast and it doesn't allow for me to click on anything.
Floyd Resler wrote:
> On Jul 9, 2010, at 1:58 PM, Jim Lucas wrote:
>
>> Paul M Foster wrote:
>>> On Fri, Jul 09, 2010 at 10:43:09AM -0400, tedd wrote:
>>>
>>>
>>>
>>>
>>>> Here's an example of my copy working:
>>&g
e latin1_bin NOT NULL,
PRIMARY KEY (`Product_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_bin AUTO_INCREMENT=5 ;
INSERT INTO `products` (`Product_ID`, `Product_Name`) VALUES
(1, 'Product A'),(2, 'Product B'),(3, 'Product C'),(4, 'Product D'
"archivo"]["name"];
> $field = $_FILES["archivo[]"]["name"];
>
> i dont know how to validate it, any help would be appreciated.
>
> Thanks,
>
To see what is happening, look at the output of print_r($_FILES);
But, you should be doing it like th
Phillip Baker wrote:
> Thanks Jim,
>
> This outputs 2 results.
> Is there a way to get the one result set per product regardless of the
> number of categories associated with the product, yet displaying all the
> categories associated with said prodcut?
Run this:
SELEC
901 - 1000 of 2798 matches
Mail list logo