I think the best option for me is to refactorise my code a bit to cater to my
situation. Thanks all for your help.
Jeffery
On Fri, 30 Nov 2007 02:32:11 pm Jeffery Fernandez wrote:
> On Fri, 30 Nov 2007 02:13:52 pm Chris wrote:
> > Jeffery Fernandez wrote:
> > > On Fri, 30 No
On Fri, 30 Nov 2007 02:13:52 pm Chris wrote:
> Jeffery Fernandez wrote:
> > On Fri, 30 Nov 2007 02:01:47 pm Chris wrote:
> >> Jeffery Fernandez wrote:
> >>> Hi all,
> >>>
> >>> Is it possible to rewind a foreach loop? eg:
>
On Fri, 30 Nov 2007 02:01:47 pm Chris wrote:
> Jeffery Fernandez wrote:
> > Hi all,
> >
> > Is it possible to rewind a foreach loop? eg:
> >
> >
> > $numbers = array(0,1,2,3,4,5,6,7,8,9,10);
> >
> > foreach ($numbers as
Hi all,
Is it possible to rewind a foreach loop? eg:
$numbers = array(0,1,2,3,4,5,6,7,8,9,10);
foreach ($numbers as $index => $value)
{
if ($value == 5)
{
prev($numbers);
}
echo "Value: $value" . PHP_EOL;
}
The above doesn't seem to work. In one
oops me bad.. I just needed the last (4th) parameter added.
cheers,
Jeffery
On Wed, 28 Nov 2007 04:59:35 pm Jeffery Fernandez wrote:
> Hi all,
>
> I am wanting to retain the array indexes after it being sliced. Here is
> what I have so far.
>
> if ($user_count > $group_c
Hi all,
I am wanting to retain the array indexes after it being sliced. Here is what I
have so far.
if ($user_count > $group_count)
{
for ($i = 0; $i < $user_count; $i+=$group_count)
{
$output = array_slice($properties['users'], $i, $group_count);
Hi all,
I am having trouble generating a sequence of numbers from the following start
value:
AX0001
what I have done so far is loop through each character and check if its a
alphabet and separating the characters and digits.
But when I increment the digits, its strips of the leading zeros. How
On Thu, 15 Nov 2007 11:48:07 am Stephen Edberg wrote:
> On Thu, 15 Nov 2007, Jeffery Fernandez wrote:
> > Hi all,
> >
> > I am having trouble generating a sequence of numbers from the following
> > start value:
> > AX0001
> >
> > what I have done so fa
On Monday 01 October 2007 16:01, Crab Hunt wrote:
> Hi,
> Is there a fix for removing the junk characters that appear when we copy
> and paste some text from Microsoft word into a php form ? For example the
> double quotes "" turn into something like *â??*
>
> thanks in advance.
Some WYSIWYG edit
On Friday 28 September 2007 11:21, Jeffery Fernandez wrote:
> On Friday 28 September 2007 11:09, Nathan Nobbe wrote:
> > just curious, what database are you using?
>
> I am using MySQL Ver 14.12 Distrib 5.0.22
Any clues Nathan?
I have done some further testing and found tha
On Monday 01 October 2007 10:08, Bruce Cowin wrote:
> Yet another update! I managed to get rid of the CGI error by turning off
> error logging to the syslog. But now I get this message:
>
> PHP Warning: PHP Startup: Unable to load dynamic library
> 'c:\php\ext\php_timezonedb.dll' - Access is deni
gee you guys behave like kids. don't you all have other things to do than
whinge, swear and blame each other on the list? Take it elsewhere and sort
it out. This is bad for the PHP community in general. It doesn't reflect what
the community is about.
my 2c.
On Sunday 30 September 2007 13:47,
On Friday 28 September 2007 11:09, Nathan Nobbe wrote:
> just curious, what database are you using?
I am using MySQL Ver 14.12 Distrib 5.0.22
cheers,
Jeffery
>
> -nathan
>
> On 9/27/07, Jeffery Fernandez <[EMAIL PROTECTED]> wrote:
> > I am having nightmares with thi
I am having nightmares with this bit off code.
The following code work perfectly fine:
$soap_request_string = <<
http://www.w3.org/2003/05/soap-envelope";
xmlns:ns1="urn:Gateway_Proxy" xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:en
On Thursday 27 September 2007 04:21, Carlton Whitehead wrote:
> Hi everyone,
>
> I'm working on a script that downloads archived fax images (TIFFs and PDFs)
> from a MS SQL Server using the PDO ODBC driver. I get the below error
> regardless of which fax I try to get from the database. Each fax is
I have a SOAP request logger which logs all SOAP requests/responses being made
on the system. What I want to do is extract the function name being called and
the params passed to it. The following is an example XML Request:
http://www.w3.org/2003/05/soap-envelope";
xmlns:ns1="urn:Gateway_Proxy"
On Sunday 22 July 2007 14:19, Jeffery Fernandez wrote:
> I have a similar problem I am facing with session data stored in the
> database from the set_session_handler.
>
> What I am trying to do is show a list of online users and the page they are
> currenlty viewing. For this pur
I have a similar problem I am facing with session data stored in the database
from the set_session_handler.
What I am trying to do is show a list of online users and the page they are
currenlty viewing. For this purpose I am query the sessions table to get the
list of session and from that I lo
On Mon, 3 Jul 2006 11:09 pm, Mariano Guadagnini wrote:
> I've seen some places using a java applet for this. A good example is
> the course uploading interface of Blackboard LMS.
>
> Martin Staiger wrote:
> > Dear group,
> >
> > we would like to have the possibility to upload files not via HTML-for
Labunski wrote:
How to get url of the page the php script is on?
In other words, I want to know whether I'm in page "news.php" or in
"posts.php", or in some other page. Is there any simple way to get tis info?
Thanks,
Lab.
if (basename($_SERVER['PHP_SELF']) == 'news.php')
{
// do whatever
Simon Reye wrote:
I'm moving away from Cold Fusion and am considering java or php. I've
mucked around with Struts and Coccoon on the java side and think they
are great. There does not however seem to be any well backed projects
similar to these for php.
Can anyone point me to a good php MVC f
Steven Altsman wrote:
I’ve beaten my head against the desk repeatedly, RTFM’ing until my
eyes are sore, the boss is still at my back.. and I’m completely lost.
I’d love to grok intricacies of compiling C code and setting
environment variables.. but I am dead once February 15^th rolls around
and
Jochem Maas wrote:
Ben Edwards (lists) wrote:
Am I correct in thinking Magic Quotes automatically adds quotes to all
posted variables, therefore if you are displaying post variables on a
form you have to remove the quotes. They are only needed if you are
actually inserting/updating into the databa
:-)
cheers,
Jeffery
On Mon, 7 Feb 2005 17:10:32 -0600, Greg Donald <[EMAIL PROTECTED]> wrote:
On Tue, 08 Feb 2005 09:37:11 +1100, Jeffery Fernandez
<[EMAIL PROTECTED]> wrote:
I have the following 2 functions which I intend to clean GPC off slashes
if magic_quotes_gpc is turned on.
fu
I have the following 2 functions which I intend to clean GPC off slashes
if magic_quotes_gpc is turned on.
function StripGpcSlashes()
{
if (get_magic_quotes_gpc())
{
$_POST = array_map('StripSlashesDeep', $_POST);
$_GET = array_map('StripSlashesDeep', $_GET);
$_COOKIE = arr
Todd Cary wrote:
I have the following:
$p = http://209.204.172.137/casesearch/php/home.php";>Home
However, when I have
print($p); or
echo $p;
the result page does not display as a link; just as the text above.
What have I missed?
Todd
try:
http://209.204.172.137/casesearch/php/home.php";>Home';
ech
Jochem Maas wrote:
Jeffery Fernandez wrote:
Jochem Maas wrote:
...
Yes the example sent by Kurt Yoder worked for me. I coudn't work out
the errors with the class you sent me. I realised it was written for
PHP5 in mind ?... or maybe I wasn't patient enough to spent time
debugging
ore';
usort($this->mSearchData, array(& $this, 'sort_array'));
cheers,
Jeffery Fernandez
http://melbourne.ug.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jochem Maas wrote:
Jeffery Fernandez wrote:
Kurt Yoder wrote:
Use usort (stealing from php docs):
function cmp($a['score'], $b['score'])
{
if ($a['score'] == $b['score']) {
return 0;
}
return ($a['score'] < $b['score
data, "cmp");
This won't work for me as I have 500+ records to sort based on the score
key.. looking at jochem's class now. Thanks
Jeffery
On Jan 23, 2005, at 8:39 AM, Jeffery Fernandez wrote:
I have the following multi-dimentional array and I want to sort it by
the "score&
I have the following multi-dimentional array and I want to sort it by
the "score" key value
print_r($data);
Array
(
[0] => Array
(
[video_id] => 71
[old_id] => 7854
[title] => When the fire comes
[video_copies] => 1
[running_time] =
Rasmus Lerdorf wrote:
Jeffery Fernandez wrote:
Hi all,
I have a foreach loop on an array and within that loop I need to find
if the array has reached the last pointer. I have tried
if (next($row))
{
}
but that advances the pointer. Any tips on finding out if the array
pointer has reached the
Hi all,
I have a foreach loop on an array and within that loop I need to find if
the array has reached the last pointer. I have tried
if (next($row))
{
}
but that advances the pointer. Any tips on finding out if the array
pointer has reached the last element ?
cheers,
Jeffery
--
PHP General Mai
Gal wrote:
Hello,
I'm Working in organization which also using php on the Windows platform.
Because of the security holes in the older version and a COM bug at
PHP 4.3.10 (http://bugs.php.net/bug.php?id=31159) we are using a
problematic version.
Does anyone here knows - what is the status of the
Brian Dunning wrote:
I should add that I'd heard that the following will set the
include_path to the server root, no matter where you call includes from:
ini_set ("include_path", ini_get ("include_path") .
':../:../../:../../../:../../../../');
But this doesn't seem to be doing it for me. Als
Mat Harris wrote:
On Fri, Dec 17, 2004 at 08:20:36 -0500, GH wrote:
Hi...
I am looking for a FREE PHP IDE that uses syntax highlighting and
code completion amongst other features...
Do any of you have any recommendations... again I am looking for FREE
(not much budget for me)?
I use BOTH Linux a
Wee Keat wrote:
Hey Jeff,
How are you mate? Was lazying around and saw your email to the list. :)
What exactly do you need help with? Is it the following line?
// Stuck here
$html_menu .= "$sub_page";
}
$html_menu .= '';
Do you need to get the value of the link and
I am trying to build a html menu dynamically from data sitting in an
array. I have been successful so far until it came to the point of
populating the sub-menu of the system. Can someone help me out with the
logic or is there a simpler way of doing it? Thanks
/**
* This function builds the a
Hi,
I am trying to find out if its possible to authenticate a page against
an HTTP authentication. Basically what I am trying to do is make
available the stats page of the Cpanel to the admin interface of a site.
When accessing the stats via the cpanel the user needs to login via http
authentic
Merlin wrote:
Greg Beaver wrote:
Merlin wrote:
Hi there,
I am trying to get a class running which requires pear:DB.
I downloaded the package and executed:
# pear install DB-1.6.8.tgz
DB already installed
pear upgrade DB-1.6.8.tgz
Hi,
I successfully upgraded with this command. However the system s
Burhan Khalid wrote:
Rayan Lahoud wrote:
Does anybody knows how to install a pear package. i have the inline_C
package that i want to install and use. And can i have some sample
functions using this package?
pear install Inline_C -- that's it.
You don't need to restart Apache, or load any module
Greg Donald wrote:
On Sat, 20 Nov 2004 13:52:32 -0800, Jed Smith <[EMAIL PROTECTED]> wrote:
PHP attached to different Apaches can't share sessions, AFAIK. You'll
need to make sure it's the same copy of Apache, listening on both ports
The simplest solution is to use database managed PHP sess
Octavian Rasnita wrote:
What do you mean by "perl discontinued"?
Perl 5 is continuu updated and this year I have seen perl 5.8.1, 5.8.3,
5.8.4, 5.8.5 is almost done.
That was meant to be a JOKE lol
Perl 6 is planned to run in a precompiled code (like Java programs) in an
environment that will al
43 matches
Mail list logo