User Profile

Collapse

Profile Sidebar

Collapse
chazzy69
chazzy69
Last Activity: May 16 '11, 10:27 PM
Joined: Sep 6 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • chazzy69
    replied to How to fix my link problem
    in PHP
    My guess would be one of two things; First check that the url that you stored in your mysql database/table is correct, if so just try to echo $dweb by itself and see what outputs. The other thing that may be wrong is when writing urls make sure you use 'http://www.thelink.com ' not just 'www.thelink.co m' otherwise it won't point outside of your current domain.
    See more | Go to post

    Leave a comment:


  • Possible to run a socks4/5 proxy/ssh tunnel on a non-dedicated web server?

    Basically i am just try to find out if its possible to setup a socks4/5 proxy php script on non-dedicated server hosting.

    It has to be able to tunnel and forward all port numbers not just 80/http, i.e. a non browser based proxy.

    I have looked into just using ssh commands but it seems on most non-dedicated servers you cannot use the appropriate commands to create a ssh tunnel/proxy.

    Any ideas on where to...
    See more | Go to post

  • its was painfull but i finally found a good tutorial on the use of 'regular expression' can be found at

    -> 'http://www.tipsntutori als.com/tutorials/PHP/50'

    Anyway here was the solution i managed to work out

    ->
    Code:
    preg_match_all( "#href=\"(((https?://)|(/))[&=a-zA-Z0-9-_./]+)\"#si", $html, $links );
    it was just a matter of using the OR (|)...
    See more | Go to post

    Leave a comment:


  • how to use 2 patterns for preg_match_all function PHP

    Basically i am trying to understand and learn how to make a php spider (yes i know its not efficient but its only for a single website at a time).

    Now the problem i am having is with the
    Code:
    preg_match_all ()
    function, the specific use is ->

    Code:
    preg_match_all( "#href=\"(https?://[&=a-zA-Z0-9-_./]+)\"#si", $html2, $links2 );
    Now this bit of code will find all url's on...
    See more | Go to post

  • chazzy69
    replied to Getting html entities into the database
    in PHP
    Apperently this function-
    Code:
    htmlspecialchars();
    converts some special characters so you maybe able to use it to achieve what you want.

    Other then converting them i know of no other way to achieve what you are looking for.
    See more | Go to post

    Leave a comment:


  • Thanks for the info and clearing up the .php matter for me.
    See more | Go to post

    Leave a comment:


  • Newbite Q' help understanding the use of Ajax

    Never had any expereience with Ajax before today, what im trying to find out how it differs from javascript for example what would be the Ajax version of -

    Code:
    <script type="text/javascript">
    document.write("Hello World!");
    </script>
    I'v also heard Ajax makes it possible to execute javascript code inside a .php script on the servers side.

    Another...
    See more | Go to post

  • chazzy69
    replied to Getting html entities into the database
    in PHP
    Not sure if this is applicable but my understanding of mysql_real_esca pe_string() function is that it removes illegal characters from a string to be inserted into a sql database, this is done to stop sql injections.

    Anyway the i think that some of you characters a getting stripped by that function. I noticed you said it stoped at "-(" when the whole line is _(¯`•★•´¯)_BLON DE_(¯`•★•´¯)_w4 m - w4m ,...
    See more | Go to post

    Leave a comment:


  • You can google how to connect to database using php, personally i learnt how to do this via -

    http://www.w3schools.com/php/php_mysql_connect.asp

    U can also learn how to retrieve data from database there to.

    once you done this all you need to do is ehco the varible/s in a html-

    Code:
    <html>
    <body>
    <?php echo $var?>
    </body>
    </html>
    ...
    See more | Go to post

    Leave a comment:


  • Not sure if this will help but i found when working with .php, mysql and html at the same time its usually easy to retrieve all information from mysql database before trying to display.

    for example set it up like this(note this is not the full code you need) -

    Code:
    <?php
    //connect to your database here
    //then retrieve all varibles you will need
    
    $Var[$i] = mysql_query($query,$connection)
    ...
    See more | Go to post

    Leave a comment:


  • chazzy69
    started a topic file_get_contents & permission errors
    in PHP

    file_get_contents & permission errors

    Currently working on a site that has user and admin access. Now basically im trying to use -

    Code:
    $file1 = file_get_contents($url);
    The file im trying to retrieve is only accessible via logining in as administrator which is fine cause i have administrator access.

    Now if i directly type in what $url equals, for example -

    Code:
    //note this is an example url not real one.
    ...
    See more | Go to post

  • Figured it out turned out there was another javascript function interfering with the execuition of the script, also the script was somehow to complicated to submit. In the end i removed all excess code and simplified it right down so now it will sumbit the form automatically upon submission.

    Now all i have to check is weither when you run the page as a cron job that the javascript will execute or not.
    See more | Go to post

    Leave a comment:


  • actually i have 2 similar commands to submit the form -
    Code:
    document.forms["myform"].submit();
    And

    Code:
    document.myform.submit();
    They are both supposed to do the same thing, where would you suggest that i place a alert box?
    See more | Go to post

    Leave a comment:


  • chazzy69
    started a topic Submit a Form without a physical click.

    Submit a Form without a physical click.

    Before you read below i only added that so you may understand my problem more fully, basically all i am trying to achieve is an onpage load sumbit form function.

    Also i have previously tried this code with no success -

    Code:
    head>
    <script type="text/javascript">
    function formsubmit(){
    document.forms["myform"].submit();
    document.myform.submit();
    }
    ...
    See more | Go to post

  • chazzy69
    started a topic Best way to setup a proxy via php on a websever?
    in PHP

    Best way to setup a proxy via php on a websever?

    So basically my country is going to be introducing a country wide filter to block a-lot of websites.

    So i started doing a little research into setting up a proxy on a remote webserver. When at school or uni, i'd use either a proxy browser or find a proxy list and use the proxies there in my browsers proxy field, anyways both of those methods work fine but really slowly and don't allow for the functionality im looking for.
    ...
    See more | Go to post

  • Problems copying image name locations from one database to another

    This is a little hard to explain but i will try to make it as clear as possible.

    Firstly here's the setup, 2 databases on 2 different servers (databases are identical) now within the first database is a bunch of locations to images, though instead of a full path it only includes the file name not an absolute path( e.g. image.jpg).

    Now im trying to copy the names to another database this is no problem but obviously the...
    See more | Go to post

  • chazzy69
    replied to error inserting data into table
    oh lol completely blind, thanks :)
    See more | Go to post

    Leave a comment:


  • chazzy69
    started a topic error inserting data into table

    error inserting data into table

    Ok heres the code im using to insert data into a table-

    Code:
    $import="INSERT into default_en_listingsdbelements(listingsdbelements_id,listingsdbelements_field_name,listingsdbelements_field_value,listingsdb_id,userdb_id) values('$data[0]','$data[1]','$data[2]'','$data[3]'','$data[4]')";
    now the error im getting is "Column count doesn't match value count at row 1",

    just wondering what exactly...
    See more | Go to post

  • Oh really? sweet thanks heaps then that will definitely help in the case in can't get the appropriate privileges.

    Didn't realize that you could use the LOAD DATA INFILE with a .csv file thought it had to be it had its own structure,

    But thanks agains, cheers
    See more | Go to post

    Leave a comment:


  • That would work great but i need it to be saved onto the server not my computer, the reason for this is basically -

    attached to one website is the main database which contains a whole bunch of elements, now im setting up satellite sites that can link to the other database, previously it was directly linked to the main database but this was cause to many problems and wasn't working. Therefore decided that i could use php to backup certain...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...