Just wondering if there are any good tutorials on PHP/MySQL on the web that's free. I looked at youtube and the tutorials they have there are a bit too easy.
here's a definition of marshaling from Wikipedia:
In computer science, marshalling
(similar to serialization) is the
process of transforming the memory
representation of an object to a data
format suitable for storage or
transmission. It is typically used
when data must be moved between
different parts of a computer program
or from one program to another.
I have always done data serialization in php via its serialize function, usually on objects or arrays. But how is wikipedia's definition of marshaling/serialization takes place in this serizalize() function?
This is the solution for linux:
http://stackoverflow.com/questions/45953/php-execute-a-background-process/45966#45966
Is there one for windows?
Maybe this?
start "window1" /min cmd.exe /c batch1.cmd
But I don't know what it does exactly:(
Hi,
As far as I know when writing a conditional statement in C such as the following:
if ( some_function() == 100 && my_var
== 5 ) { //do something }
is slower to execute than
if ( my_var == 5 && some_function() ==
100 ) { //do something }
because it's faster to execute the my_var == 5 rather than all of the code in the function ( because if my_var != 5, then the rest of the if statement would not even be executed )...so I am wondering if the same is true for conditional statements in PHP?
In my php application, I'm using $_SESSION to track whether a user is logged in. If a user leaves any page on my site at http://mysite.com and goes to http://someotherwebsite.com, I want to automatically log them out, such that if they return to any page on http://mysite.com, they need to login again.
Is there an easy way to do this?
I recently asked a question regarding the resolution of dependencies between Unit of Work and Data Mapper classes: http://stackoverflow.com/questions/3012657/dependency-injection-and-unit-of-work-pattern - (which was answered by Gabor de Mooij - thx)
In PoEAA, Martin Fowler suggests using Separated Interface to manage these dependencies. My question is simple - is it actually possible to implement this pattern in PHP, or is it specific to Java interfaces? I've searched high and low and it's hard to find references to this pattern anywhere outside of PoEAA.
What sort ort of programming paradigm (sockets,RPC,Web services,Distributed objects middleware) is usually used between web server and application server in PHP n-tier architecture?Whats the difference of using DOM or Web services for this purpose?
Is there free and good line-level profiler for PHP? I'm using xdebug and it's relatively good but it gives me function level output and sometimes it's hard to see where exactly all the time spent in the function goes.
I am looking to start a community based on user posted scripts such as bashrc, screenrc, aliases, etc.
Does anyone know of a web application in PHP that would do that?
I am not looking for a snippet program, or a link directory.
Users can store linux/UNIX/Windows configuration files, as well as maybe an option to attach a screenshot.
How a programming call is usually made between web server and application server in a PHP n-tier architecture when the servers are on separate machines in the network?Whats the difference of using DOM(Distributed object middleware) or Web services for this purpose?
We all know the infamous "cannot redeclare class" error. Is there any method to overcome this and actually declare a new class with the same name, or is this impossible in PHP 5?
I know that I can use DOMDocument and DOMXPath to manipulate XML files. But, I really love JQuery, and it would be great if there was something more like JQuery in the PHP world that I could use for sever side DOM manipulation.
NOTE: I'm only interested here in how
JQuery Selects and Manipulates the DOM, not all
the other parts of JQuerry (I guess
you can say just the Pop and the Sizzle
parts).
Hello. Does anyone know how I can make a live chat on a webpage? Maybe using PHP and have the text stored into a database? If so, how could I get the text to automatically show on the users live chat, without refreshing?
Any ideas? Thanks.
I am using a regular expression in javascript and want to do server side validation as well with the same regular expression. Do i need to modify it to make it compatible or will it run as it is.
How to use PHP regular expresion. Please provide a small example.
Thanks in Advance
has anyone used the uStorelocation extension for Magento (to embed Google maps)? what goes into the field named "Default Location Address" under
System Configurations Store Locations
The docs don't say anything about this and the screen shots on the extension page just show "97236". any ideas? thanks
Hi there,
I have a php site that lets registered users login (with a valid passord) and sets up a session based on their UserID. However I'm pretty sure thisis being hijacked and I've found "new" files on my server I didn't put there. My site cleans all user input for SQL injections and XSS but this keeps happening. Has anyone got any ideas on how to solve this?
Hi
How do I know how many seconds it will be until a php session expires?
I'm building a web application where users might spend a lot of time typing into big text fields, but for security reasons I still want sessions to time out after a reasonably short period. I want to warn them if their session is about to expire so they can save or take some other action to keep it alive.
Any tips?
thanks!
How do I prevent access to a php script if not called with a comandline application like curl? I'm working on a web application and it uses a cron script to run it's services.
I need to use a shell across multiple ajax requests. Basically this means that the next request should be able to continue with the same shell where the other process left off.
The purpose is to communicate with daemons like FTP to open an FTP connection and log in and in the next request continue with that connection and be able to use it for uploads. But it's not limited to only the FTP daemon (as I know that FTP is supported in PHP).
my primay key is user_id which is auto incremant UNSIGNED ZERO FILL, i want to display user_id on a page without leading Zero( means 1 instead of 0000000001 )..
how can we do that in php or in mysql
one more question...
if i delete last record( let user_id=21) wwhich have highest id of that table then can we adjust auto increment value to 21 instead of 22 of that table.
Given an email address, how can I verify that it is valid? (That the email's domain will accept email for that address.)
How would this look in PHP?
Note: I don't want to verfify that the email address itself is syntactically valid. I want to know whether the domain will accept email to that address.