This should help you out
http://stackoverflow.com/questions/365191/how-to-get-time-difference-in-minutes-in-php
On Oct 6, 2013 6:07 PM, Farzan Dalaee farzan.dal...@gmail.com wrote:
Its so freaky
Best Regards
Farzan Dalaee
On Oct 7, 2013, at 2:29, Jim Giner jim.gi...@albanyhandball.com
You commented out the setting of yhe addresses variable
On Jul 6, 2013 1:42 PM, Tim Dunphy bluethu...@gmail.com wrote:
Hey all,
I'm trying to pick up some basic use of MongoDB using PHP.
I seem to have hit an early obstacle that I'd like your opinion on. I try
to pass an array to the
On Mon, Apr 15, 2013 at 12:14 PM, Larry Martell larry.mart...@gmail.comwrote:
I have a client that has an app the runs with PHP 5.1.6. They want to
upgrade to 5.3.3. First issue I ran into, they have a line of code
that is:
$deftz = date(T);
I'm getting this for that line:
[Mon Apr 15
Since you already have the return statement with the if statement the else
isn't required. If those three statements are true you would exit the call
any ways
On Mar 11, 2013 4:33 PM, Angela Barone ang...@italian-getaways.com
wrote:
I'm looking for an 'unless' statement, but as far as I
`page` = '$page';
$result = mysql_query($query) or die ('Error! -- ' . mysql_error());
On Mon, Mar 11, 2013 at 5:48 PM, Angela Barone
ang...@italian-getaways.comwrote:
On Mar 11, 2013, at 2:38 PM, Jonathan Sundquist wrote:
Since you already have the return statement with the if statement
Angela,
the variable $current_page does not exist. so $curent_page does not equal
$saved_page. Also the ! in front of the entire statement means that all of
this is false. Since one items is true and not true = false Don't save
is echoed out.
If you are looking to save the results based on the
that I should come here for
help, so here I am.
Can anyone shed some light as to what is (or might be) going on?
Any help or guidance that can be offered will be greatly appreciated.
Jonathan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and classes/objects in the initialize script are the
culprit.
I greatly appreciate the assistance,
Jonathan
On 2/9/2013 2:34 PM, Stuart Dallas wrote:
On 9 Feb 2013, at 19:00, Jonathan Eagle jeo...@attglobal.net wrote:
I'm having a problem with a very straightforward routine; one that works
Matijn,
Thanks for the suggestion. Your suspicions were correct. I am now
tracking down the culprit.
Jonathan
On 2/9/2013 2:34 PM, Matijn Woudt wrote:
On Sat, Feb 9, 2013 at 8:00 PM, Jonathan Eagle jeo...@attglobal.net wrote:
I'm having a problem with a very straightforward routine; one
My 'display_errors' is ON and my 'error_reporting' is 22517. I'm
not sure what that means but it looks as if I should be getting error
messages somewhere.
Jonathan
On 2/9/2013 4:02 PM, Stuart Dallas wrote:
On 9 Feb 2013, at 21:00, Jonathan Eagle jeo...@attglobal.net wrote:
Stuart,
Thanks
what seems to be a bunch of error log files.
I will look through those and see what I can find.
Thanks again,
Jonathan
,
On 2/9/2013 4:14 PM, Matijn Woudt wrote:
On Sat, Feb 9, 2013 at 10:08 PM, Jonathan Eagle jeo...@attglobal.netwrote:
My 'display_errors' is ON and my 'error_reporting
For Zend Framework 2, take a look at https://github.com/ZF-Commons/ZfcUser
On Wed, Jan 30, 2013 at 10:19 AM, Adolfo Olivera
olivera.ado...@gmail.comwrote:
You can take a look at the classes from the Zend Framework (they can be
used
stand alone as well)
Thanks Marco, which classes
If you are expecting the email address to always be the same but the first
part being different you can create a regular expression to match it that
way. Using a regular expression over all is going to be your best bet as
shiplu suggested.
On Sat, Jan 26, 2013 at 10:54 AM, shiplu
1/3/2012 is in fact less then 9/16/2012.
On Thu, Jan 3, 2013 at 3:57 PM, Marc Fromm marc.fr...@wwu.edu wrote:
I am comparing to dates.
define('WSOFFBEGIN','09/16/2012');
$jes = 01/03/2012;
if ( date(m/d/Y, strtotime($jes)) date(m/d/Y, strtotime(WSOFFBEGIN))
)
{
$error
Marc,
When you take a date and do a strtotime you are converting it to an int
which you can compare to each other much easier. So for your above example
you would be best doing.
define('WSOFFBEGIN','09/16/2012');
$jes = 01/03/2012;
if ( strtotime($jes) strtotime(WSOFFBEGIN) )
{
$error
On Thu, Dec 20, 2012 at 9:34 AM, Jim Giner jim.gi...@albanyhandball.comwrote:
If you are using mysql for a db, then you should already be using
mysql_real_escape_string in place of addslashes.
You should not be using mysql_real_escape_string going forward as it will
be deprecated in php
What does it say when you call imap_errors or imap_last_error?
On Tue, Dec 4, 2012 at 10:02 AM, Farzan Dalaee farzan.dal...@gmail.comwrote:
i dont have access to log files on server
On Azar 14, 1391, at 5:51 PM, Daniel Brown wrote:
On Tue, Dec 4, 2012 at 8:10 AM, Farzan Dalaee
= 'mail.mydomain.net:143/pop3';
$user = 'x...@mydomain.net';
$password = 'myPassword';
$mailbox = {$host}INBOX;
$mbx = imap_open($mailbox , $user , $password);
$check = imap_check($mbx);
On 12/4/12, Jonathan Sundquist jsundqu...@gmail.com wrote:
What does it say when you call imap_errors
service like ssl setting or
somthing like that
Or this host im using block imap or pop3 access
Best Regard
Farzan Dalaee
On Dec 4, 2012 10:03 PM, Jonathan Sundquist jsundqu...@gmail.com
wrote:
Try removing the call to the inbox and try getting a list of all the
folders using
for looking,
Jonathan
There appears to be quite a few examples,
https://www.google.com/search?q=php+snmp+examplehttps://www.google.com/search?q=php+snmp+exampleaq=0oq=php+snmp+sugexp=chrome,mod=0sourceid=chromeie=UTF-8,
and tutorials,
There appears to be quite a few examples,
https://www.google.com/search?q=php+snmp+examplehttps://www.google.com/search?q=php+snmp+exampleaq=0oq=php+snmp+sugexp=chrome,mod=0sourceid=chromeie=UTF-8,
and tutorials,
It means we require more cowbell.
On Fri, Oct 5, 2012 at 3:34 PM, Steven Staples sstap...@mnsi.net wrote:
Subject: [PHP] Friday - Return of Brain Teasers
About five-and-a-half years ago, we had a brainteasers thread going
on[1]. Last year it was briefly resurrected[2], and both
What version of centso are you running?
- The cold winds are rising
On Sep 24, 2012 10:28 PM, lx lxlenovos...@gmail.com wrote:
Hello:
I have installed the PHP and Apache by RPM, and the version of rpm
packets is:
httpd-2.2.3-63.el5.centos.1.x86_64.rpm
apr-1.2.7-11.el5_3.1.x86_64.rpm
Depending on how long you have why not just do an alias? No redirect
required.
On Fri, Aug 17, 2012 at 2:35 PM, Tristan sunnrun...@gmail.com wrote:
So, I need to change from somedomain.com to somenewdomain.com
I was thinking of doing this
1) create an alias to the site somenewdomain.com to
With file_put_contents you send a flag to lock the file and avoid
concurrency problems, eg:
file_put_contents('/some/file', 'data', FILE_APPEND | LOCK_EX);
Regards,
Jonathan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
You should use the function session_set_cookie_params to set the
session cookie domain to .oire.org like this comment explains:
php.net/manual/en/function.session-set-cookie-params.php#94961
Regards,
Jonathan
On Mon, Dec 20, 2010 at 7:18 PM, Andre Polykanine an...@oire.org wrote:
Hello php
Hi,
I don't know if it meets all of the features you enumerated but Mantis
(http://www.mantisbt.org/) is very good, and it is PHP+MySQL (or
Postgres, or MSSQL).
Jonathan
On Thu, Nov 11, 2010 at 7:23 PM, Don Wieland d...@dwdataconcepts.com wrote:
Hi gang,
I am looking into Project Management
On Wed, 20 Oct 2010 08:37:55 +0200, php-gene...@garydjones.name (Gary)
wrote:
Better. I can tell you how to solve it:
$a = array('a', 'b','c');
foreach($a as $row){
//you don't have to do anything here
}
unset($row); // THIS IS KEY!
print_r($a);
foreach($a as
I've got a script which originally contained the following piece of
code:
foreach ( $objs as $obj ) {
do_some_stuff($obj);
}
When I tested it, I found that on every iteration of the loop the last
element of $objs was assigned the value of the current element. I was
able to step through the
and what if you serialize your String? You can save Objects in it...
True, but the defined format for the item in the database is a zip file
(it gets exported later to another, external, application which eats zip
files) :-(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
of creating the data
other than in a file yet.
Jonathan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for.
Kind Regards
Jonathan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you modify a PHP file, since
APC won't detect that it was modified.
Regards,
Jonathan
On Mon, Aug 16, 2010 at 10:21 AM, Mark Hunting m...@netexpo.nl wrote:
I am struggling with the performance of some websites that use a lot of
includes (using include_once). The files are on a NFS mount (NFSv4
Hello,
Has anyone got any ideas how I might add a user to a local group on a
remote networked Windows machine via a PHP script? The idea is to make
an automated tool where users can request access to a shared folder via
our intranet, and after suitable approval the system add them to a group
-Original Message-
From: tedd [mailto:tedd.sperl...@gmail.com]
Sent: 04 June 2010 15:34
To: Mayer, Jonathan; php-general@lists.php.net
Subject: Re: [PHP] Script to add domain users to local groups on remote
machines
At 11:16 AM +0100 6/4/10, Mayer, Jonathan wrote:
Hello,
Has anyone got
Hello,
I'm trying to write a few scripts to help automate some Windows
administration tasks. One of these is to add people to groups on
different networked machines.
I've written something like the following:
?php
$computer = TestComputer;
$groupName = TestGroup;
$server_config =
Review your mantis mail settings. If I remember well, there are two
possibilities, direct (pop3) mail or phpmailer. In www.mantisbt.org you can
find all information you need. I've been in the same situation, and found
out how to resolve it with success.
2010/4/7 Paul M Foster
On Sat, 13 Feb 2010 20:01:35 -0500, n...@ridersite.org (Al) wrote:
I'm looking for a report generator which will be used to create
management reports for my client from a MySQL database
Has anyone had experience with report generators that meet these
criteria? What would you recommend;
I'm looking for a report generator which will be used to create
management reports for my client from a MySQL database. The web site
is implemented in PHP.
Some characteristics that would be nice to have, roughly in order of
importance:
* It is moderately priced (a few hundred dollars at most)
On Wed, Jan 27, 2010 at 7:58 PM, Haig Davis level...@gmail.com wrote:
Hi Everyone,
I'm sure I'm missing something simple. I'm trying to store dates of birth
prior to 1970 in mysql. I've tried mysql's date_format but am hitting a
wall. I'm chasing my tail and was hoping for the best practice.
Hi,
isset($_SERVER['HTTPS']) should do it.
Regards,
Jonathan
On Sat, Jan 23, 2010 at 2:11 PM, Ben Miller biprel...@gmail.com wrote:
Is there a PHP function that will return whether the request was http or
https? I have functions that need to cURL other servers - sometimes over
SSL
Hi,
The function array_count_values returns an array
(http://php.net/array_count_values). So you are using it the wrong
way, you should assign the return value to a variable and then access
some index.
Regards,
Jonathan
On Tue, Jan 12, 2010 at 11:09 AM, Alice Wei aj...@alumni.iu.edu wrote
email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/196390707/direct/01/
Hi,
Try the function array_count_values.
Regards,
Jonathan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Jan 7, 2010 at 6:56 PM, Mari Masuda mari.mas...@stanford.edu wrote:
Hi,
I am working with an XML document and have a SimpleXML object whose var_dump
looks like this:
---
object(SimpleXMLElement)#2 (10) {
[@attributes]=
array(1) {
[id]=
string(7) 3854857
}
[type]=
it and run
faster.
Hope that helps, regards,
Jonathan
On Sun, Dec 20, 2009 at 6:41 PM, דניאל דנון danondan...@gmail.com wrote:
Sorry for the double-post, forgot to add up the way I thought about using:
Simple sql query:
SELECT * FROM `users` as u WHERE (SELECT COUNT(id) FROM notes WHERE
Hi,
Yes, what Ashley said is correct. Also, if you want to avoid writing
$perm several times in the if, or if you have a lot of permissions you
can do:
if (in_array($perm, array(11, 22)))
And you can put in that array all the permissions you need to.
Regards,
Jonathan
On Fri, Dec 18, 2009
Hi,
You are missing a quote after widgetType:
[...@alias=widgetType and @value=system]
should be
[...@alias=widgetType and @value=system]
Regards,
Jonathan
On Mon, Dec 14, 2009 at 1:52 PM, Christoph Boget
christoph.bo...@gmail.com wrote:
Given the following XML:
Pages
Page
You are probably missing something like this in the apache httpd.conf:
LoadModule php5_module c:/PHP/php5apache2_2.dll
PHPIniDir c:/PHP/php.ini
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html index.html.var
Regards,
Jonathan
On Fri, Nov 27, 2009 at 6:24 AM, Julian
the webserver.
Both of them are lighter than Apache.
Good luck,
Jonathan
On Sun, Nov 15, 2009 at 6:00 PM, O. Lavell olav...@xs4all.nl wrote:
What do people on this list use as an ultra-lightweight web server (with
PHP capability of course) on Windows? I have an old but still well
functioning laptop
That will work just for one IP, but they could spam you from another
IP. I suggest you add a good captcha to the form and that way you can
avoid spam forever.
Regards,
Jonathan
On Tue, Oct 20, 2009 at 3:31 PM, Gary gwp...@ptd.net wrote:
I have several sites that are getting hit with form spam
On Tue, Oct 20, 2009 at 3:39 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Tue, 2009-10-20 at 15:36 -0300, Jonathan Tapicer wrote:
That will work just for one IP, but they could spam you from another
IP. I suggest you add a good captcha to the form and that way you can
avoid spam
it work fine,
seems like a bug to me.
Regards,
Jonathan
On Mon, Oct 12, 2009 at 1:10 PM, Soner Tari so...@comixwall.org wrote:
When shell command returns a specially crafted string, I get an empty
array as $output of exec(), instead of the string. I can very easily
reproduce this issue
What platform? If you compiled PHP yourself you need to compile with
--enable-calendar.
Jonathan
On Fri, Oct 9, 2009 at 10:01 AM, kro...@aolohr.com wrote:
Hi,
Would someone be kind enough to test whether these following functions work?
I'm getting: PHP Fatal error: Call to undefined
Can you show the generated XML?
Jonathan
On Thu, Oct 8, 2009 at 3:45 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
Hi guys,
I've knocked up a quick RSS feed on my site. It works fine in Fx 2 3,
in Opera it throws an error unexpected end of file but allows the feed
to be added anyway
One possible solution:
?php
$a = array(8575 = 'peach');
list($id, $name) = array_merge(array_keys($a), array_values($a));
echo The ID is $id and the name is $name;
?
Prints: The ID is 8575 and the name is peach.
Regards,
Jonathan
On Thu, Oct 8, 2009 at 10:08 PM, Daevid Vincent dae
Hi,
May be you want to take a look at serialize and unserialize functions,
serialize generates a string from a variable and then unserialize can
give you the value of the variable back from the string.
Regards,
Jonathan
On Thu, Oct 1, 2009 at 12:07 AM, James Colannino ja...@colannino.org
\r\n should be between double quotes: \r\n
On Thu, Sep 24, 2009 at 3:52 PM, Adam Williams
awill...@mdah.state.ms.us wrote:
I have users enter support tickets into a a textarea form and then it
emails it to me, I'm trying to get the emails to display when they hit enter
correctly, so i'm
they were interchangeable.
Jonathan Tapicer wrote:
\r\n should be between double quotes: \r\n
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hi,
There is, see here (or it can also be set through php.ini):
http://www.php.net/manual/en/function.error-reporting.php
You are looking for E_STRICT.
Regards,
Jonathan
On Wed, Sep 23, 2009 at 3:11 PM, Tim Legg kc0...@yahoo.com wrote:
Hello,
I just spent way, way to much time trying
I think he meant that he is using 'Number' instead of 'Part_Number'
when accessing the array and not in the SQL, his SQL was correct, this
was wrong:
echo $row['Number'];
E_STRICT catches that kind of error.
Jonathan
On Wed, Sep 23, 2009 at 3:28 PM, Tommy Pham tommy...@yahoo.com wrote
Or you can also do this way:
on loading
?php
[...]
echo input type='hidden' name='myphpvar' id='myphpvar'
value='.$myphpvar.';
[...]
echo input type='button' name='mybutton' id='mybutton'
onclick='javascript:recalculateValue();' value='Click Me!' ;
[...]
?
script type=text/javascript
functino
imagine you have an assoc. array that you encode with json and save in the
js var. Ok.
This way is perfect. But you can do less with this values than using my
solution. Important: Each case is different, and may be studied in
particular.
You can not pass this myPHPvar javascript var as an input
And of course, sorry for my english!!! I correct!!
Imagine you have an assoc. array that you encode with json and save into the
js var. Ok.
This way is perfect. But you can do less with this values than using my
solution. Important: Each case is different, and may be studied in
particular.
#3 here:
http://www.php.net/manual/en/function.date.php, see the Note below the
example in that page).
Hope that helps.
Regards,
Jonathan
2009/9/15 Korgan josber...@seznam.cz:
Hi,
I have a problem with date function.
$gen_pos = mktime(0,0,1,10,25,2009);
$d1 = date(Y-m-d, $gen_pos
strtotime would be a neater way of solving the problem...
ie (untested):
$n = 0;
while ($n = 9)
{
$date = d.$n;
$$date = date(Y-m-d, strtotime(+ $n days)
$n++;
}
If you are just enquiring about the maths though, I'm not sure!
-Original Message-
From: Korgan
already has the 7z extension.
Jonathan
On Sun, Sep 6, 2009 at 3:19 PM, Chris Paynechris_pa...@danmangames.com wrote:
Hi Everyone,
I've setup a filedownload which works but i'm having an issue, i've
left out but when it downloads it, while it has the correct file it
doesn't have a file extension
I think that the documentation for memcache_get_stats should be
exactly the same as the one given for the method Memcache::getStats
except that memcache_get_stats should receive as the first parameter a
reference to the Memcache connection.
Hope that helps.
Jonathan
On Sun, Sep 6, 2009 at 1:16
For the record Shawn: I received your previous post from Aug 22 and I
think that it is the best solution.
Jonathan
On Tue, Aug 25, 2009 at 12:41 AM, Shawn McKenzienos...@mckenzies.net wrote:
hack988 hack988 wrote:
Use preg_replace_callback instead!
preg_replace_callback is better performance
You can use sprintf or str_pad to fill in with zeros, with sprintf you
can do this:
echo sprintf('%02d', 5);
That will print the string 05.
Jonathan
On Thu, Aug 20, 2009 at 6:27 PM, sono...@fannullone.us wrote:
Hi all,
I'm using this code to display the current time for our location
) AND ( $page member_services_logoff ) AND (
$page resource_center ) AND ( $page network ) ) {
Something like:
} elseif (!in_array($page, array(, home_page,
verse_of_the_day_activate, ...))) {
should work.
Regards,
Jonathan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
();
$shows['show_01'] = $show_01;
$show_01 = array();
Note that you are assigning $show_01 to a key in $shows before
creating $show_01, you should first create and fill $show_01 and then
assign it to a key in $shows.
Hope that helps.
Jonathan
--
PHP General Mailing List (http://www.php.net
the
flush function to send data a continue processing/polling.
Regards,
Jonathan
2009/8/7 Phpster phps...@gmail.com:
On Aug 2, 2009, at 7:59 AM, Dušan Novaković ndu...@gmail.com wrote:
Hi,
Does anyone has any idea how to create notification system with
combination of php, mysql and javascript
( ).
If you want the string to be rendered as it is without variable
replacements you can use single quotes, like this:
comment('test of $newComment');
That will render exactly this:
test of $newComment
Hope that helps you.
Jonathan
--
PHP General Mailing List (http://www.php.net
the parent constructor without knowing the
number of parameters.
Let me know if that helps.
Jonathan
On Sun, Aug 2, 2009 at 10:40 PM, Ralph Deffkeralph_def...@yahoo.de wrote:
problem:
__ construct( $something ... variable argument list ){
parent::__construct( ??? );
}
I tried
, if you have to mark a node already marked then you
have a cycle. Tarjan's algorithm does that and a little more, see
here:
http://en.wikipedia.org/wiki/Tarjan%27s_strongly_connected_components_algorithm
Hope that helps.
Jonathan
On Thu, Jul 30, 2009 at 8:38 PM, Matt Neimeyerm...@neimeyer.org
...
This is what I tried:
$tags = array('\n', 'br'); $sNotes = str_replace($tags,, $notes);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That didn't work because \n needs to be between instead of ' '.
Jonathan
--
PHP General
Use eval, like this:
eval('$str_expanded = ' . str_replace('', '\\', $str) . ';');
The str_replace is used because you could have a inside $str and it
would break the string, if you are sure the $str has no inside you
can omit it.
Jonathan
On Wed, Jul 29, 2009 at 5:43 PM, Daniel Kolbokolb0
On Wed, Jul 29, 2009 at 6:47 PM, Daniel Kolbokolb0...@umn.edu wrote:
Jonathan Tapicer wrote:
Use eval, like this:
eval('$str_expanded = ' . str_replace('', '\\', $str) . ';');
The str_replace is used because you could have a inside $str and it
would break the string, if you are sure
Just an idea: try using the (microtime(true) - $start) approach in
portions of code to try isolate the portion that is taking more time.
Sometimes that helps me to find the function that is slowing
everything down.
Jonathan
On Thu, Jul 23, 2009 at 6:18 PM, Andrew Ballardaball...@gmail.com wrote
: http://www.php.net/unsub.php
That is javascript thing, not PHP.
The Yahoo UI has a nice one, here you have an example:
http://developer.yahoo.com/yui/examples/calendar/calcontainer_clean.html,
and here the module reference:
http://developer.yahoo.com/yui/calendar/
Jonathan
--
PHP General Mailing
2. Try ?php phpinfo(); ?
On Mon, Jul 13, 2009 at 3:47 PM, Togrul
Mamedbekovtogrul.mamedbe...@iadc.org wrote:
We are running, Windows Server 2003.
1. Changed that
2. ?phpinfo();?
Togrul Mamedbekov
Marketing Publishing Assistant
(Tel: +1-(713)-292-1945 / Fax: +1-(713)-292-1946
What version, VC6 or VC9, TS or NTS? I use VC6 TS and the dll is there...
On Wed, Jul 1, 2009 at 7:31 PM, Pablo Viquezpviq...@pabloviquez.com wrote:
Hi,
I just downloaded the new stable version of PHP 5.3 and I couldnt find the
php5apache2_2.dll file.
Is the apache module on windows no
path for ls and ln, it
depends on your OS, but probably they are: /bin/ls and /bin/ln
If that doesn't help, can you show us the output?
Jonathan
On Sat, Jun 27, 2009 at 5:46 PM, Govindagovinda.webdnat...@gmail.com wrote:
this code:
?php
$testOutput = shell_exec(ls);
$where2cd2
, but this could always be useful for someone.
Jonathan
On Thu, Jun 25, 2009 at 5:37 AM, Richard Heyesrich...@php.net wrote:
Hi,
Well, you are reading the whole file there (and throwing the data you
read not assigning the fgets result to anything), and then to store it
in the database you need
You can read the whole file (file_get_contents) and count the number
of \n in it, or read it line by line with fgets and store the lines
in an array, and then the number of lines is the count() of the array,
and you can use that array to store it in the database.
Jonathan
On Wed, Jun 24, 2009
If you want to know how many lines there are *before* inserting to the
database, you can't count as you go, you have to either read the
file twice or read it once, store it memory in a variable and then
insert in the database.
On Wed, Jun 24, 2009 at 11:12 AM, Richard Heyesrich...@php.net wrote:
To do the line count first, you have to read the whole file, how would
you do it?
On Wed, Jun 24, 2009 at 3:00 PM, Richard Heyesrich...@php.net wrote:
Hi,
If you want to know how many lines there are *before* inserting to the
database, you can't count as you go, you have to either read the
Well, you are reading the whole file there (and throwing the data you
read not assigning the fgets result to anything), and then to store it
in the database you need to read it again, so you read the file twice.
It will probably better to store the data you read the first time in
an array and then
://www.scottnichol.com/nusoapprogwsdl.htm
It's nice, and it has lots of working examples.
Jonathan
On Mon, Jun 22, 2009 at 11:02 AM, Anton Heuschenanto...@gmail.com wrote:
Does anyone have any good links to basic and more advanced (and some
examples) of NuSOAP and using this ?
Would be appreciated
Can you do a phpinfo(); and tell us the value of the setting
apc.filters (or every apc.* if you can)? Just curious, but I've seen
apps set that setting to avoid APC opcode caching.
Jonathan
On Sun, Jun 21, 2009 at 8:56 PM, James McLeanjames.mcl...@gmail.com wrote:
(Resend from around 1 week ago
Did you execute the code I sent? Does it give you a false?
Jonathan
On Fri, Jun 19, 2009 at 12:17 PM, Bastien Koertphps...@gmail.com wrote:
Correct, I send the @
Bastien
On Friday, June 19, 2009, Jonathan Tapicer tapi...@gmail.com wrote:
Works for me:
var_dump(filter_var
Works for me:
var_dump(filter_var('bastien_k(a)hotmail.com',
FILTER_VALIDATE_EMAIL) !== false); //replace (a) with @
Gives:
bool(true)
You are sending an @ instead of at , right?
Jonathan
On Fri, Jun 19, 2009 at 11:49 AM, Bastien Koertphps...@gmail.com wrote:
Hey guys
Can you check if the code is using true or false branch of the first if?
On Fri, Jun 19, 2009 at 12:56 PM, Bastien Koertphps...@gmail.com wrote:
On Fri, Jun 19, 2009 at 11:46 AM, Shawn McKenzienos...@mckenzies.net wrote:
Bastien Koert wrote:
On Fri, Jun 19, 2009 at 11:20 AM, Jonathan
Hi,
Does the extension appear on a phpinfo()?
Seems like the extension isn't loaded.
Jonathan
On Tue, Jun 16, 2009 at 5:20 PM, Valentinas
Bakaitisv.bakai...@gmail.com wrote:
Hello!
I am trying to track file upload progress using APC extension.
However, when trying to use, it gives
Fatal
Off the top of my head, would strtotime work?
ie
strftime(%j,strtotime($row['UpdateDate']))
-Original Message-
From: John Comerford [mailto:jo...@optionsystems.com.au]
Sent: 04 June 2009 07:10
To: php-general@lists.php.net
Subject: [PHP] Timestamps and strftime
Hi,
I am having a
-Original Message-
From: Gary [mailto:gwp...@ptd.net]
Sent: 11 March 2009 00:17
To: php-general@lists.php.net
Subject: Re: [PHP] More PHP Includes
Jochem
Thanks for your reply, the project seven and DW was just for a point of
information, same as if you have an issue with a computer
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: 09 March 2009 19:55
To: Mayer, Jonathan
Cc: Gary; php-general@lists.php.net
Subject: RE: [PHP] Re: PHP includes
On Mon, 2009-03-09 at 15:10 +, Mayer, Jonathan wrote:
Thank you to everybody
Thank you to everybody that replied...but it almost seems it is making
extra
work.
I can understand using an include for a menu, since they tend to change
often and it is on every page, but the normal content I am not
understanding
the benefit. If I have a page that has unique content on it,
December 2008 20:23
To: Mayer, Jonathan
Cc: Wolf; php-general@lists.php.net
Subject: RE: [PHP] Downloading file from local network machine
On Fri, 2008-12-05 at 17:32 +, Mayer, Jonathan wrote:
Thanks Wolf :)
Yup, I had considered that, although there could be up to 8 different
servers so
1 - 100 of 640 matches
Mail list logo