« first day (1620 days earlier)      last day (3331 days later) » 

1:01 PM
Do you need a mail server?
 
I guess it would perhaps have advantages for me, but before I got this dialog screen I hadn't even heard of setting up a private mail server: so I guess: NO. :)

Can also press "<Cancel>", but perhaps this would cancel the "sudo apt-get upgrade" completely?
 
Can someone point out the obvious thing I'm missing - this code works:
parse_result = zend_parse_parameters(
	ZEND_NUM_ARGS() TSRMLS_CC, "p|sbr!",
	&file_name, &file_name_len,
	&intern->u.file.open_mode, &intern->u.file.open_mode_len,
	&use_include_path, &intern->u.file.zcontext
);
 
Just select No configuration
 
@Machavity | Thanks.
 
This code makes a huge number of errors in tests:
parse_result = zend_parse_parameters(
	ZEND_NUM_ARGS() TSRMLS_CC, "p|sbr!",
	&file_name, &file_name_len,
	&open_mode, &open_mode_len,
	&use_include_path, &intern->u.file.zcontext
);
intern->u.file.open_mode = open_mode;
intern->u.file.open_mode_len = open_mode_len;
 
1:04 PM
@Danack can you try &(intern->u.file.open_mode)?
not sure about operator precedence in C...
 
@Danack What are open_mode and open_mode_len declared as?
 
@Patrick | So you think MySQL is not pre-installed on RamNode? You think mariadb is better, even for a noob like me?
 
@DaveRandom char *open_mode; and int open_mode_len; i.e. the same types.
 
@Danack Not sure if open_mode would need to be duplicated, I forget how that alloc works
 
@FlorianMargaine That appears to work also.
 
1:07 PM
@Danack you need size_t (on php7)
 
@VincentVerheyen Isn't maria just a drop in replacement?
 
Also @Danack, why do you need the temp vars?
 
@FlorianMargaine It's php 5.6
 
my bad :P
 
@PeeHaa | Wikipedia sais it sure is, I myself have no clue on what this means.
 
1:08 PM
@VincentVerheyen you won't notice that you are not using mysql
 
@VincentVerheyen It means what @Patrick said
 
Ok. So you suggest just installing mariadb only.
Damned. The RamNode support sais the following in a support message:

    "...I'm not sure a 128MB VPS can handle a Drupal site. You'll need at least a 512M plan, probably even 1024MB, as Drupal is known to be resource hungry."
 
@DaveRandom I'm trying to refactor the SPL code to not repeat the code for constructing file objects in at least 3 different locations, plus an additional branch for FileObjects that are created through a custom class aka bugs.php.net/bug.php?id=69275
 
@VincentVerheyen yeah, as far as I know it's performance is better than mysql
@VincentVerheyen I knew drupal is shitty, but it's that bad? ...
 
And step one of that was going to be have a single function that does the shit called from different places, rather than having the parsing and setting of params be interleaved.
 
1:10 PM
@VincentVerheyen wrong
I work at a hosting company hosting a lot of drupals, 128MB is the default and not often changed
 
@FlorianMargaine Thanks for the good news. | They almost got me, led by the nose, to an upgrade there :)
 
@VincentVerheyen we fallback to swap for some actions though
 
@VincentVerheyen meh, just try it out and onyl upgrade if it's not enough
 
like features revert all
but for most operations it should be fine
 
@Danack Suspect issue is somewhere else. Do you have a full diff of "broken" code?
 
1:14 PM
@FlorianMargaine Is the DB hosted in the same instance?
 
@Machavity it's 128MB in the php.ini, so why does it matter?
 
Ah. Different thing then
I thought you mean total. 128MB for a PHP thread is more than enough for almost anything
 
@DaveRandom Obvious problem is obvious in retrospect - the vars were uninitialized.....and so writing gibberish into the structure.
 
@Machavity ah, if it's 128MB for the whole VPS, it might be pretty short indeed, @VincentVerheyen
 
@FlorianMargaine Ok. Thanks, would it help to have the DB e.g. hosted on a free webhost? Just an idea ... Or do you recommend 256 / 512 / 1024 MB instead (+ which one)?
 
1:19 PM
@VincentVerheyen if db is hosted separately, take 256 for just php, if not, take 512
it should be fine
 
@VincentVerheyen try it on the 128 first...
 
Ok, thanks for the advice. I'll try it and let you know the troubles.

Ok, so then if you say it won't cause a problem to re-use my existing MySQL database using "MariaDB", I'll install "MariaDB10.0", as mentioned here hé? >>> http://www.ubuntugeek.com/install-mariadb-on-ubuntu-14-04-trusty-server.html
 
Remember, your DB works best when it can load a lot into RAM. And you're sharing the same I/O as well. So when you host a website and DB on the same box it can crimp how much throughput it can do.
 
Interesting. I wanted to upgrade my hosting since I kept getting "MySQL server has gone away (error 2006)". I wonder if a free host would be any good to e.g. ONLY host either the website OR the DB ...
 
That typically indicated MySQL has crashed or locked up
 
1:24 PM
That's exactly what I want to avoid, but a little waiting time or a lag here & there, wouldn't bother me too much.
 
@VincentVerheyen no
 
@Machavity ...which is roughly synonymous with being indicative of the fact that you are using MySQL in general
 
Free in our business equals crap
 
@PeeHaa :) I'm getting the impression that this is an equality, over and over again.
 
@DaveRandom :P
 
1:26 PM
@PeeHaa s/free/free from companies which sell commercial stuff
 
@VincentVerheyen That's what cloud computing(virtual private) has changed. You can now afford to run two small servers where before all you could get was one giant box
 
@Machavity And do you think 2 x 128 would out-perform 1 x 256?
 
@PeeHaa tss
so OPCacheGUI is crap?
 
github: source of crap
 
@SergeyTelshevsky depends .. if you get locked in, then getting a private repo will be kinda expensive. They have made a business model around it.
 
1:31 PM
@VincentVerheyen I wouldn't short change your DB box. Again, your DB performs better with more RAM. 128MB = bargain basement server
 
@FlorianMargaine COnsidering I am the one who maintains it probably yeah :P But you know what I meant ;)
 
running full development infrastructure based on GitHub is actually really expensive
 
@tereško yeah, j/k anyway. bitbucket is great for small private repos, gitlab on vps if you need more & cheap
 
@Machavity So you would rather go for 1 x 256 for both website & DB, than to seperate them in 2 servers of 128?
Scratch ... scratch: I want to check what version of MariaDB I have installed by using "mysql --v", but I get the following error:

> mysql: ambiguous option '--v' (vertical, version)
 
@VincentVerheyen No, I would go 1x128 web server and 1x256 DB server. Remember, the biggest choke point on any DB is the write operations. You don't want to share I/O with anything else if you cna help it
@VincentVerheyen Try mysql -v
 
1:36 PM
> ERROR ... Access denied for user 'root'@'localhost' (using password: NO)
 
Just log in then. Will tell you on login what version it is
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 206
Server version: 5.6.23 MySQL Community Server (GPL)
 
@Machavity

Great, thanks:

    > Welcome to the MariaDB monitor.  Commands end with ; or \g.
    > Your MariaDB connection id is 44
    > Server version: 10.0.17-MariaDB-1~trusty-log mariadb.org binary distribution
 
Pro-question for PHP core developers: can object be interned in PHP and live in the shared memory between sequential requests? Like interned strings...
 
hope not
 
pity ) I'm looking for the way to keep object state without serialization/initialization
There are a lot of pconnet, pfscokopen functions that can create objects in the shared memory and they survive request termination...
 
@Gordon I know about appserver, but it's too heavy )
 
@lisachenko probably - pecl.php.net/package/raphf
 
@Danack can it be used with POPO objects?
 
@PeeHaa well at least he 'apologised' /cc @PaulCrovella
 
@Danack no that's internal API only
 
@Gordon saw it early, but it does serialization... From the docs: All variable types that serialize() supports may be used: generally this means all types except for resources and some internal objects that cannot be serialized.
 
@Danack it still prefers vendor... I suppose that'll teach people to make sure vendor isn't writable. Still a dick way to teach that lesson though.
 
From PHP7 and native TLS, it can be very interesting to share objects between threads... Maybe with special keyword, that will put an object as-is into memory and reuse it later for all requests
 
we could finally have singletons \o/
 
I'd prefer to name them DiC ^)
 
1:55 PM
your ")" are annoying
 
ok, I'll take care
 
@Danack It's imo still stupid to put it there though :)
 
How do I check with php that my mysql database has a connection timeout? I need to check if I can connect to it, if not, skip it and try to connect to the next one. I have 3 servers in total.
I create a database object for each of the databases
 
user895378
morning
 
ThW
Morning
 
2:05 PM
Could someone help me? I am a noob in VPS, and just downloaded the latest (fresh) version of Drupal (as mentioned in https://www.rosehosting.com/blog/how-to-install-drupal-7-on-ubuntu-14-04/) & have MySQL (DBMaria) installed.

I honestly have no clue on how to transfer my old Drupal website & its DB (from free web-hosting) to my VPS. P.S.: my domain name is at Freenom.

The next step in the tutorial is "Create a new MySQL database for Drupal on your server".

However: at this point, should I have already copied my existing Drupal files (my existing website) to my VPS? Should I perhaps also
|||| EDIT: (i.e. this last line is mentioned in the same tutorial @https://www.rosehosting.com/blog/how-to-install-drupal-7-on-ubuntu-14-04/.)

I feel really like a little fishy in a big ocean, I also don't know whether I should change "localhost" to something.
I guess transferring the Drupal site files to the VPS seems logical and doable, but how to get my old SQL files on to my VPS + connect it with my domain name / server name? (I guess this will be ns01.freenom.com) ... I also don't know at what point I should shut off my old free webhosting in this process? Now it still uses the 000webhost's "ns01.000webhost.com".
 
user895378
Hey @salathe do you happen to know if your composer PR for php7 support shows up in downloaded versions of the library? Or do I need to clone master to get that?
 
2:23 PM
@Patrick | Thanks for the link. So "Step 1 | Perform a MySQL Dump" I have already done using an automatic GUI at 000webhost, I guess ... If this is just archiving the old existing DB.
@Patrick in "Step 2 | Copy the Database", there is noted, as an example:

scp newdatabase.sql user@example.com:~/

So, I guess "newdatabase.sql" is actually the old existing DB, right? (I have it ready on my Mac desktop on my main drive (not VPS); ... But what should I fill in at "user" & "example.com" ... ?
 
user895378
Hmm ... I wonder why anonymous classes have such universal support now when they were rejected before.
 
user895378
I suppose people sometimes just need time and space to get used to an idea.
 
heh
breaking changes in minor laravel releases github.com/laravel/framework/commit/cfa7fcb
3
 
2:40 PM
this is blasphemy, laravel is the bestest great thing ever .. also its carbon-neutral
 
Ok. Importing the SQL will probably work. A quick question: can I rename the DB.sql to whatever.sql?
 
Anonymous
:)
 
@tereško is it vegan?
 
Vegan in the week-ends.
 
I am vegan between meals
 
2:42 PM
@VincentVerheyen yes, because DB name is inside the file
 
Let's find out
var_dump(App::isVegan());
 
@tereško Aha, indeed. Thanks.
 
@Gordon so you must never ride on bicycle with an open mouth
 
@tereško I dont even have a bicycle
 
Still can't figure out how to import the database via Ubuntu's MySQL. I just need 1 succesfull comman-line... The database I want to import is called "db.sql" and is right up in my VPS's root folder...
 
2:50 PM
mysql -uroot -p dbname < db.sql
 
Thanks, I'll try.

When I did: "mysql -u root -p db < db.sql", I got:

    ERROR 1049 (42000): Unknown database 'db'
 
@VincentVerheyen did you create a db?
 
@Patrick Ok. That's probably the problem hé. I recon I didn't. ||| Don't know how to either.
 
@rdlowrey composer self-update is enough to get the change
 
user895378
@salathe sweet. Thanks for subsidizing my laziness and not telling me to try it for myself :)
 
2:54 PM
@VincentVerheyen then find out how to do it ;)
 
:D Ok; in this article (https://www.rosehosting.com/blog/how-to-install-drupal-7-on-ubuntu-14-04/) it is written to execute (amongst others):

mysql> GRANT ALL PRIVILEGES ON drupaldb.* TO 'drupaluser'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;

So, I'm beginning to understand "drupaldb" is just an arbitrary name. Then I guess "drupaluser" is your Drupal's username, but I don't understand what ""localhost"" & ""password"" mean? Is it the Drupal's username's pw or is it the old SQL's pw? =)
 
@VincentVerheyen you don't need the old db's pw once you have the data exported
 
@Patrick | Ok, thanks for the many replies on my long journey :D | So, then I guess this pw just needs to be your Drupal's username's pw? Or can you choose a new pw here? ... & "localhost" should just stay "localhost"?
UPDATE: A Drupal post mentions:

    'drupaldb' is the name of your database
    'drupaluser@localhost' is the username of your webserver MySQL account
    'your-password' is the password required to log in as the MySQL user
 
posted on March 24, 2015 by Anthony Ferrara

Developers as a whole suck at API design. We don't suck at making APIs. We don't suck at implementing them. We don't suck at using them (well, some more than others). But we do suck at designing them. In fact, we suck so much that we've made entire disciplines around trying to design better ones (BDD, DDD, TDD, etc). There are lots of reasons for this, but there are a few that I

 
Hello Alll
 
3:04 PM
posted on March 24, 2015 by kbironneau

/* by cribeiro84 */

 
I still don't understand what exactly to fill in for "drupaluser@localhost" & "your-password".
 
@VincentVerheyen pay someone to do it for you
 
@FlorianMargaine :) It'll take long to reach someone.
 
@VincentVerheyen did you create a user for drupal yet?
 
On my old Drupal installation hosted by my old free web-hosting, yes.
 
3:10 PM
no on your new server
 
No, I am stuck as a peanut in butter. Hope to manage it by the end of the day ;)
 
I just told you what you need. Now find out how to do it :)
At the end of the day you will have learned a lot
 
Ugh. Extending a class to use it rather than injecting it in -_-
parent:: everywhere!
 
Is Kerberos V/KADM5 still maintained or is there a better way to authenticate with a Kerberos server?
 
Guys which is best way to find number occurrence of sub string into string in php
also i am using regex to check in main string that substring can have space or ( substring )
any idea
 
3:23 PM
@Swap-IOS-Android preg_match_all probably.
 
Ok. @Patrick I kind of imported the database in to the VPS's MySQL (I think), I hope I added the right credentials. =)
 
@Danack i am trying to use this
\s(?[^)]+))? but it won't work
i want to check on main string that substring should be start from space or open bracket
and can be close by space or closing bracket
any suggestion
 
3:40 PM
On "service apache2 restart", I'm getting a:

     AH00526: Syntax error on line 13 of /etc/apache2/sites-enabled/drupal.conf:
     Invalid command '\xc2\xa0\xc2\xa0', perhaps misspelled or defined by a module not included in the server configuration
 
wtf is a rope
 
@JoeWatkins sth to hang yourself with, unless too long.
 
In computer programming a rope, or cord, is a data structure composed of smaller strings that is used for efficiently storing and manipulating a very long string. For example, a text editing program may use a rope to represent the text being edited, so that operations such as insertion, deletion, and random access can be done efficiently. == Description == A rope is a binary tree having leaf nodes that contain a short string. Each node has a weight value equal to the length of its string plus the sum of all leaf nodes' weight in its left subtree, namely the weight of a node is the total string...
never heard of it before
TIL
 
new to me too
feels picked out of the air as a solution ... will have to review patch in detail ...
 
3:46 PM
The concept of rope isn't unknown to me… I just never heard a name for it.
But this is really a primitive rope
 
you've looked at patch ?
 
This impl. is just a zend_string* array
yes
 
let's implement it in PHP by adding it on top of ext/DOM. All it needs is someone finally implement DomNode::setUserData for storing that weighted values :)
 
too many distractions to read patch
 
Hello guys,

I am facing an error i have extended basemodel into the model. Now i am using function of that : $this->functionname($param);. I am getting the below error in laravel : $this when not in object context
 
4:03 PM
@JitendraTyagi are you familiar with oop?
 
@Patrick yes
i am familiar with oop
 
@JitendraTyagi then the error should be self explaining...
 
Hook, line, and sinker.
 
Moornings
 
Well, ok. So, if someone here knows someone who wants to get paid to help me out in transferring a Drupal site to a VPS (in the vicinity of Antwerp, Belgium), please let me know. =)
 
4:36 PM
I kinda suspect that the answer will be "no"
 
@VincentVerheyen Ask @PeeHaa, he will definitely want to help you out... he loves Drupal and VPSes and Belgium.
 
@PeeHaa There is a gossip that you are in love with Belgium & Drupal & VPS, I'm looking for some help / paid job of transferring my website to a VPS.
 
5:05 PM
posted on March 24, 2015 by kbironneau

/* by thureos */

 
How do I configure PHP storm to treat the tab key not as 4 separate spaces, but 1 character instead
When I tab and then press the left arrow, it goes back not a space, but a whole tab
 
@StevensHaen File → Settings → Editor → Code Style → Use tab character.
 
@StevensHaen you mean "Hey, meat-bags. How do I ..."
 
5:23 PM
@kelunik I enabled it, enabled the "smart tabs as well" and still, when I press the left arrow after a tab, it rolls back a single space
 
@StevensHaen You have to disable "detect indention for existing files", too.
 
I can't get it to work
 
5:41 PM
Hi guys
PHPInfo: date.timezone Europe/Zurich
php.ini: date.timezone "Europe/London"
wtf
(I restarted apache, and made sure to change the correct php.ini file)
 
check which .ini is being loaded? :)
 
Loaded Configuration File /usr/local/php5/lib/php.ini
Contents of above file for date.timezone: "Europe/London"
 
Search for Zurich in the file?
 
Yep, no mention of Zurich, can't get away from the bloody Swiss
I think I found it - as I'm on OS X and using a custom version of php 5.6, some bloody nobs have decided to override the setting in their own ini file:
/usr/local/php5/php.d/99-liip-developer.ini
-.-
Man, today has just not been my day
 
6:36 PM
Hi there, need quick answer, can't find on forums. Can php md5 ever contain dash (-) ?
or it will be alpha-numeric all the time?
 
@Rizwan yes, it can contain dash.
 
@Rizwan It will always be a 32-character hex value
Data you pass to it may contain dashses
 
what's the best way to generate a hash without dash?
 
if you use raw_output, it will return binary data with a length of 16
@Rizwan the hash md5() generates will NOT contain a dash
 
unless you explicitly set $raw_output to be true, then it may contain a dash.
 
6:39 PM
@ramsey but salathe told it can be....
 
Right. @salathe is correct, if you are using raw output, but then you are dealing with binary data
 
Oh, ok. Thank you all.
 
@Rizwan md5($something) will never contain a dash. md5($something, false) will never contain a dash. md5($something, true) may contain a dash.
 
@salathe Thanks :)
 
And the default (false) returns a hexadecimal number, so will only contain 0-9 and a-f.
 
6:41 PM
Got it!
thanks again.
 
wtf wikipedia - I was checking a list of lexer generators and "Twig - A flexible, fast, and secure template engine for PHP" is in the list :D lol
 
I have a question. like stackoverflow.. if I want that an user can upvote & downvote on a question only once.. do I have to make a seperate table votes_cast , containing user_id, question_id/answer_id, upvote and downvote. and check from there. presently I only have a questions, answers and users table. users has_many questions(user_id), questions has_many answers. users has_many answers(user_id, question_id)
 
@marcio lexer generators?!?
 
@bwoebi yes, I was looking for one of those "awesome something" lists where you find all the options about, well, something and ended up on wikipedia :/
 
6:58 PM
@bwoebi "95% faster" definitely does not sound as "I can do 95% more ops".
 
@zerkms yeah, that was my point…
 
@bwoebi yep, came here just to support you since don't want to set a holy war there :-)
"PHP 7.0 is 95.76% faster than 5.6." for me sounds exactly like "20 times faster"
 
100% faster = twice the speed......and English sucks.
 
@Danack you substract time of execution
if something 50% faster it means it takes 50% less time
 
100mph = 100 miles in 1 hour.
150mph = 100 miles in 40 minutes.
 
7:01 PM
The performance test measures time
 
So it takes 1/3 less time.
 
it encapsulates number of ops
If something was executed for 10 minutes, and something else for 1 minute
 
@Danack 100% faster = I known you haven't really checked yet because no optimization would give a perfectly rounded "100%" result.
 
How much faster the latter was?
for me "it was 90% faster"
 
(not that I know what you are talking about)
 
7:03 PM
anyway, it does not matter
php7 is twice as fast
 
@marcio About how people get confused when talking about speed and time taken to do something.
4 mins ago, by zerkms
if something 50% faster it means it takes 50% less time
 
It's out of context
Performance tests usually operate with time and call it "speed"
 
It doesn't need context, it's basic grammar.
 
So my point of view is biased by "conventions"
 
Conventions = people getting confused between speed and time taken.
 
7:06 PM
k, for a moment I thought it was about the "rope PR" thing
 
@marcio no, I mean Twig in lexer generators?
 
@bwoebi nevermind, it's just wikipedia
(wondering how many bad information, out of my domains, I've read on wikipedia without even realizing it was completely wrong)
 
yeah… well… fix it then.
 
7:26 PM
first wikipedia edit ^^
 
@VincentVerheyen heheheh @salathe
Morning
 
@PeeHaa moring
 
Is there a proper way of marking a PR as being something for discussion or needing feedback, rather than something that is ready to be merged straight away?
For PHP-src.
 
not really. Just note that in description or title
 
7:45 PM
posted on March 24, 2015 by nikic

This release fixes the registration of the class aliases introduced in version 1.2.0. Previously the old class names could not be used in `instanceof` checks under some circumstances.

 
@rdlowrey I think it has much to do with the previous RFC being really bad
WOW the breadcrumb on wiki.php.net was fixed!
 
8:01 PM
 
hihi =]
 
hey guys, could anyone help me with fetching data from database to singledimensional array? Table contents (id, name, parentid, level), I am solving this issue for about a week now and its still not done, I can provide any data, just guessing if somebody would be willing to help, I searched a few stackoverflow topics, yet none helped.
 
@falnyr You have been trying to retrieve data from a database for a week now? :P
 
PeeHaa: well I am more like postponing the task and everytime I get to it I try different approach
@PeeHaa: which mostly leads to oblivion
 
$stmt->fetch() should be all you need to do. Assuming it is a single record
 
8:19 PM
@PeeHaa this is my problem: pastebin.com/797zpEra
 
Sort by level and id asc and loop through it
 
@PeeHaa ye the whole looping thing is the problem, let me show you my code
 
And / or use recursion
 
God that code reminds me of some terrible ecommerce solution i have used in the past :P
 
8:28 PM
@falnyr so much wrong with this...
what is $oDb? a pdo instance?
 
nn
lol
`Bilge commented on cfa7fcb 9 hours ago
@taylorotwell is adolf hitler and @GrahamCampbell is his sycophant!`
not fair, but funny
 
Good morning guys, how's it been
 
@falnyr You don't do anything that looks like a single dimensional array
 
I'm trying to find a faster alternative to the file_exists method, it's way too slow for me
 
@AustinBurk rand(0, 1)
 
8:44 PM
@PeeHaa ...thanks PeeHaa.
 
@Patrick sort of that
@PeeHaa well I dont have an idea on how to do that
 
@AustinBurk Asking very odd questions based on nothing gets you stupid answers
 
@falnyr what is that supposed to mean?
 
@AustinBurk If you always want the same result for a same file, use srand() first.
 
@PeeHaa How is that an odd question?
 
8:46 PM
@Patrick its some sort of DB driver
 
Because it makes no sense (even less so without context)
 
@falnyr did you write that code?
 
You are saying "I'm trying to find a faster alternative to my car, it's way too slow for me"
Then get another car
 
@PeeHaa you don't feed a file_exists gasoline
 
@AustinBurk Neither do you need to feed some cars
 
8:48 PM
@Patrick yep
 
See what happens when you don't provide info. People make stupid guesses
 
PeeHaa, I need to check the existence of millions of objects, it's running several minutes to check even half a million. This is on a SSD/
 
Perhaps you are doing it wrong. Going at it from the wrong angle
Impossible to tell
Just stupid guesswork
 
@AustinBurk Why do you need to call file_exists? obviously to find out if the file exists, but why don't you know ahead of time if something exists or not?
 
ok... why did you not use pdo?
can you use dependency injection with this thing so that you don't have to do this singleton crap to get a db instance?
 
8:54 PM
@Danack because I have multiple threads running through a queue for a project of mine; I ran out of disk space so I need to check each file exists now
 
@Patrick I have to use system classes for this e-commerce project unfortunately
 
@AustinBurk I'm too tired to continually ask 'why' - you apparently have an XY problem. There's no way to make file_exists faster, you need to either use a different technique to avoid needing to know whether the file_exists or to use caching to avoid the file system hits.
 
@Patrick and I believe DI is not possible, simply get the data from DB and fetch it to singledimensional array, but IDK how
 
@falnyr can you use a foreach loop instead of that MoveNext() thing? that would make the code a little bit easier to read as you should be able to get rid of both the if and while
 
If you want to describe the problem properly it would be a lot easier to give sensible advice, rather than us having to pry the details out of you one at a time..
 
8:57 PM
@Danack the reason is because I'm impatient and don't want to have to wait six to eight minutes to check if a million objects exist
And I would tell you if you didn't make fun of me with every reply
 
@Patrick movenext is just the thing it uses and cannot be replaced with foreach, I get the result for each row as $rs->fields (and num of field)
 
Anyway, I got a lot more helpful responses from some friends at a CDN
 
Go there...
 
You aren't describing your problem. You're describing the solution you've come up with, and saying that it's not a good enough solution.
How the flip are we meant to help, if you don't describe a problem clearly.
 
8:59 PM
Fuck it. Tiny avatared
 
aka
2 mins ago, by Danack
If you want to describe the problem properly it would be a lot easier to give sensible advice, rather than us having to pry the details out of you one at a time..
 
my problem is that file_exists is too slow for me and I need something that can run faster
 
@AustinBurk no your problem is that you don't listen to danack
 
Aaaaaand it's gone
 
@AustinBurk Do you have an SSD yet?
If so, do you have multiple SSDs yet?
 

« first day (1620 days earlier)      last day (3331 days later) »